soc: nuvoton: npcx: update default SYS_CLOCK_HW_CYCLES_PER_SEC
Added support for deriving `SYS_CLOCK_HW_CYCLES_PER_SEC` from the Device Tree by reading the `clock-frequency` property in the `itim` node. Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
This commit is contained in:
parent
35faf60c94
commit
d789d13ec0
7 changed files with 12 additions and 9 deletions
|
@ -15,4 +15,7 @@ config ESPI_TAF_NPCX
|
|||
default y
|
||||
depends on ESPI_TAF
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_nodelabel_int_prop,itims,clock-frequency)
|
||||
|
||||
endif # SOC_SERIES_NPCK3
|
||||
|
|
|
@ -15,4 +15,7 @@ config ESPI_TAF_NPCX
|
|||
default y
|
||||
depends on ESPI_TAF
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_nodelabel_int_prop,itims,clock-frequency)
|
||||
|
||||
endif # SOC_SERIES_NPCX4
|
||||
|
|
|
@ -11,4 +11,7 @@ config NUM_IRQS
|
|||
config CORTEX_M_SYSTICK
|
||||
default !NPCX_ITIM_TIMER
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_nodelabel_int_prop,itims,clock-frequency)
|
||||
|
||||
endif # SOC_SERIES_NPCX7
|
||||
|
|
|
@ -11,4 +11,7 @@ config NUM_IRQS
|
|||
config CORTEX_M_SYSTICK
|
||||
default !NPCX_ITIM_TIMER
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_nodelabel_int_prop,itims,clock-frequency)
|
||||
|
||||
endif # SOC_SERIES_NPCX9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue