summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@freescale.com>2015-04-15 10:13:12 +0800
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2015-05-05 12:29:42 +0300
commit253d5bdd64504a1a569b4eb330555e2449fa3d3f (patch)
treeb965a40aaf353d43119ea053c31bd472c2a8202d /drivers/mmc
parent5e1c23cd392f17be9d135e504d48925a1cd92aa2 (diff)
downloadblackbird-obmc-uboot-253d5bdd64504a1a569b4eb330555e2449fa3d3f.tar.gz
blackbird-obmc-uboot-253d5bdd64504a1a569b4eb330555e2449fa3d3f.zip
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/fsl_esdhc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 2bbacb36ba..b9bc1654d3 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -387,9 +387,9 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
/* Workaround for ESDHC errata ENGcm03648 */
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(&regs->prsstat) &
PRSSTAT_DAT0)) {
udelay(100);
OpenPOWER on IntegriCloud