From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 2 Nov 2018 16:03:20 +0100 Subject: [U-Boot] [PATCH V3 05/13] mmc: tmio: Preinitialize regulator to 3.3V In-Reply-To: <20181102150328.21972-1-marek.vasut+renesas@gmail.com> References: <20181102150328.21972-1-marek.vasut+renesas@gmail.com> Message-ID: <20181102150328.21972-5-marek.vasut+renesas@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Cc: Masahiro Yamada --- V2: No change V3: No change --- drivers/mmc/tmio-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 2a73829d99..0eca83a0f4 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); -- 2.18.0