From: Ilya Yanok Date: Mon, 29 Jun 2009 13:53:16 +0000 (+0400) Subject: mmc: set bus width to 1 and clock to minimum early during initialization X-Git-Tag: v2009.08-rc1~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b86b85e2611d57d834795a92453431a1a340c3c9;p=oweals%2Fu-boot.git mmc: set bus width to 1 and clock to minimum early during initialization We need to switch back to 1-bit before initialization or SD 2.0 cards will fail to send SCR if we've switched to 4-bit already. Signed-off-by: Ilya Yanok --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 8c736ce497..b69ce152a8 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -859,6 +859,9 @@ int mmc_init(struct mmc *mmc) if (err) return err; + mmc_set_bus_width(mmc, 1); + mmc_set_clock(mmc, 1); + /* Reset the Card */ err = mmc_go_idle(mmc);