From a76dee171ee3a99338c2fd5a69e29cb652ccf5e4 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Wed, 22 Mar 2023 21:54:32 +0800 Subject: [PATCH] esp32h2: update esp32h2 modem_clock soc_caps --- .../soc/esp32h2/include/soc/Kconfig.soc_caps.in | 12 ++++++++++++ components/soc/esp32h2/include/soc/soc_caps.h | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in b/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in index 1daccc3f54..a84f660f58 100644 --- a/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in @@ -1051,6 +1051,14 @@ config SOC_PM_SUPPORT_BT_PD bool default y +config SOC_PM_SUPPORT_XTAL32K_PD + bool + default y + +config SOC_PM_SUPPORT_RC32K_PD + bool + default y + config SOC_PM_SUPPORT_RC_FAST_PD bool default y @@ -1087,6 +1095,10 @@ config SOC_CLK_LP_FAST_SUPPORT_LP_PLL bool default y +config SOC_MODEM_CLOCK_IS_INDEPENDENT + bool + default y + config SOC_TEMPERATURE_SENSOR_SUPPORT_FAST_RC bool default y diff --git a/components/soc/esp32h2/include/soc/soc_caps.h b/components/soc/esp32h2/include/soc/soc_caps.h index 83d9b780be..145998f1c6 100644 --- a/components/soc/esp32h2/include/soc/soc_caps.h +++ b/components/soc/esp32h2/include/soc/soc_caps.h @@ -452,6 +452,8 @@ #define SOC_PM_SUPPORT_BT_WAKEUP (1) #define SOC_PM_SUPPORT_CPU_PD (1) #define SOC_PM_SUPPORT_BT_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_RTCCNTL (1) @@ -464,7 +466,8 @@ #define SOC_CLK_OSC_SLOW_SUPPORTED (1) /*!< Support to connect an external oscillator, not a crystal */ #define SOC_CLK_RC32K_SUPPORTED (1) /*!< Support an internal 32kHz RC oscillator */ -#define SOC_CLK_LP_FAST_SUPPORT_LP_PLL (1) /*!< Support LP_PLL clock as the LP_FAST clock source */ +#define SOC_CLK_LP_FAST_SUPPORT_LP_PLL (1) /*!< Support LP_PLL clock as the LP_FAST clock source */ +#define SOC_MODEM_CLOCK_IS_INDEPENDENT (1) // #define SOC_PM_MODEM_RETENTION_BY_REGDMA (1) // TODO: IDF-6267