aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-sam9g20ek.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-at91/board-sam9g20ek.c')
-rw-r--r--arch/arm/mach-at91/board-sam9g20ek.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/arm/mach-at91/board-sam9g20ek.c b/arch/arm/mach-at91/board-sam9g20ek.c
index 6860d3451100..40d595aaed28 100644
--- a/arch/arm/mach-at91/board-sam9g20ek.c
+++ b/arch/arm/mach-at91/board-sam9g20ek.c
@@ -91,7 +91,7 @@ static struct at91_udc_data __initdata ek_udc_data = {
91 * SPI devices. 91 * SPI devices.
92 */ 92 */
93static struct spi_board_info ek_spi_devices[] = { 93static struct spi_board_info ek_spi_devices[] = {
94#if !(defined(CONFIG_MMC_ATMELMCI) || defined(CONFIG_MMC_AT91)) 94#if !IS_ENABLED(CONFIG_MMC_ATMELMCI)
95 { /* DataFlash chip */ 95 { /* DataFlash chip */
96 .modalias = "mtd_dataflash", 96 .modalias = "mtd_dataflash",
97 .chip_select = 1, 97 .chip_select = 1,
@@ -198,7 +198,6 @@ static void __init ek_add_device_nand(void)
198 * MCI (SD/MMC) 198 * MCI (SD/MMC)
199 * wp_pin and vcc_pin are not connected 199 * wp_pin and vcc_pin are not connected
200 */ 200 */
201#if defined(CONFIG_MMC_ATMELMCI) || defined(CONFIG_MMC_ATMELMCI_MODULE)
202static struct mci_platform_data __initdata ek_mmc_data = { 201static struct mci_platform_data __initdata ek_mmc_data = {
203 .slot[1] = { 202 .slot[1] = {
204 .bus_width = 4, 203 .bus_width = 4,
@@ -207,28 +206,15 @@ static struct mci_platform_data __initdata ek_mmc_data = {
207 }, 206 },
208 207
209}; 208};
210#else
211static struct at91_mmc_data __initdata ek_mmc_data = {
212 .slot_b = 1, /* Only one slot so use slot B */
213 .wire4 = 1,
214 .det_pin = AT91_PIN_PC9,
215 .wp_pin = -EINVAL,
216 .vcc_pin = -EINVAL,
217};
218#endif
219 209
220static void __init ek_add_device_mmc(void) 210static void __init ek_add_device_mmc(void)
221{ 211{
222#if defined(CONFIG_MMC_ATMELMCI) || defined(CONFIG_MMC_ATMELMCI_MODULE)
223 if (ek_have_2mmc()) { 212 if (ek_have_2mmc()) {
224 ek_mmc_data.slot[0].bus_width = 4; 213 ek_mmc_data.slot[0].bus_width = 4;
225 ek_mmc_data.slot[0].detect_pin = AT91_PIN_PC2; 214 ek_mmc_data.slot[0].detect_pin = AT91_PIN_PC2;
226 ek_mmc_data.slot[0].wp_pin = -1; 215 ek_mmc_data.slot[0].wp_pin = -1;
227 } 216 }
228 at91_add_device_mci(0, &ek_mmc_data); 217 at91_add_device_mci(0, &ek_mmc_data);
229#else
230 at91_add_device_mmc(0, &ek_mmc_data);
231#endif
232} 218}
233 219
234/* 220/*