Skip to contentSkip to conversation

mmc: set bus width to 1 and clock to minimum early during initialization

PATCH New Ilya Yanok 2 participants 2 messages Jun 29, 2009 – Jul 19, 2009 MMC, SD and SDIO

lore
Share & tools
lore

Ilya Yanok

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/mmc/mmc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/mmc/mmc.c +3 -0
index 8c736ce..b69ce15 100644
@@ -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);
 
Signature · 1 line
1.6.0.6
#1 lore raw

PATCH 1/1 mmc: set bus width to 1 and clock to minimum early during initialization

Dear Ilya Yanok,

Quoted 7 lines · In message <[email protected]> you wrote:

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.

---
 drivers/mmc/mmc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Just think of a computer as hardware you can program."
- Nigel de la Tierre