From d3a9e4f185ba2375a9eea66dd6e60e8534476b1e Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Tue, 4 Mar 2025 19:58:00 +0800 Subject: [PATCH] change(esp_hw_support): add main XTAL kconfig option to support clock source select --- .../esp_hw_support/port/esp32h21/Kconfig.xtal | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 components/esp_hw_support/port/esp32h21/Kconfig.xtal diff --git a/components/esp_hw_support/port/esp32h21/Kconfig.xtal b/components/esp_hw_support/port/esp32h21/Kconfig.xtal new file mode 100644 index 0000000000..e9aa20e3b5 --- /dev/null +++ b/components/esp_hw_support/port/esp32h21/Kconfig.xtal @@ -0,0 +1,16 @@ +choice XTAL_FREQ + prompt "Main XTAL frequency" + default XTAL_FREQ_32 + help + This option selects the operating frequency of the XTAL (crystal) clock used to drive the ESP target. + The selected value MUST reflect the frequency of the given hardware. + + config XTAL_FREQ_32 + bool "32 MHz" +endchoice + +# soc_xtal_freq_t enum in soc/clk_tree_defs.h lists the XTAL frequencies can be supported +# SOC_XTAL_SUPPORT_XXX in soc_caps.h lists the XTAL frequencies already supported +config XTAL_FREQ + int + default 32 if XTAL_FREQ_32