From d9a7ff38f6fd88ade8fc454ccfaa8d48c1c41ed7 Mon Sep 17 00:00:00 2001 From: Samuel Obuch Date: Mon, 15 Dec 2025 12:28:40 +0100 Subject: [PATCH] fix(esp_hw_support): enable core1 auto clock gating for esp32p4 rev3+ multicore --- components/esp_system/port/cpu_start.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c index cbd5dafa3c..21001baea4 100644 --- a/components/esp_system/port/cpu_start.c +++ b/components/esp_system/port/cpu_start.c @@ -643,6 +643,10 @@ NOINLINE_ATTR static void system_early_init(const soc_reset_reason_t *rst_reas) #if SOC_CPU_CORES_NUM > 1 // there is no 'single-core mode' for natively single-core processors #if !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE +#if CONFIG_IDF_TARGET_ESP32P4 && CONFIG_ESP32P4_REV_MIN_FULL >= 300 + // Ensure autoclock gating mode for core1 is enabled, it gets disabled in single-core mode. + REG_SET_BIT(HP_SYS_CLKRST_CPU_WAITI_CTRL0_REG, HP_SYS_CLKRST_REG_CORE1_WAITI_ICG_EN); +#endif start_other_core(); #else ESP_EARLY_LOGI(TAG, "Single core mode");