summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/at91sam9260ek
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-01-13 16:55:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-16 09:33:41 +0100
commit3874b16997d3c0219a9baab3578ba27ec084282b (patch)
treea455a6d0564d51df775837312b77556abbd6f7bd /arch/arm/boards/at91sam9260ek
parente54e3289aa12401927cb8e6184b0550ccd0c7319 (diff)
downloadbarebox-3874b16997d3c0219a9baab3578ba27ec084282b.tar.gz
barebox-3874b16997d3c0219a9baab3578ba27ec084282b.tar.xz
atmel/mci: fix slot_b support
in commit commit f60f6c58e atmel_mci: check for device id we use to address the right slot the driver use the dev_id to detect the slot which is wrong on 9263 as we have 2 devices with 2 slots use slot_b paramter to specify the slot as done in linux Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/at91sam9260ek')
-rw-r--r--arch/arm/boards/at91sam9260ek/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boards/at91sam9260ek/init.c b/arch/arm/boards/at91sam9260ek/init.c
index b10d0dc14e..df44e3e306 100644
--- a/arch/arm/boards/at91sam9260ek/init.c
+++ b/arch/arm/boards/at91sam9260ek/init.c
@@ -172,6 +172,7 @@ static void at91sam9260ek_phy_reset(void)
#if defined(CONFIG_MCI_ATMEL)
static struct atmel_mci_platform_data __initdata ek_mci_data = {
.bus_width = 4,
+ .slot_b = 1,
};
static void ek_usb_add_device_mci(void)
@@ -179,7 +180,7 @@ static void ek_usb_add_device_mci(void)
if (machine_is_at91sam9g20ek())
ek_mci_data.detect_pin = AT91_PIN_PC9;
- at91_add_device_mci(1, &ek_mci_data);
+ at91_add_device_mci(0, &ek_mci_data);
}
#else
static void ek_usb_add_device_mci(void) {}