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

Signed-off-by: Juergen Beisert <j...@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to