diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2012-04-16 21:47:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-17 22:02:54 +0200 |
commit | cafdeff7ab9800ebce74d062beccaa4e9abb7e97 (patch) | |
tree | 230a838c6e0fad2a472eca819b656267a48cfc63 /drivers | |
parent | e38469d2ce755af449c058ea43cf83fe4de5983e (diff) | |
download | barebox-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.c | 1 |
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; } |