[iot] Enlarge the sdhc timeout for erasing system partion

Change-Id: Ia8bb6634aa00d7a5dc59a7a33845613155543eaa
Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
This commit is contained in:
Chen Guoyin 2018-02-26 10:24:26 +08:00 committed by Ji Luo
parent ddaf4a9d95
commit 61b03bbbb4
1 changed files with 2 additions and 2 deletions

View File

@ -486,9 +486,9 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc,
/* Workaround for ESDHC errata ENGcm03648 */
if (!data && (cmd->resp_type & MMC_RSP_BUSY)) {
int timeout = 50000;
int timeout = 62000;
/* Poll on DATA0 line for cmd with busy signal for 5000 ms */
/* Poll on DATA0 line for cmd with busy signal for 6200 ms */
while (timeout > 0 && !(esdhc_read32(&regs->prsstat) &
PRSSTAT_DAT0)) {
udelay(100);