Commit 8475a30f authored by ckkim's avatar ckkim Committed by Mauro Ribeiro

ODROID-XU3/4:Support Sandisk emmc 5.1 TLC

Change-Id: I80ac51f64c0928ad330c52fd740b322794d29678
parent 0ce82d2a
......@@ -299,13 +299,14 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
}
card->ext_csd.rev = ext_csd[EXT_CSD_REV];
#if !defined(CONFIG_MACH_ODROIDXU3)
if (card->ext_csd.rev > 7) {
pr_err("%s: unrecognised EXT_CSD revision %d\n",
mmc_hostname(card->host), card->ext_csd.rev);
err = -EINVAL;
goto out;
}
#endif
card->ext_csd.raw_sectors[0] = ext_csd[EXT_CSD_SEC_CNT + 0];
card->ext_csd.raw_sectors[1] = ext_csd[EXT_CSD_SEC_CNT + 1];
card->ext_csd.raw_sectors[2] = ext_csd[EXT_CSD_SEC_CNT + 2];
......
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