mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-19 03:23:49 +01:00
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From feb43f45f9ee6723c293ae5caad90a68415784f2 Mon Sep 17 00:00:00 2001
|
|
From: Gunar Schorcht <gunar@schorcht.net>
|
|
Date: Tue, 22 Apr 2025 01:48:09 +0200
|
|
Subject: [PATCH 42/42] esp_system/cpu_start: keep PLL running for lower CPU
|
|
freqencies
|
|
|
|
---
|
|
components/esp_system/port/cpu_start.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c
|
|
index cad5d291ac..09c4a7cd5b 100644
|
|
--- a/components/esp_system/port/cpu_start.c
|
|
+++ b/components/esp_system/port/cpu_start.c
|
|
@@ -716,6 +716,12 @@ void IRAM_ATTR call_start_cpu0(void)
|
|
trax_start_trace(TRAX_DOWNCOUNT_WORDS);
|
|
#endif // CONFIG_ESP32_TRAX || CONFIG_ESP32S2_TRAX || CONFIG_ESP32S3_TRAX
|
|
|
|
+#if (CPU_FAM_ESP32C6 && (CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ <= 40)) || \
|
|
+ (CPU_FAM_ESP32H2 && (CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ <= 32))
|
|
+ /* add a consumer for PLL480M to keep the PLL running on clock change */
|
|
+ rtc_clk_bbpll_add_consumer();
|
|
+#endif
|
|
+
|
|
esp_clk_init();
|
|
esp_perip_clk_init();
|
|
|
|
--
|
|
2.34.1
|
|
|