summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/devices-imx27.h
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2012-03-20 12:54:25 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-03-20 14:08:59 +0100
commit5d62a8bd93e0658b6bec4ba8bd13dcc4efbba558 (patch)
treee3328656fb51ff67adf58686d32aa39425407633 /arch/arm/mach-imx/include/mach/devices-imx27.h
parent6dd7f8ee7b653c607da48683f993f392d4d93830 (diff)
downloadbarebox-5d62a8bd93e0658b6bec4ba8bd13dcc4efbba558.tar.gz
barebox-5d62a8bd93e0658b6bec4ba8bd13dcc4efbba558.tar.xz
i.MX27: Add support for SDHC1,3
imx27_add_mmc0 really registered SDHC2. Fix this by adding a imx27_add_mmc1 and use this in the pca100 board file. Also add imx27_add_mmc2 helper for register SDHC3. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/devices-imx27.h')
-rw-r--r--arch/arm/mach-imx/include/mach/devices-imx27.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/include/mach/devices-imx27.h b/arch/arm/mach-imx/include/mach/devices-imx27.h
index acef9c2f43..6a3a2341b2 100644
--- a/arch/arm/mach-imx/include/mach/devices-imx27.h
+++ b/arch/arm/mach-imx/include/mach/devices-imx27.h
@@ -58,7 +58,15 @@ static inline struct device_d *imx27_add_fec(struct fec_platform_data *pdata)
static inline struct device_d *imx27_add_mmc0(void *pdata)
{
- return imx_add_mmc((void *)0x10014000, 0, pdata);
+ return imx_add_mmc((void *)IMX_SDHC1_BASE, 0, pdata);
}
+static inline struct device_d *imx27_add_mmc1(void *pdata)
+{
+ return imx_add_mmc((void *)IMX_SDHC2_BASE, 1, pdata);
+}
+static inline struct device_d *imx27_add_mmc2(void *pdata)
+{
+ return imx_add_mmc((void *)IMX_SDHC3_BASE, 2, pdata);
+}