summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Yanok <yanok@emcraft.com>2009-06-29 17:53:16 +0400
committerWolfgang Denk <wd@denx.de>2009-07-19 22:07:29 +0200
commitb86b85e2611d57d834795a92453431a1a340c3c9 (patch)
tree8c6bf495049e9e0f92635f91e4b1e45597822b23
parentcff80f2cd12bf9767509b5334ecfc90cd7de5502 (diff)
downloadbootable_bootloader_goldelico_gta04-b86b85e2611d57d834795a92453431a1a340c3c9.zip
bootable_bootloader_goldelico_gta04-b86b85e2611d57d834795a92453431a1a340c3c9.tar.gz
bootable_bootloader_goldelico_gta04-b86b85e2611d57d834795a92453431a1a340c3c9.tar.bz2
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 <yanok@emcraft.com>
-rw-r--r--drivers/mmc/mmc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 8c736ce..b69ce15 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);