[U-Boot] [PATCHv2 2/2] mmc: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon

John Rigby john.rigby at linaro.org
Mon Apr 18 17:50:09 CEST 2011


Signed-off-by: John Rigby <john.rigby at linaro.org>
---
V2: split out omap_hsmmc use of b_max into separate patch

 drivers/mmc/omap_hsmmc.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index dcbde89..a2a6d55 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_rev() <= CPU_3XX_ES21)
+		mmc->b_max = 1;
+#endif
+
 	mmc_register(mmc);
 
 	return 0;
-- 
1.7.1



More information about the U-Boot mailing list