drivers: timer: Add timer driver to Renesas SmartBond(tm)
This adds timer driver for Renesas SmartBond(tm) family. It uses TIMER2 block which is in PD_TIM power domain so it can work even if ARM core is disabled, thus can work as a sleep timer. Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
This commit is contained in:
parent
3247a1db81
commit
6307d8de78
5 changed files with 187 additions and 1 deletions
|
@ -3,11 +3,21 @@
|
|||
|
||||
if SOC_SERIES_DA1469X
|
||||
|
||||
config SMARTBOND_TIMER
|
||||
default y if PM
|
||||
|
||||
config CORTEX_M_SYSTICK
|
||||
default n if SMARTBOND_TIMER
|
||||
|
||||
config NUM_IRQS
|
||||
default 40
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)
|
||||
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK
|
||||
default 32768 if SMARTBOND_TIMER
|
||||
|
||||
config SYS_CLOCK_TICKS_PER_SEC
|
||||
default 32768 if SMARTBOND_TIMER
|
||||
|
||||
config SRAM_VECTOR_TABLE
|
||||
default y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue