From caddc10bf307bb9ad55ddbc065d83bcb9df0caec Mon Sep 17 00:00:00 2001 From: Lou Tianhao Date: Thu, 3 Aug 2023 16:08:06 +0800 Subject: [PATCH] feat(pm/deepsleep): support pd hp aon domain in deepsleep --- components/esp_hw_support/sleep_modes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp_hw_support/sleep_modes.c b/components/esp_hw_support/sleep_modes.c index a8ef9096d0bd..d45a9c905a83 100644 --- a/components/esp_hw_support/sleep_modes.c +++ b/components/esp_hw_support/sleep_modes.c @@ -859,6 +859,9 @@ void IRAM_ATTR esp_deep_sleep_start(void) #if SOC_PMU_SUPPORTED uint32_t force_pd_flags = PMU_SLEEP_PD_TOP | PMU_SLEEP_PD_VDDSDIO | PMU_SLEEP_PD_MODEM | PMU_SLEEP_PD_HP_PERIPH \ | PMU_SLEEP_PD_CPU | PMU_SLEEP_PD_MEM | PMU_SLEEP_PD_XTAL; +#if SOC_PM_SUPPORT_HP_AON_PD + force_pd_flags |= PMU_SLEEP_PD_HP_AON; +#endif #else uint32_t force_pd_flags = RTC_SLEEP_PD_DIG | RTC_SLEEP_PD_VDDSDIO | RTC_SLEEP_PD_INT_8M | RTC_SLEEP_PD_XTAL; #endif