Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210507
b: refs/heads/master
c: 64d72bb
h: refs/heads/master
i:
  210505: 0b3e29d
  210503: 4374eba
v: v3
  • Loading branch information
Nicolas Ferre committed Sep 10, 2010
1 parent 5820b20 commit 7646647
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1879c45cce6411fe97b0b65ccad38f5206700dda
refs/heads/master: 64d72bbeeb68b536a27319471f212d413f58bf6f
30 changes: 19 additions & 11 deletions trunk/arch/arm/mach-at91/board-sam9261ek.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,6 @@ static struct at91_udc_data __initdata ek_udc_data = {
};


/*
* MCI (SD/MMC)
*/
static struct at91_mmc_data __initdata ek_mmc_data = {
.wire4 = 1,
// .det_pin = ... not connected
// .wp_pin = ... not connected
// .vcc_pin = ... not connected
};


/*
* NAND flash
*/
Expand Down Expand Up @@ -247,6 +236,10 @@ static void __init ek_add_device_nand(void)
at91_add_device_nand(&ek_nand_data);
}

/*
* SPI related devices
*/
#if defined(CONFIG_SPI_ATMEL) || defined(CONFIG_SPI_ATMEL_MODULE)

/*
* ADS7846 Touchscreen
Expand Down Expand Up @@ -357,6 +350,21 @@ static struct spi_board_info ek_spi_devices[] = {
#endif
};

#else /* CONFIG_SPI_ATMEL_* */

/*
* MCI (SD/MMC)
* spi0 and mmc/sd share the same PIO pins: cannot be used at the same time
*/
static struct at91_mmc_data __initdata ek_mmc_data = {
.wire4 = 1,
// .det_pin = ... not connected
// .wp_pin = ... not connected
// .vcc_pin = ... not connected
};

#endif /* CONFIG_SPI_ATMEL_* */


/*
* LCD Controller
Expand Down

0 comments on commit 7646647

Please sign in to comment.