omap hsmmc: define base_addr for HSMMC4 and HSMMC5
authorH. Nikolaus Schaller <hns@goldelico.com>
Wed, 27 Jan 2016 19:10:31 +0000 (20:10 +0100)
committernotaz <notasas@gmail.com>
Sun, 14 Aug 2016 13:43:30 +0000 (16:43 +0300)
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
drivers/mmc/omap_hsmmc.c

index d007b56..5b6cd60 100644 (file)
@@ -717,6 +717,18 @@ int omap_mmc_init(int dev_index, uint host_caps_mask, uint f_max, int cd_gpio,
                host_caps_val |= MMC_MODE_8BIT;
 #endif
                break;
+#endif
+#ifdef OMAP_HSMMC4_BASE
+       case 3:
+               priv_data->base_addr = (struct hsmmc *)OMAP_HSMMC4_BASE;
+               break;
+#endif
+#ifdef OMAP_HSMMC5_BASE
+       case 4:
+               priv_data->base_addr = (struct hsmmc *)OMAP_HSMMC5_BASE;
+               /* Enable 8-bit interface for eMMC on OMAP5 */
+               host_caps_val |= MMC_MODE_8BIT;
+               break;
 #endif
        default:
                priv_data->base_addr = (struct hsmmc *)OMAP_HSMMC1_BASE;