|
@@ -1829,6 +1829,10 @@ static int sdhci_do_start_signal_voltage_switch(struct sdhci_host *host,
|
|
ctrl |= SDHCI_CTRL_VDD_180;
|
|
ctrl |= SDHCI_CTRL_VDD_180;
|
|
sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
|
|
sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
|
|
|
|
|
|
|
|
+ /* Some controller need to do more when switching */
|
|
|
|
+ if (host->ops->voltage_switch)
|
|
|
|
+ host->ops->voltage_switch(host);
|
|
|
|
+
|
|
/* 1.8V regulator output should be stable within 5 ms */
|
|
/* 1.8V regulator output should be stable within 5 ms */
|
|
ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);
|
|
ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);
|
|
if (ctrl & SDHCI_CTRL_VDD_180)
|
|
if (ctrl & SDHCI_CTRL_VDD_180)
|