aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-04-18 09:33:35 -0600
committerJohn Rigby <john.rigby@linaro.org>2011-04-19 09:07:03 -0600
commit51fe52c02ee9d6dec20682996c3515309e317f15 (patch)
treeda2f807b58027319be53914722997a3cfc96b6e3
parent262951964df0dbb91c14dc044b423eb8eadff63d (diff)
downloadu-boot-linaro-stable-51fe52c02ee9d6dec20682996c3515309e317f15.tar.gz
MMC: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon2011.04.2
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--drivers/mmc/omap_hsmmc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index dcbde8935..957b9877a 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -467,6 +467,14 @@ int omap_mmc_init(int dev_index)
mmc->b_max = 0;
+#if defined(CONFIG_OMAP34XX)
+ /*
+ * Silicon revs 2.1 and older do not support multiblock transfers.
+ */
+ if ((get_cpu_family() == CPU_OMAP34XX) && (get_cpu_rev() <= CPU_3XX_ES21))
+ mmc->b_max = 1;
+#endif
+
mmc_register(mmc);
return 0;