9
0
Fork 0

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>
This commit is contained in:
Robert Jarzmik 2012-04-16 21:47:18 +02:00 committed by Sascha Hauer
parent e38469d2ce
commit cafdeff7ab
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}