aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/board-mx51_efikamx.c
diff options
context:
space:
mode:
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>2010-10-27 08:40:49 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-11-24 03:57:09 -0500
commita96eb148c74a09bc872b1490141d98811a3c7dbd (patch)
treea1006664a58d6da94a8334cf3be4168e2977c462 /arch/arm/mach-mx5/board-mx51_efikamx.c
parent0a7d48712f9a279464d2587e52e60fdc81f9a65a (diff)
efikamx: add mmc support
The efika mx is using a esdhc host for mmc support. Now that the sdhci has support for it, enable it. Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_efikamx.c')
-rw-r--r--arch/arm/mach-mx5/board-mx51_efikamx.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_efikamx.c b/arch/arm/mach-mx5/board-mx51_efikamx.c
index 057f9f437359..842d6bff6e06 100644
--- a/arch/arm/mach-mx5/board-mx51_efikamx.c
+++ b/arch/arm/mach-mx5/board-mx51_efikamx.c
@@ -58,6 +58,28 @@ static iomux_v3_cfg_t mx51efikamx_pads[] = {
58 MX51_PAD_PCBID0, 58 MX51_PAD_PCBID0,
59 MX51_PAD_PCBID1, 59 MX51_PAD_PCBID1,
60 MX51_PAD_PCBID2, 60 MX51_PAD_PCBID2,
61
62 /* SD 1 */
63 MX51_PAD_SD1_CMD__SD1_CMD,
64 MX51_PAD_SD1_CLK__SD1_CLK,
65 MX51_PAD_SD1_DATA0__SD1_DATA0,
66 MX51_PAD_SD1_DATA1__SD1_DATA1,
67 MX51_PAD_SD1_DATA2__SD1_DATA2,
68 MX51_PAD_SD1_DATA3__SD1_DATA3,
69
70 /* SD 2 */
71 MX51_PAD_SD2_CMD__SD2_CMD,
72 MX51_PAD_SD2_CLK__SD2_CLK,
73 MX51_PAD_SD2_DATA0__SD2_DATA0,
74 MX51_PAD_SD2_DATA1__SD2_DATA1,
75 MX51_PAD_SD2_DATA2__SD2_DATA2,
76 MX51_PAD_SD2_DATA3__SD2_DATA3,
77
78 /* SD/MMC WP/CD */
79 MX51_PAD_GPIO_1_0__ESDHC1_CD,
80 MX51_PAD_GPIO_1_1__ESDHC1_WP,
81 MX51_PAD_GPIO_1_7__ESDHC2_WP,
82 MX51_PAD_GPIO_1_8__ESDHC2_CD,
61}; 83};
62 84
63/* Serial ports */ 85/* Serial ports */
@@ -163,6 +185,11 @@ static void __init mxc_board_init(void)
163 mx51_efikamx_board_id(); 185 mx51_efikamx_board_id();
164 mxc_register_device(&mxc_usbdr_host_device, &dr_utmi_config); 186 mxc_register_device(&mxc_usbdr_host_device, &dr_utmi_config);
165 mxc_init_imx_uart(); 187 mxc_init_imx_uart();
188 imx51_add_esdhc(0, NULL);
189
190 /* on < 1.2 boards both SD controllers are used */
191 if (system_rev < 0x12)
192 imx51_add_esdhc(1, NULL);
166} 193}
167 194
168static void __init mx51_efikamx_timer_init(void) 195static void __init mx51_efikamx_timer_init(void)