aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-picotux200.c
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@atmel.com>2012-05-21 06:23:27 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2012-07-02 12:03:01 -0400
commit4cf3326ab5f34a333a46c59d0d3783db9cef13bf (patch)
tree4d8b5f494f0c99b2f261b6145c91cbc97f492795 /arch/arm/mach-at91/board-picotux200.c
parent24f5c4b6e6f2933eb22979283db6174f378d9b36 (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-picotux200.c')
-rw-r--r--arch/arm/mach-at91/board-picotux200.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-at91/board-picotux200.c b/arch/arm/mach-at91/board-picotux200.c
index b45c0a5d5ca7..96db6b259f86 100644
--- a/arch/arm/mach-at91/board-picotux200.c
+++ b/arch/arm/mach-at91/board-picotux200.c
@@ -61,12 +61,12 @@ static struct at91_usbh_data __initdata picotux200_usbh_data = {
61 .overcurrent_pin= {-EINVAL, -EINVAL}, 61 .overcurrent_pin= {-EINVAL, -EINVAL},
62}; 62};
63 63
64static struct at91_mmc_data __initdata picotux200_mmc_data = { 64static struct mci_platform_data __initdata picotux200_mci0_data = {
65 .det_pin = AT91_PIN_PB27, 65 .slot[0] = {
66 .slot_b = 0, 66 .bus_width = 4,
67 .wire4 = 1, 67 .detect_pin = AT91_PIN_PB27,
68 .wp_pin = AT91_PIN_PA17, 68 .wp_pin = AT91_PIN_PA17,
69 .vcc_pin = -EINVAL, 69 },
70}; 70};
71 71
72#define PICOTUX200_FLASH_BASE AT91_CHIPSELECT_0 72#define PICOTUX200_FLASH_BASE AT91_CHIPSELECT_0
@@ -111,7 +111,7 @@ static void __init picotux200_board_init(void)
111 at91_add_device_i2c(NULL, 0); 111 at91_add_device_i2c(NULL, 0);
112 /* MMC */ 112 /* MMC */
113 at91_set_gpio_output(AT91_PIN_PB22, 1); /* this MMC card slot can optionally use SPI signaling (CS3). */ 113 at91_set_gpio_output(AT91_PIN_PB22, 1); /* this MMC card slot can optionally use SPI signaling (CS3). */
114 at91_add_device_mmc(0, &picotux200_mmc_data); 114 at91_add_device_mci(0, &picotux200_mci0_data);
115 /* NOR Flash */ 115 /* NOR Flash */
116 platform_device_register(&picotux200_flash); 116 platform_device_register(&picotux200_flash);
117} 117}