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.
This commit is contained in:
Angus Gratton 2018-05-25 14:53:03 +10:00 committed by Angus Gratton
parent d775cc4c4c
commit 3e1a93e5a7

View File

@ -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;
}