]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
AT91: gen_atmel_mci.c: fix bug when Slot B is used
authorReinhard Meyer <u-boot@emk-elektronik.de>
Tue, 16 Nov 2010 08:24:41 +0000 (09:24 +0100)
committerReinhard Meyer <u-boot@emk-elektronik.de>
Tue, 7 Dec 2010 15:36:39 +0000 (16:36 +0100)
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
drivers/mmc/gen_atmel_mci.c

index fa4df9943a7906481b94f3d83db199b43791bbe4..2984d645c9ddab0dfba0f9229eecc52f1d3e20bd 100644 (file)
@@ -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);