File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -205,12 +205,12 @@ if(DEFINED uicr_path)
205205endif ()
206206
207207if (CONFIG_SOC_NRF54L_CPUAPP_COMMON)
208- # Ideally, hfpll should taken as a phandle from clocks property from cpu but it
209- # seems that there is no such option in DT cmake functions. Assuming that nrf54l
210- # is using hfpll as CPU clock source (true for all existing devices).
211- dt_prop(clock_frequency PATH "/clocks/hfpll" PROPERTY "clock-frequency" )
212- math (EXPR clock_frequency_mhz "${clock_frequency} / 1000000" )
213- zephyr_compile_definitions("NRF_CONFIG_CPU_FREQ_MHZ=${clock_frequency_mhz} " )
208+ # Ideally, hfpll should taken as a phandle from clocks property from cpu but it
209+ # seems that there is no such option in DT cmake functions. Assuming that nrf54l
210+ # is using hfpll as CPU clock source (true for all existing devices).
211+ dt_prop(clock_frequency PATH "/clocks/hfpll" PROPERTY "clock-frequency" )
212+ math (EXPR clock_frequency_mhz "${clock_frequency} / 1000000" )
213+ zephyr_compile_definitions("NRF_CONFIG_CPU_FREQ_MHZ=${clock_frequency_mhz} " )
214214endif ()
215215
216216zephyr_compile_definitions_ifdef(CONFIG_NRF_SKIP_CLOCK_CONFIG NRF_SKIP_CLOCK_CONFIGURATION)
You can’t perform that action at this time.
0 commit comments