soc: rpi_pico: Set the default SYS_CLOCK_HW_CYCLES_PER_SEC
from dt
Avoid the individual `CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC` for each board instead to referencing the dt value. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
c304da7c67
commit
a76ed223d5
16 changed files with 10 additions and 18 deletions
|
@ -11,4 +11,9 @@ rsource "Kconfig.defconfig.rp2*"
|
|||
config NUM_IRQS
|
||||
default 26
|
||||
|
||||
DT_CLK_SYS_PATH := $(dt_nodelabel_path,clk_sys)
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_node_int_prop_int,$(DT_CLK_SYS_PATH),clock-frequency)
|
||||
|
||||
endif # SOC_SERIES_RP2040
|
||||
|
|
|
@ -14,4 +14,9 @@ config BUILD_OUTPUT_UF2_USE_FLASH_OFFSET
|
|||
config NUM_IRQS
|
||||
default 52
|
||||
|
||||
DT_CLK_SYS_PATH := $(dt_nodelabel_path,clk_sys)
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_node_int_prop_int,$(DT_CLK_SYS_PATH),clock-frequency)
|
||||
|
||||
endif # SOC_SERIES_RP2350
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue