diff options
author | Juergen Beisert <jbe@pengutronix.de> | 2013-04-26 11:31:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-27 00:06:24 +0200 |
commit | bd041b2ced09a3433e72883c4562c8982611ffc8 (patch) | |
tree | 1c444868b4c20fe89e5ac4c97c5963e3956938fb /drivers/mci/mci-core.c | |
parent | aec4ccd96bb9b55761230dd2198b795cec7f71eb (diff) | |
download | barebox-bd041b2ced09a3433e72883c4562c8982611ffc8.tar.gz barebox-bd041b2ced09a3433e72883c4562c8982611ffc8.tar.xz |
MCI/Core: increase the transmission frequency while card detection
According to the SD card spec the detection can happen at 400 kHz
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/mci-core.c')
-rw-r--r-- | drivers/mci/mci-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index aef5c690c6..b96f212821 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -1375,7 +1375,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); |