diff options
author | Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> | 2011-08-27 09:15:58 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-27 14:31:41 -0400 |
commit | 600ea5cd76d0db0a4af4557a45d1ac4400fdadf5 (patch) | |
tree | ffef591d9f04b7d1425e6bc948a227772f363bcd /arch/arm/mach-mx5/board-mx51_efikamx.c | |
parent | 91dcc7f437d3e8224dec51f2e0808ba8171309a9 (diff) |
efika: Configure esdhc cd/wp on efika mx/sb
Update sdhc support on efika to make use of the latest mmc fixes.
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.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_efikamx.c b/arch/arm/mach-mx5/board-mx51_efikamx.c index 551daf85ff8c..f292547dcc57 100644 --- a/arch/arm/mach-mx5/board-mx51_efikamx.c +++ b/arch/arm/mach-mx5/board-mx51_efikamx.c | |||
@@ -163,6 +163,11 @@ static const struct gpio_led_platform_data | |||
163 | .num_leds = ARRAY_SIZE(mx51_efikamx_leds), | 163 | .num_leds = ARRAY_SIZE(mx51_efikamx_leds), |
164 | }; | 164 | }; |
165 | 165 | ||
166 | static struct esdhc_platform_data sd_pdata = { | ||
167 | .cd_type = ESDHC_CD_CONTROLLER, | ||
168 | .wp_type = ESDHC_WP_CONTROLLER, | ||
169 | }; | ||
170 | |||
166 | static struct gpio_keys_button mx51_efikamx_powerkey[] = { | 171 | static struct gpio_keys_button mx51_efikamx_powerkey[] = { |
167 | { | 172 | { |
168 | .code = KEY_POWER, | 173 | .code = KEY_POWER, |
@@ -239,9 +244,11 @@ static void __init mx51_efikamx_init(void) | |||
239 | 244 | ||
240 | /* on < 1.2 boards both SD controllers are used */ | 245 | /* on < 1.2 boards both SD controllers are used */ |
241 | if (system_rev < 0x12) { | 246 | if (system_rev < 0x12) { |
242 | imx51_add_sdhci_esdhc_imx(1, NULL); | 247 | imx51_add_sdhci_esdhc_imx(0, NULL); |
248 | imx51_add_sdhci_esdhc_imx(1, &sd_pdata); | ||
243 | mx51_efikamx_leds[2].default_trigger = "mmc1"; | 249 | mx51_efikamx_leds[2].default_trigger = "mmc1"; |
244 | } | 250 | } else |
251 | imx51_add_sdhci_esdhc_imx(0, &sd_pdata); | ||
245 | 252 | ||
246 | gpio_led_register_device(-1, &mx51_efikamx_leds_data); | 253 | gpio_led_register_device(-1, &mx51_efikamx_leds_data); |
247 | imx_add_gpio_keys(&mx51_efikamx_powerkey_data); | 254 | imx_add_gpio_keys(&mx51_efikamx_powerkey_data); |