]> git.sur5r.net Git - u-boot/commitdiff
MMC: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon
authorJohn Rigby <john.rigby@linaro.org>
Tue, 19 Apr 2011 05:48:14 +0000 (05:48 +0000)
committerAndy Fleming <afleming@freescale.com>
Fri, 29 Apr 2011 08:22:17 +0000 (03:22 -0500)
Signed-off-by: John Rigby <john.rigby@linaro.org>
drivers/mmc/omap_hsmmc.c

index dcbde8935a60af85e3edaadd073a4ba1b4236b55..957b9877a01adaa59a7aef6364bec3d8f82672bc 100644 (file)
@@ -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;