mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ipq40xx: mmc: Added erase quirk for eMMC part
eMMC part THGBMBG5D1KBAIT is taking long time for the secure trim. This leads to erase timeout. Manufacturer ID based quirk is added for the specific part to use trim instead of secure trim for block erase. Change-Id: Id4ecfde9585e112521863439f684feb5e0caaa51 Signed-off-by: Vinoth Gnanasekaran <vgnana@codeaurora.org>
This commit is contained in:
parent
9f318b6fca
commit
4dc439fee1
2 changed files with 4 additions and 0 deletions
|
|
@ -1515,6 +1515,9 @@ static int mmc_startup(struct mmc *mmc)
|
|||
if (((mmc->cid[0] & MMC_MID_MASK) == MMC_MID_SANDISK) &&
|
||||
(strncmp(mmc->block_dev.product, "SEM08", 5) == 0))
|
||||
mmc->quirks |= MMC_QUIRK_SECURE_TRIM;
|
||||
if (((mmc->cid[0] & MMC_MID_MASK) == MMC_MID_TOSHIBA) &&
|
||||
(strncmp(mmc->block_dev.product, "004GE", 5) == 0))
|
||||
mmc->quirks |= MMC_QUIRK_SECURE_TRIM;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -301,6 +301,7 @@
|
|||
|
||||
#define MMC_MID_MASK (0xFF << 24)
|
||||
#define MMC_MID_SANDISK (0x45 << 24)
|
||||
#define MMC_MID_TOSHIBA (0x11 << 24)
|
||||
|
||||
/*
|
||||
* Quirks
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue