diff options
Diffstat (limited to 'arch/arm/mach-at91/board-sam9m10g45ek.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9m10g45ek.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c index 7913984f6de9..86ff4b52db32 100644 --- a/arch/arm/mach-at91/board-sam9m10g45ek.c +++ b/arch/arm/mach-at91/board-sam9m10g45ek.c | |||
@@ -24,7 +24,9 @@ | |||
24 | #include <linux/input.h> | 24 | #include <linux/input.h> |
25 | #include <linux/leds.h> | 25 | #include <linux/leds.h> |
26 | #include <linux/clk.h> | 26 | #include <linux/clk.h> |
27 | #include <linux/atmel-mci.h> | ||
27 | 28 | ||
29 | #include <mach/hardware.h> | ||
28 | #include <video/atmel_lcdc.h> | 30 | #include <video/atmel_lcdc.h> |
29 | 31 | ||
30 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
@@ -98,6 +100,25 @@ static struct spi_board_info ek_spi_devices[] = { | |||
98 | 100 | ||
99 | 101 | ||
100 | /* | 102 | /* |
103 | * MCI (SD/MMC) | ||
104 | */ | ||
105 | static struct mci_platform_data __initdata mci0_data = { | ||
106 | .slot[0] = { | ||
107 | .bus_width = 4, | ||
108 | .detect_pin = AT91_PIN_PD10, | ||
109 | }, | ||
110 | }; | ||
111 | |||
112 | static struct mci_platform_data __initdata mci1_data = { | ||
113 | .slot[0] = { | ||
114 | .bus_width = 4, | ||
115 | .detect_pin = AT91_PIN_PD11, | ||
116 | .wp_pin = AT91_PIN_PD29, | ||
117 | }, | ||
118 | }; | ||
119 | |||
120 | |||
121 | /* | ||
101 | * MACB Ethernet device | 122 | * MACB Ethernet device |
102 | */ | 123 | */ |
103 | static struct at91_eth_data __initdata ek_macb_data = { | 124 | static struct at91_eth_data __initdata ek_macb_data = { |
@@ -380,6 +401,9 @@ static void __init ek_board_init(void) | |||
380 | at91_add_device_usba(&ek_usba_udc_data); | 401 | at91_add_device_usba(&ek_usba_udc_data); |
381 | /* SPI */ | 402 | /* SPI */ |
382 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); | 403 | at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices)); |
404 | /* MMC */ | ||
405 | at91_add_device_mci(0, &mci0_data); | ||
406 | at91_add_device_mci(1, &mci1_data); | ||
383 | /* Ethernet */ | 407 | /* Ethernet */ |
384 | at91_add_device_eth(&ek_macb_data); | 408 | at91_add_device_eth(&ek_macb_data); |
385 | /* NAND */ | 409 | /* NAND */ |