summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2012-04-16 21:47:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-17 22:02:54 +0200
commitcafdeff7ab9800ebce74d062beccaa4e9abb7e97 (patch)
tree230a838c6e0fad2a472eca819b656267a48cfc63 /drivers
parente38469d2ce755af449c058ea43cf83fe4de5983e (diff)
downloadbarebox-cafdeff7ab9800ebce74d062beccaa4e9abb7e97.tar.gz
barebox-cafdeff7ab9800ebce74d062beccaa4e9abb7e97.tar.xz
mci: pxamci poweron ramp delay
As per MMC spec, once power has been applied to an SD card, the card can take as much as 250ms to complete its power-up cycle, and become responsive to CMD0. When this delay was not in place, activating the SD card in the env init failed sometimes. With it, no more failure are observed. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mci/pxamci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mci/pxamci.c b/drivers/mci/pxamci.c
index 9665196c7c..027fa7b05c 100644
--- a/drivers/mci/pxamci.c
+++ b/drivers/mci/pxamci.c
@@ -42,6 +42,7 @@ static int pxamci_set_power(struct pxamci_host *host, int on)
!!on ^ host->pdata->gpio_power_invert);
else if (host->pdata && host->pdata->setpower)
host->pdata->setpower(&host->mci, on);
+ mdelay(250);
return 0;
}