change(esp_hw_support): add kconfig option to put rtc clock module into iram

This commit is contained in:
Li Shuai
2025-11-20 10:47:42 +08:00
parent 482f7d45a4
commit a2ca229d2a
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -219,6 +219,12 @@ menu "Hardware Settings"
menu "RTC Clock Config"
orsource "./port/$IDF_TARGET/Kconfig.rtc"
config RTC_CLK_FUNC_IN_IRAM
bool "Place RTC clock module functions into IRAM"
default y
help
Place RTC clock module (all rtc clock functions and const data) into IRAM.
endmenu
menu "Peripheral Control"
+2 -1
View File
@@ -14,9 +14,10 @@ entries:
esp_memory_utils (noflash)
clk_utils (noflash)
if PM_SLP_IRAM_OPT = y:
rtc_clk (noflash)
rtc_time (noflash_text)
esp_clk_tree: esp_clk_tree_enable_src (noflash)
if RTC_CLK_FUNC_IN_IRAM = y:
rtc_clk (noflash)
if IDF_TARGET_ESP32 = y:
rtc_clk:rtc_clk_cpu_freq_to_pll_mhz (noflash)
rtc_clk:rtc_clk_cpu_freq_to_xtal (noflash)