summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-xenon.c
diff options
context:
space:
mode:
authorHu Ziji <huziji@marvell.com>2017-03-30 17:23:01 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2017-04-24 21:42:17 +0200
commit298269c602b54dd56e1424cb8e706fc30bc7d489 (patch)
tree4e21fbd4cae6314f5ab846eaf4dba6a72060c30e /drivers/mmc/host/sdhci-xenon.c
parent06c8b667ff5b984ac3aa901c4928e4a427987a56 (diff)
downloadop-kernel-dev-298269c602b54dd56e1424cb8e706fc30bc7d489.zip
op-kernel-dev-298269c602b54dd56e1424cb8e706fc30bc7d489.tar.gz
mmc: sdhci-xenon: Add SoC PHY PAD voltage control
Some SoCs have PHY PAD outside Xenon IP. PHY PAD voltage should match signalling voltage in use. Add generic SoC PHY PAD voltage control interface. Implement Aramda-3700 SoC PHY PAD voltage control. Signed-off-by: Hu Ziji <huziji@marvell.com> Tested-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-xenon.c')
-rw-r--r--drivers/mmc/host/sdhci-xenon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-xenon.c b/drivers/mmc/host/sdhci-xenon.c
index 36e22bd..8e56b9c 100644
--- a/drivers/mmc/host/sdhci-xenon.c
+++ b/drivers/mmc/host/sdhci-xenon.c
@@ -280,6 +280,8 @@ static int xenon_start_signal_voltage_switch(struct mmc_host *mmc,
*/
xenon_enable_internal_clk(host);
+ xenon_soc_pad_ctrl(host, ios->signal_voltage);
+
/*
* If Vqmmc is fixed on platform, vqmmc regulator should be unavailable.
* Thus SDHCI_CTRL_VDD_180 bit might not work then.
OpenPOWER on IntegriCloud