diff options
author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2012-05-21 06:23:27 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-07-02 12:03:01 -0400 |
commit | 4cf3326ab5f34a333a46c59d0d3783db9cef13bf (patch) | |
tree | 4d8b5f494f0c99b2f261b6145c91cbc97f492795 /arch/arm/mach-at91/board-sam9rlek.c | |
parent | 24f5c4b6e6f2933eb22979283db6174f378d9b36 (diff) |
ARM: at91: add atmel-mci support for chips and boards which can use it
Since atmel-mci driver supports all atmel mci versions,
use it instead of the deprecated at91_mci driver.
Platform data and all related configuration are removed.
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
[nicolas.ferre@atmel.com: remove at91_mci platform data]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/board-sam9rlek.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9rlek.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c index be3239f13daa..61d2ba8a4e57 100644 --- a/arch/arm/mach-at91/board-sam9rlek.c +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
@@ -55,11 +55,12 @@ static struct usba_platform_data __initdata ek_usba_udc_data = { | |||
55 | /* | 55 | /* |
56 | * MCI (SD/MMC) | 56 | * MCI (SD/MMC) |
57 | */ | 57 | */ |
58 | static struct at91_mmc_data __initdata ek_mmc_data = { | 58 | static struct mci_platform_data __initdata mci0_data = { |
59 | .wire4 = 1, | 59 | .slot[0] = { |
60 | .det_pin = AT91_PIN_PA15, | 60 | .bus_width = 4, |
61 | .wp_pin = -EINVAL, | 61 | .detect_pin = AT91_PIN_PA15, |
62 | .vcc_pin = -EINVAL, | 62 | .wp_pin = -EINVAL, |
63 | }, | ||
63 | }; | 64 | }; |
64 | 65 | ||
65 | 66 | ||
@@ -302,7 +303,7 @@ static void __init ek_board_init(void) | |||
302 | /* SPI */ | 303 | /* SPI */ |
303 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); | 304 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); |
304 | /* MMC */ | 305 | /* MMC */ |
305 | at91_add_device_mmc(0, &ek_mmc_data); | 306 | at91_add_device_mci(0, &mci0_data); |
306 | /* LCD Controller */ | 307 | /* LCD Controller */ |
307 | at91_add_device_lcdc(&ek_lcdc_data); | 308 | at91_add_device_lcdc(&ek_lcdc_data); |
308 | /* AC97 */ | 309 | /* AC97 */ |