Power Management: support CPU powered down in light sleep for esp32h2

This commit is contained in:
Lou Tianhao
2023-05-22 10:47:31 +08:00
parent 63d32ab620
commit 6ea441c815
8 changed files with 25 additions and 8 deletions

View File

@@ -1077,7 +1077,7 @@ config SOC_PM_SUPPORT_BT_WAKEUP
config SOC_PM_SUPPORT_CPU_PD
bool
default n
default y
config SOC_PM_SUPPORT_XTAL32K_PD
bool
@@ -1095,6 +1095,10 @@ config SOC_PM_SUPPORT_VDDSDIO_PD
bool
default y
config SOC_PM_CPU_RETENTION_BY_SW
bool
default y
config SOC_PM_SUPPORT_DEEPSLEEP_CHECK_STUB_ONLY
bool
default y

View File

@@ -454,11 +454,12 @@
// TODO: IDF-6270 (Copy from esp32c6, need check)
/*-------------------------- Power Management CAPS ----------------------------*/
#define SOC_PM_SUPPORT_BT_WAKEUP (1)
#define SOC_PM_SUPPORT_CPU_PD (0)
#define SOC_PM_SUPPORT_CPU_PD (1)
#define SOC_PM_SUPPORT_XTAL32K_PD (1)
#define SOC_PM_SUPPORT_RC32K_PD (1)
#define SOC_PM_SUPPORT_RC_FAST_PD (1)
#define SOC_PM_SUPPORT_VDDSDIO_PD (1)
#define SOC_PM_CPU_RETENTION_BY_SW (1)
#define SOC_PM_SUPPORT_DEEPSLEEP_CHECK_STUB_ONLY (1) /*!<Supports CRC only the stub code in RTC memory */
/*-------------------------- CLOCK SUBSYSTEM CAPS ----------------------------------------*/