9
0
Fork 0

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>
This commit is contained in:
Michael Grzeschik 2011-12-06 17:10:12 +01:00 committed by Sascha Hauer
parent 35c0475a6d
commit f60f6c58e2
1 changed files with 2 additions and 0 deletions

View File

@ -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);