[PATCH 3/6] MCI/Core: increase the transmission frequency while card detection

Juergen Beisert jbe at pengutronix.de
Fri Apr 26 05:31:49 EDT 2013


According to the SD card spec the detection can happen at 400 kHz

Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
---
 drivers/mci/mci-core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index a269aee..9aeaa4d 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -1371,7 +1371,8 @@ static int mci_card_probe(struct mci *mci)
 	}
 
 	mci_set_bus_width(mci, MMC_BUS_WIDTH_1);
-	mci_set_clock(mci, 1);	/* set the lowest available clock */
+	/* according to the SD card spec the detection can happen at 400 kHz */
+	mci_set_clock(mci, 400000);
 
 	/* reset the card */
 	rc = mci_go_idle(mci);
-- 
1.8.2.rc2




More information about the barebox mailing list