]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: set bus width to 1 and clock to minimum early during initialization
authorIlya Yanok <yanok@emcraft.com>
Mon, 29 Jun 2009 13:53:16 +0000 (17:53 +0400)
committerWolfgang Denk <wd@denx.de>
Sun, 19 Jul 2009 20:07:29 +0000 (22:07 +0200)
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 <yanok@emcraft.com>
drivers/mmc/mmc.c

index 8c736ce4974357649d79050d68cede82c954da61..b69ce152a83b5e1ef6848af754b63d7707eca83c 100644 (file)
@@ -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);