aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2018-06-13 08:02:55 +0200
committerMarek Vasut <marex@denx.de>2018-11-02 15:57:14 +0100
commitc83da2ebc01cffbf5659d1a30960f9fec943c806 (patch)
treeae742907516387088f232e8f064f831e2caacd85 /drivers/mmc
parent8171f99e7db072383e20125e54c59f4a40272892 (diff)
downloadu-boot-c83da2ebc01cffbf5659d1a30960f9fec943c806.zip
u-boot-c83da2ebc01cffbf5659d1a30960f9fec943c806.tar.gz
u-boot-c83da2ebc01cffbf5659d1a30960f9fec943c806.tar.bz2
mmc: tmio: Preinitialize regulator to 3.3V
Preinitialize the SD card signals regulator to 3.3V, which is the default post-reset setting, to be sure the regulator is set to a valid value. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/tmio-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c
index 2a73829..0eca83a 100644
--- a/drivers/mmc/tmio-common.c
+++ b/drivers/mmc/tmio-common.c
@@ -720,6 +720,8 @@ int tmio_sd_probe(struct udevice *dev, u32 quirks)
#ifdef CONFIG_DM_REGULATOR
device_get_supply_regulator(dev, "vqmmc-supply", &priv->vqmmc_dev);
+ if (priv->vqmmc_dev)
+ regulator_set_value(priv->vqmmc_dev, 3300000);
#endif
ret = mmc_of_parse(dev, &plat->cfg);