summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-04-16 15:22:01 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-04-16 15:22:01 +0200
commit8c03ad06da7f79be55a723dc77d22465111a65b2 (patch)
tree7592ca7bac7669dde7359ac6830cff68de084458 /drivers
parent3cd662da4222b27a54dc7bc56d2856aa58f77c22 (diff)
colibri_t20: fix/hack sd boot environment
We wrongly set an obsolete define so the U-Boot environment ended up at the wrong location on the SD card. Add a hack introducing a short delays before doing MMC_CMD_SET_BLOCKLEN as otherwise all 4GB Kingston or SanDisk cards I have failed. While at it fix the USB port naming in the device tree comments to adhere to the standard Colibri convention.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 76eaf15c7f..f197ab84ca 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -318,6 +318,12 @@ static ulong mmc_bread(int dev_num, ulong start, lbaint_t blkcnt, void *dst)
return 0;
}
+#if (defined(CONFIG_ENV_IS_IN_MMC) && defined(CONFIG_COLIBRI_T20))
+ /* Hack: All 4GB Kingston or SanDisk cards I have require a short delay
+ otherwise the next command fails. */
+ udelay(1000);
+#endif
+
if (mmc_set_blocklen(mmc, mmc->read_bl_len))
return 0;