diff options
-rw-r--r-- | arch/arm/mach-at91/board-sam9261ek.c | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/arch/arm/mach-at91/board-sam9261ek.c b/arch/arm/mach-at91/board-sam9261ek.c index b4307aba523d..19d4d2cbc9c4 100644 --- a/arch/arm/mach-at91/board-sam9261ek.c +++ b/arch/arm/mach-at91/board-sam9261ek.c | |||
@@ -169,17 +169,6 @@ static struct at91_udc_data __initdata ek_udc_data = { | |||
169 | 169 | ||
170 | 170 | ||
171 | /* | 171 | /* |
172 | * MCI (SD/MMC) | ||
173 | */ | ||
174 | static struct at91_mmc_data __initdata ek_mmc_data = { | ||
175 | .wire4 = 1, | ||
176 | // .det_pin = ... not connected | ||
177 | // .wp_pin = ... not connected | ||
178 | // .vcc_pin = ... not connected | ||
179 | }; | ||
180 | |||
181 | |||
182 | /* | ||
183 | * NAND flash | 172 | * NAND flash |
184 | */ | 173 | */ |
185 | static struct mtd_partition __initdata ek_nand_partition[] = { | 174 | static struct mtd_partition __initdata ek_nand_partition[] = { |
@@ -247,6 +236,10 @@ static void __init ek_add_device_nand(void) | |||
247 | at91_add_device_nand(&ek_nand_data); | 236 | at91_add_device_nand(&ek_nand_data); |
248 | } | 237 | } |
249 | 238 | ||
239 | /* | ||
240 | * SPI related devices | ||
241 | */ | ||
242 | #if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE) | ||
250 | 243 | ||
251 | /* | 244 | /* |
252 | * ADS7846 Touchscreen | 245 | * ADS7846 Touchscreen |
@@ -357,6 +350,21 @@ static struct spi_board_info ek_spi_devices[] = { | |||
357 | #endif | 350 | #endif |
358 | }; | 351 | }; |
359 | 352 | ||
353 | #else /* CONFIG_SPI_ATMEL_* */ | ||
354 | |||
355 | /* | ||
356 | * MCI (SD/MMC) | ||
357 | * spi0 and mmc/sd share the same PIO pins: cannot be used at the same time | ||
358 | */ | ||
359 | static struct at91_mmc_data __initdata ek_mmc_data = { | ||
360 | .wire4 = 1, | ||
361 | // .det_pin = ... not connected | ||
362 | // .wp_pin = ... not connected | ||
363 | // .vcc_pin = ... not connected | ||
364 | }; | ||
365 | |||
366 | #endif /* CONFIG_SPI_ATMEL_* */ | ||
367 | |||
360 | 368 | ||
361 | /* | 369 | /* |
362 | * LCD Controller | 370 | * LCD Controller |