From b78b612696fca603b09f726e617e3f3f41da8903 Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Wed, 27 Jan 2016 20:10:31 +0100 Subject: [PATCH] omap hsmmc: define base_addr for HSMMC4 and HSMMC5 Signed-off-by: H. Nikolaus Schaller --- drivers/mmc/omap_hsmmc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index d007b562936..5b6cd60faf9 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -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; -- 2.39.5