Commit a7f2eef8 authored by Russell King's avatar Russell King

[MMC] Save MMC card raw CSD structure.

parent 62a78432
......@@ -523,6 +523,8 @@ static void mmc_read_csds(struct mmc_host *host)
continue;
}
memcpy(card->raw_csd, cmd.resp, sizeof(card->raw_csd));
mmc_decode_csd(&card->csd, cmd.resp);
mmc_decode_cid(&card->cid, card->raw_cid);
}
......
......@@ -46,6 +46,7 @@ struct mmc_card {
#define MMC_STATE_PRESENT (1<<0)
#define MMC_STATE_DEAD (1<<1)
u32 raw_cid[4]; /* raw card CID */
u32 raw_csd[4]; /* raw card CSD */
struct mmc_cid cid; /* card identification */
struct mmc_csd csd; /* card specific */
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment