diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c index f4fd9e92cfe..d329ac4da94 100644 --- a/components/esp_system/port/cpu_start.c +++ b/components/esp_system/port/cpu_start.c @@ -253,7 +253,7 @@ void ESP_SYSTEM_IRAM_ATTR call_start_cpu1(void) esp_cpu_intr_set_mtvt_addr(&_mtvt_table); #endif #if SOC_CPU_SUPPORT_WFE - rv_utils_disable_wfe_mode(); + esp_cpu_disable_wfe_mode(); #endif ets_set_appcpu_boot_addr(0); diff --git a/components/soc/esp32s31/include/soc/Kconfig.soc_caps.in b/components/soc/esp32s31/include/soc/Kconfig.soc_caps.in index e59e8383ffc..fc9ecab2c08 100644 --- a/components/soc/esp32s31/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32s31/include/soc/Kconfig.soc_caps.in @@ -487,6 +487,10 @@ config SOC_CPU_HAS_FLEXIBLE_INTC bool default y +config SOC_CPU_SUPPORT_WFE + bool + default y + config SOC_INT_CLIC_SUPPORTED bool default y diff --git a/components/soc/esp32s31/include/soc/soc_caps.h b/components/soc/esp32s31/include/soc/soc_caps.h index 5d065cc578b..5dde0dee33f 100644 --- a/components/soc/esp32s31/include/soc/soc_caps.h +++ b/components/soc/esp32s31/include/soc/soc_caps.h @@ -167,6 +167,7 @@ #define SOC_CPU_CORES_NUM (2U) #define SOC_CPU_INTR_NUM 32 #define SOC_CPU_HAS_FLEXIBLE_INTC 1 +#define SOC_CPU_SUPPORT_WFE 1 #define SOC_INT_CLIC_SUPPORTED 1 #define SOC_INT_HW_NESTED_SUPPORTED 1 // Support for hardware interrupts nesting #define SOC_BRANCH_PREDICTOR_SUPPORTED 1