From 3e1a93e5a747c088414dd74891ff681b77f20f11 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Fri, 25 May 2018 14:53:03 +1000 Subject: [PATCH] soc: rtc_vddsdio_get_config() In default configuration, VDD_SDIO LDO is always enabled When using bootstrapping pin to enable VDD_SDIO, the internal LDO is always enabled at either 1.8V or 3.3V. --- components/soc/esp32/rtc_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/soc/esp32/rtc_init.c b/components/soc/esp32/rtc_init.c index 0fa5d8687..7236225d4 100644 --- a/components/soc/esp32/rtc_init.c +++ b/components/soc/esp32/rtc_init.c @@ -133,7 +133,7 @@ rtc_vddsdio_config_t rtc_vddsdio_get_config() uint32_t strap_reg = REG_READ(GPIO_STRAP_REG); result.force = 0; result.tieh = (strap_reg & BIT(5)) ? RTC_VDDSDIO_TIEH_1_8V : RTC_VDDSDIO_TIEH_3_3V; - result.enable = result.tieh == RTC_VDDSDIO_TIEH_1_8V; // only power on the regulator if VDD=1.8 + result.enable = 1; return result; }