sdhci: Specific quirk vor VIA SDHCI controller in VX855ES
The SDHCI controller found in the VX855ES requires 10ms delay between applying power and applying clock. This issue has been discovered and documented by the OLPC XO1.5 team. Signed-off-by: Harald Welte <HaraldWelte@viatech.com> Signed-off-by: Pierre Ossman <pierre@ossman.eu>
This commit is contained in:
committed by
Pierre Ossman
parent
fe9db6cbf1
commit
557b06971b
@@ -1057,6 +1057,13 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned short power)
|
||||
pwr |= SDHCI_POWER_ON;
|
||||
|
||||
sdhci_writeb(host, pwr, SDHCI_POWER_CONTROL);
|
||||
|
||||
/*
|
||||
* Some controllers need an extra 10ms delay of 10ms before they
|
||||
* can apply clock after applying power
|
||||
*/
|
||||
if ((host->quirks & SDHCI_QUIRK_DELAY_AFTER_POWER))
|
||||
mdelay(10);
|
||||
}
|
||||
|
||||
/*****************************************************************************\
|
||||
|
Reference in New Issue
Block a user