fix(clk): 400MHz CPU should still be selectable on ESP32-P4 less than rev3

This commit is contained in:
Song Ruo Jing
2025-11-11 17:02:32 +08:00
parent c17644a400
commit 7008558fe5
2 changed files with 4 additions and 1 deletions
@@ -6,6 +6,10 @@ endif()
target_include_directories(${COMPONENT_LIB} PRIVATE ${INCLUDE_FILES} include/private)
if(CONFIG_ESP32P4_SELECTS_REV_LESS_V3 AND CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_400)
message(WARNING "400 MHz CPU frequency is not guaranteed to work on all chips with revision prior to rev 3!")
endif()
set(srcs "cpu_start.c" "panic_handler.c" "esp_system_chip.c")
if(NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
@@ -14,7 +14,6 @@ choice ESP_DEFAULT_CPU_FREQ_MHZ
depends on ESP32P4_SELECTS_REV_LESS_V3
config ESP_DEFAULT_CPU_FREQ_MHZ_400
bool "400 MHz"
depends on !ESP32P4_SELECTS_REV_LESS_V3
endchoice
config ESP_DEFAULT_CPU_FREQ_MHZ