fsl: update CRC after setting EEPROM identifier
[oweals/u-boot.git] / drivers / mmc / fsl_esdhc.c
index d01c926c4554debbe4fc6e61239d49cfbfc40ab0..f3cccbe9bfdc4ed0bbbc8d373af7def8a44af8cf 100644 (file)
@@ -219,6 +219,11 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
        if (timeout < 0)
                timeout = 0;
 
+#ifdef CONFIG_SYS_FSL_ERRATUM_ESDHC_A001
+       if ((timeout == 4) || (timeout == 8) || (timeout == 12))
+               timeout++;
+#endif
+
        esdhc_clrsetbits32(&regs->sysctl, SYSCTL_TIMEOUT_MASK, timeout << 16);
 
        return 0;