diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-22 22:26:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-27 07:12:33 +0200 |
commit | e3cbf4f76270404528f6496718bf6ff5eac8e4ae (patch) | |
tree | fcef0c3981beb266abdaf09ae6a42da5bdf2861f | |
parent | 8a46a7dce9a34ca34fc00aa4305e74500819a575 (diff) | |
download | barebox-e3cbf4f76270404528f6496718bf6ff5eac8e4ae.tar.gz barebox-e3cbf4f76270404528f6496718bf6ff5eac8e4ae.tar.xz |
ARM: am33xx: Add mmc1 registration helper
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-omap/include/mach/am33xx-devices.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap/include/mach/am33xx-devices.h b/arch/arm/mach-omap/include/mach/am33xx-devices.h index 6a4d901028..669198023c 100644 --- a/arch/arm/mach-omap/include/mach/am33xx-devices.h +++ b/arch/arm/mach-omap/include/mach/am33xx-devices.h @@ -31,6 +31,12 @@ static inline struct device_d *am33xx_add_mmc0(struct omap_hsmmc_platform_data * AM33XX_MMCHS0_BASE, SZ_4K, IORESOURCE_MEM, pdata); } +static inline struct device_d *am33xx_add_mmc1(struct omap_hsmmc_platform_data *pdata) +{ + return add_generic_device("omap4-hsmmc", 1, NULL, + AM33XX_MMC1_BASE, SZ_4K, IORESOURCE_MEM, pdata); +} + static inline struct device_d *am33xx_add_cpsw(struct cpsw_platform_data *cpsw_data) { return add_generic_device("cpsw", 0, NULL, |