ARMV7: OMAP3: MMC: Enable 8-bit mode for MMC1 and MMC2 controllers
MMC0 is the only one limited to 4-bit on OMAP3.
Change-Id: I31e922d39e4b23c3cc41f77f50d1ee572cc33364
Signed-off-by: Mike J. Chen <mjchen@google.com>
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index fbac289..b65f72c 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -734,6 +734,10 @@
*/
if ((get_cpu_family() == CPU_OMAP34XX) && (get_cpu_rev() <= CPU_3XX_ES21))
mmc->b_max = 1;
+
+ /* MMC1 and MMC2 support 8-bit, but MMC0 only supports 4-bit */
+ if (dev_index != 0)
+ mmc->host_caps |= MMC_MODE_8BIT;
#endif
mmc_register(mmc);