Skip to content

Commit 0697739

Browse files
committed
CMakeLists: relocate HDMI CPU frequency logic for better validation consistency
1 parent 88ba7ec commit 0697739

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,23 @@ else()
7777
# CPU Configuration
7878
set(CPU_FREQ_MHZ "378" CACHE STRING "CPU frequency in MHz")
7979

80-
# Override CPU frequency for HDMI (required for timing)
81-
if(ENABLE_HDMI)
82-
set(CPU_FREQ_MHZ "378")
83-
message(STATUS "HDMI enabled - CPU frequency locked to 378 MHz")
84-
endif()
85-
8680
# =========================
8781
# VALIDATION
8882
# =========================
8983

9084
# Validate display options
9185
set(DISPLAY_COUNT 0)
9286
if(ENABLE_TFT)
87+
message(STATUS "TFT Enabled")
9388
math(EXPR DISPLAY_COUNT "${DISPLAY_COUNT} + 1")
9489
endif()
9590
if(ENABLE_VGA)
91+
message(STATUS "VGA Enabled")
9692
math(EXPR DISPLAY_COUNT "${DISPLAY_COUNT} + 1")
9793
endif()
9894
if(ENABLE_HDMI)
95+
set(CPU_FREQ_MHZ "378")
96+
message(STATUS "HDMI enabled - CPU frequency locked to 378 MHz")
9997
math(EXPR DISPLAY_COUNT "${DISPLAY_COUNT} + 1")
10098
endif()
10199

0 commit comments

Comments
 (0)