bugfix: remove redundant SOC_PM_SUPPORT_XTAL_PD wrapping

Closes https://github.com/espressif/esp-idf/issues/10681
This commit is contained in:
wuzhenghui
2023-02-06 13:52:41 +08:00
parent 248c15475f
commit 75d15e8b80

View File

@@ -1455,10 +1455,8 @@ static uint32_t get_power_down_flags(void)
}
#endif
#if SOC_PM_SUPPORT_XTAL_PD
#ifdef CONFIG_IDF_TARGET_ESP32
s_config.domain[ESP_PD_DOMAIN_XTAL].pd_option = ESP_PD_OPTION_OFF;
#endif
#endif
const __attribute__((unused)) char *option_str[] = {"OFF", "ON", "AUTO(OFF)" /* Auto works as OFF */};
@@ -1511,11 +1509,9 @@ static uint32_t get_power_down_flags(void)
pd_flags |= RTC_SLEEP_PD_INT_8M;
}
#endif
#if SOC_PM_SUPPORT_XTAL_PD
if (s_config.domain[ESP_PD_DOMAIN_XTAL].pd_option != ESP_PD_OPTION_ON) {
pd_flags |= RTC_SLEEP_PD_XTAL;
}
#endif
#if SOC_PM_SUPPORT_VDDSDIO_PD
if (s_config.domain[ESP_PD_DOMAIN_VDDSDIO].pd_option != ESP_PD_OPTION_ON) {
pd_flags |= RTC_SLEEP_PD_VDDSDIO;