diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2011-12-06 17:10:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-07 09:39:12 +0100 |
commit | f60f6c58e24fe0facb77e516b5b4f1acf7c36582 (patch) | |
tree | a7dcdbd6ce05cb7f31cf9e2e036e04556557763a /drivers/mci/atmel_mci.c | |
parent | 35c0475a6d85cbbc2ca3ff526c330dceee0c2215 (diff) | |
download | barebox-f60f6c58e24fe0facb77e516b5b4f1acf7c36582.tar.gz barebox-f60f6c58e24fe0facb77e516b5b4f1acf7c36582.tar.xz |
atmel_mci: check for device id we use to address the right slot
We have to check which sd card slot we use. The registered mmc_id is the
the correct parameter for this.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/atmel_mci.c')
-rw-r--r-- | drivers/mci/atmel_mci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c index 4a29cad18f..15668fc78b 100644 --- a/drivers/mci/atmel_mci.c +++ b/drivers/mci/atmel_mci.c @@ -369,6 +369,8 @@ static void mci_set_ios(struct mci_host *mci, struct device_d *mci_dev, atmel_mci_writel(host, AT91_MCI_SDCR, AT91_MCI_SDCBUS_1BIT); break; } + atmel_mci_writel(host, AT91_MCI_SDCR, atmel_mci_readl(host, AT91_MCI_SDCR) + | host->hw_dev->id); if (clock) { atmel_set_clk_rate(host, clock); |