From: Reinhard Meyer Date: Tue, 16 Nov 2010 08:24:41 +0000 (+0100) Subject: AT91: gen_atmel_mci.c: fix bug when Slot B is used X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2aed9d14cc167385c158f78a3d12b46fd226b499;p=people%2Fms%2Fu-boot.git AT91: gen_atmel_mci.c: fix bug when Slot B is used Signed-off-by: Reinhard Meyer --- diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index fa4df9943a..2984d645c9 100644 --- a/drivers/mmc/gen_atmel_mci.c +++ b/drivers/mmc/gen_atmel_mci.c @@ -308,6 +308,7 @@ static int mci_init(struct mmc *mmc) writel(MMCI_BIT(SWRST), &mci->cr); /* soft reset */ writel(MMCI_BIT(PWSDIS), &mci->cr); /* disable power save */ writel(MMCI_BIT(MCIEN), &mci->cr); /* enable mci */ + writel(MMCI_BF(SCDSEL, MCI_BUS), &mci->sdcr); /* select port */ /* Initial Time-outs */ writel(0x5f, &mci->dtor);