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 <ioannis.damigos.uj@renesas.com>
This commit is contained in:
parent
aca97a0bef
commit
b7fbd91d9e
1 changed files with 5 additions and 2 deletions
|
@ -12,12 +12,15 @@ config CORTEX_M_SYSTICK
|
||||||
config NUM_IRQS
|
config NUM_IRQS
|
||||||
default 40
|
default 40
|
||||||
|
|
||||||
|
DT_LPCLK_PATH := $(dt_nodelabel_path,lp_clk)
|
||||||
|
DT_CLOCK_SRC_PATH := $(dt_node_ph_prop_path,$(DT_LPCLK_PATH),clock-src)
|
||||||
|
|
||||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK
|
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK
|
||||||
default 32768 if SMARTBOND_TIMER
|
default $(dt_node_int_prop_int,$(DT_CLOCK_SRC_PATH),clock-frequency) if SMARTBOND_TIMER
|
||||||
|
|
||||||
config SYS_CLOCK_TICKS_PER_SEC
|
config SYS_CLOCK_TICKS_PER_SEC
|
||||||
default 32768 if SMARTBOND_TIMER
|
default $(dt_node_int_prop_int,$(DT_CLOCK_SRC_PATH),clock-frequency) if SMARTBOND_TIMER
|
||||||
|
|
||||||
config SRAM_VECTOR_TABLE
|
config SRAM_VECTOR_TABLE
|
||||||
default y
|
default y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue