Merge branch 'bugfix/remove_redundant_macro_wrapping' into 'master'

bugfix: remove wrong SOC_PM_SUPPORT_XTAL_PD wrapping

Closes IDFGH-9300

See merge request espressif/esp-idf!22239
This commit is contained in:
Wu Zheng Hui
2023-02-07 23:31:09 +08:00

View File

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