]> git.sur5r.net Git - u-boot/blobdiff - drivers/mmc/gen_atmel_mci.c
mvsata: issue hard reset on initialization
[u-boot] / drivers / mmc / gen_atmel_mci.c
index fa4df9943a7906481b94f3d83db199b43791bbe4..f346b244be124e0502a9ec172584f4fccee78c2b 100644 (file)
@@ -33,7 +33,7 @@
 #include <asm/errno.h>
 #include <asm/byteorder.h>
 #include <asm/arch/clk.h>
-#include <asm/arch/memory-map.h>
+#include <asm/arch/hardware.h>
 #include "atmel_mci.h"
 
 #ifndef CONFIG_SYS_MMC_CLK_OD
@@ -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);
@@ -347,6 +348,8 @@ int atmel_mci_init(void *regs)
        mmc->f_min = get_mci_clk_rate() / (2*256);
        mmc->f_max = get_mci_clk_rate() / (2*1);
 
+       mmc->b_max = 0;
+
        mmc_register(mmc);
 
        return 0;