diff options
author | Felipe Balbi <balbi@ti.com> | 2014-11-06 08:28:51 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-04 11:04:14 -0500 |
commit | d11ac4b56d993153f9d72208809060f3b6c9af76 (patch) | |
tree | 7312d30ed0c88ec4f0cc9236f493fcb7ab4b30f4 /drivers/mmc | |
parent | 56fe405516ba94df62b57928a8e281b0a5a71313 (diff) | |
download | u-boot-imx-d11ac4b56d993153f9d72208809060f3b6c9af76.zip u-boot-imx-d11ac4b56d993153f9d72208809060f3b6c9af76.tar.gz u-boot-imx-d11ac4b56d993153f9d72208809060f3b6c9af76.tar.bz2 |
arm: omap: add support for am57xx devices
just add a few ifdefs around because this
device is very similar to dra7xxx.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/omap_hsmmc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index ffb5284..bada006 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -663,7 +663,8 @@ int omap_mmc_init(int dev_index, uint host_caps_mask, uint f_max, int cd_gpio, case 1: priv_data->base_addr = (struct hsmmc *)OMAP_HSMMC2_BASE; #if (defined(CONFIG_OMAP44XX) || defined(CONFIG_OMAP54XX) || \ - defined(CONFIG_DRA7XX)) && defined(CONFIG_HSMMC2_8BIT) + defined(CONFIG_DRA7XX) || defined(CONFIG_AM57XX)) && \ + defined(CONFIG_HSMMC2_8BIT) /* Enable 8-bit interface for eMMC on OMAP4/5 or DRA7XX */ host_caps_val |= MMC_MODE_8BIT; #endif @@ -672,7 +673,7 @@ int omap_mmc_init(int dev_index, uint host_caps_mask, uint f_max, int cd_gpio, #ifdef OMAP_HSMMC3_BASE case 2: priv_data->base_addr = (struct hsmmc *)OMAP_HSMMC3_BASE; -#if defined(CONFIG_DRA7XX) && defined(CONFIG_HSMMC3_8BIT) +#if (defined(CONFIG_DRA7XX) || defined(CONFIG_AM57XX)) && defined(CONFIG_HSMMC3_8BIT) /* Enable 8-bit interface for eMMC on DRA7XX */ host_caps_val |= MMC_MODE_8BIT; #endif |