summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/include/mach/am33xx-devices.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-01-07 10:09:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-08 10:02:13 +0100
commit04cb446c9a1bdddae41b20df5de8825df44e8dfe (patch)
tree686fb705d4b92f085c020e40962f580b9e1c33e5 /arch/arm/mach-omap/include/mach/am33xx-devices.h
parentd43bcb9987f47fd1cd575a4b965ddb743b5b7ca6 (diff)
downloadbarebox-04cb446c9a1bdddae41b20df5de8825df44e8dfe.tar.gz
barebox-04cb446c9a1bdddae41b20df5de8825df44e8dfe.tar.xz
ARM omap / mci: Fix register offsets
Only the OMAP4 has a register offset of 0x100 in the register space. Fix this by using the device id mechanism. This became broken when the device register convenience functions were introduced. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap/include/mach/am33xx-devices.h')
-rw-r--r--arch/arm/mach-omap/include/mach/am33xx-devices.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/include/mach/am33xx-devices.h b/arch/arm/mach-omap/include/mach/am33xx-devices.h
index cfb931f827..4c83b2844c 100644
--- a/arch/arm/mach-omap/include/mach/am33xx-devices.h
+++ b/arch/arm/mach-omap/include/mach/am33xx-devices.h
@@ -26,7 +26,8 @@ static inline struct device_d *am33xx_add_uart2(void)
static inline struct device_d *am33xx_add_mmc0(struct omap_hsmmc_platform_data *pdata)
{
- return omap_add_mmc(0, AM33XX_MMCHS0_BASE, pdata);
+ return add_generic_device("omap3-hsmmc", 0, NULL,
+ AM33XX_MMCHS0_BASE, SZ_4K, IORESOURCE_MEM, pdata);
}
#endif /* __MACH_OMAP3_DEVICES_H */