Skip to content

Commit f0b9e31

Browse files
committed
soc/da1469x: Fix CONFIG_SYS_CLOCK_*_PER_SEC defines
The following configuration options: SYS_CLOCK_HW_CYCLES_PER_SEC SYS_CLOCK_TICKS_PER_SEC should get their values according to lp_clock node's clock-src property. Signed-off-by: Ioannis Damigos <[email protected]>
1 parent 0d56a3c commit f0b9e31

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

soc/renesas/smartbond/da1469x/Kconfig.defconfig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ config CORTEX_M_SYSTICK
1212
config NUM_IRQS
1313
default 40
1414

15+
DT_LPCLK_PATH := $(dt_nodelabel_path,lp_clk)
16+
DT_CLOCK_SRC_PATH := $(dt_node_ph_prop_path,$(DT_LPCLK_PATH),clock-src)
17+
1518
config SYS_CLOCK_HW_CYCLES_PER_SEC
1619
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK
17-
default 32768 if SMARTBOND_TIMER
20+
default $(dt_node_int_prop_int,$(DT_CLOCK_SRC_PATH),clock-frequency) if SMARTBOND_TIMER
1821

1922
config SYS_CLOCK_TICKS_PER_SEC
20-
default 32768 if SMARTBOND_TIMER
23+
default $(dt_node_int_prop_int,$(DT_CLOCK_SRC_PATH),clock-frequency) if SMARTBOND_TIMER
2124

2225
config SRAM_VECTOR_TABLE
2326
default y

0 commit comments

Comments
 (0)