diff --git a/components/esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c b/components/esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c index 0131aa1bdc2..1b557f1817c 100644 --- a/components/esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c +++ b/components/esp_hw_support/lowpower/port/esp32h21/sleep_clock_icg.c @@ -96,10 +96,6 @@ void sleep_clock_icg_retention_clock_config(sleep_retention_module_bitmap_t *mod } } -#if !CONFIG_SECURE_ENABLE_TEE - clocks_mask &= ~PMU_SLEEP_CLK_ICG_BIT(PMU_ICG_FUNC_ENA_SEC); -#endif - esp_sleep_enter_critical_safe(); s_retention_icg_flags = clocks_mask; esp_sleep_exit_critical_safe(); diff --git a/components/esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c b/components/esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c index 817309eb715..2cd10be62ef 100644 --- a/components/esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c +++ b/components/esp_hw_support/lowpower/port/esp32s31/sleep_clock_icg.c @@ -126,9 +126,6 @@ void sleep_clock_icg_retention_clock_config(sleep_retention_module_bitmap_t *mod #if !CONFIG_SPIRAM clocks_mask &= ~PMU_SLEEP_CLK_ICG_BIT(PMU_ICG_FUNC_ENA_MSPI_PSRAM); #endif -#if !CONFIG_SECURE_ENABLE_TEE - clocks_mask &= ~PMU_SLEEP_CLK_ICG_BIT(PMU_ICG_FUNC_ENA_SEC); -#endif esp_sleep_enter_critical_safe(); s_retention_icg_flags[0] = PMU_SLEEP_CLK_ICG_FUNC_LO(clocks_mask);