mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
mmc: fsl_esdhc: update eMMC44 adapter card erase timeout
Freescale eMMC44 adapter card uses Micron N2M400FDB311A3CF eMMC memory. According to the silicon datasheet, secure erase timeout is 600ms. So increase erase timeout value from 250ms to 600ms. Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com> Cc: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
5e1c23cd39
commit
253d5bdd64
1 changed files with 2 additions and 2 deletions
|
@ -387,9 +387,9 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
|
||||||
|
|
||||||
/* Workaround for ESDHC errata ENGcm03648 */
|
/* Workaround for ESDHC errata ENGcm03648 */
|
||||||
if (!data && (cmd->resp_type & MMC_RSP_BUSY)) {
|
if (!data && (cmd->resp_type & MMC_RSP_BUSY)) {
|
||||||
int timeout = 2500;
|
int timeout = 6000;
|
||||||
|
|
||||||
/* Poll on DATA0 line for cmd with busy signal for 250 ms */
|
/* Poll on DATA0 line for cmd with busy signal for 600 ms */
|
||||||
while (timeout > 0 && !(esdhc_read32(®s->prsstat) &
|
while (timeout > 0 && !(esdhc_read32(®s->prsstat) &
|
||||||
PRSSTAT_DAT0)) {
|
PRSSTAT_DAT0)) {
|
||||||
udelay(100);
|
udelay(100);
|
||||||
|
|
Loading…
Reference in a new issue