From d3ca0656c8e98282455e9a27af7be60e13b449f8 Mon Sep 17 00:00:00 2001 From: Lou Tianhao Date: Sun, 21 May 2023 18:42:03 +0800 Subject: [PATCH] Power Management: support MODEM domain powered down in light sleep for esp32h2 --- components/soc/esp32h2/include/soc/Kconfig.soc_caps.in | 8 ++++++++ components/soc/esp32h2/include/soc/soc_caps.h | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in b/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in index f431cb030e..3713255145 100644 --- a/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in @@ -1083,6 +1083,10 @@ config SOC_PM_SUPPORT_CPU_PD bool default y +config SOC_PM_SUPPORT_MODEM_PD + bool + default y + config SOC_PM_SUPPORT_XTAL32K_PD bool default y @@ -1111,6 +1115,10 @@ config SOC_PM_CPU_RETENTION_BY_SW bool default y +config SOC_PM_MODEM_RETENTION_BY_REGDMA + bool + default y + config SOC_PM_SUPPORT_DEEPSLEEP_CHECK_STUB_ONLY bool default y diff --git a/components/soc/esp32h2/include/soc/soc_caps.h b/components/soc/esp32h2/include/soc/soc_caps.h index 80554fc7aa..7f9e65303d 100644 --- a/components/soc/esp32h2/include/soc/soc_caps.h +++ b/components/soc/esp32h2/include/soc/soc_caps.h @@ -452,10 +452,10 @@ /*--------------- PHY REGISTER AND MEMORY SIZE CAPS --------------------------*/ #define SOC_PHY_DIG_REGS_MEM_SIZE (21*4) -// TODO: IDF-6270 (Copy from esp32c6, need check) /*-------------------------- Power Management CAPS ----------------------------*/ #define SOC_PM_SUPPORT_BT_WAKEUP (1) #define SOC_PM_SUPPORT_CPU_PD (1) +#define SOC_PM_SUPPORT_MODEM_PD (1) /*!