]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: tmio: Preinitialize regulator to 3.3V
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 13 Jun 2018 06:02:55 +0000 (08:02 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 2 Nov 2018 14:57:14 +0000 (15:57 +0100)
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>
drivers/mmc/tmio-common.c

index 2a73829d9943fb0e2ee579615b1614ff3274bb7b..0eca83a0f4db9281af3fdc33141f97e882f2e22f 100644 (file)
@@ -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);