aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2010-09-10 05:26:42 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2010-09-10 06:00:56 -0400
commit64d72bbeeb68b536a27319471f212d413f58bf6f (patch)
tree3b36de76c98d8951425bd6af67580d474a7f4a41 /arch
parent1879c45cce6411fe97b0b65ccad38f5206700dda (diff)
AT91: at91sam9261ek board: remove warnings related to use of SPI or SD/MMC
The sd/mmc data structure is not used if SPI is selected. The configuration of PIO on the board prevent from using both interfaces at the same time (board dependent). Remove the warnings at compilation time adding a preprocessor condition. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-at91/board-sam9261ek.c30
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 */
174static 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 */
185static struct mtd_partition __initdata ek_nand_partition[] = { 174static 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 */
359static 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