diff --git a/components/esp_hw_support/sleep_modes.c b/components/esp_hw_support/sleep_modes.c index 27e7b022eac..41a45073cb9 100644 --- a/components/esp_hw_support/sleep_modes.c +++ b/components/esp_hw_support/sleep_modes.c @@ -679,9 +679,6 @@ static SLEEP_FN_ATTR void misc_modules_sleep_prepare(uint32_t sleep_flags, bool } #endif #if CONFIG_MAC_BB_PD -# if CONFIG_IDF_TARGET_ESP32C5 - clk_ll_soc_root_clk_auto_gating_bypass(false); -# endif mac_bb_power_down_cb_execute(); #endif #if CONFIG_IDF_TARGET_ESP32 @@ -757,9 +754,6 @@ static SLEEP_FN_ATTR void misc_modules_wake_prepare(uint32_t sleep_flags) #endif #if CONFIG_MAC_BB_PD mac_bb_power_up_cb_execute(); -# if CONFIG_IDF_TARGET_ESP32C5 - clk_ll_soc_root_clk_auto_gating_bypass(true); -# endif #endif #if REGI2C_LL_ANA_CALI_PD_WORKAROUND regi2c_analog_cali_reg_write(); diff --git a/components/esp_system/port/soc/esp32c5/clk.c b/components/esp_system/port/soc/esp32c5/clk.c index 83dc1ced905..55b80fc5219 100644 --- a/components/esp_system/port/soc/esp32c5/clk.c +++ b/components/esp_system/port/soc/esp32c5/clk.c @@ -20,7 +20,6 @@ #include "soc/rtc_periph.h" #include "soc/i2s_reg.h" #include "esp_cpu.h" -#if SOC_WDT_SUPPORTED || SOC_RTC_WDT_SUPPORTED #include "hal/wdt_hal.h" #include "hal/clk_tree_ll.h" #if SOC_MODEM_CLOCK_SUPPORTED