Skip to content

Commit d0cbfaf

Browse files
committed
soc: ti: cc23x0: Add clock definition for RTC
Add conditonal definition for RTC and SYSTIM with different values for both of them respecting clock speed and ticks per minute. Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
1 parent 2e77346 commit d0cbfaf

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

soc/ti/simplelink/cc23x0/Kconfig.defconfig

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,20 @@ if SOC_SERIES_CC23X0
1010
config SYS_CLOCK_HW_CYCLES_PER_SEC
1111
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)
1212

13-
config SYS_CLOCK_TICKS_PER_SEC
14-
default 1000
13+
if CC23X0_RTC_TIMER
14+
config SYS_CLOCK_HW_CYCLES_PER_SEC
15+
default 32768
16+
17+
config SYS_CLOCK_TICKS_PER_SEC
18+
default 125375
19+
endif
20+
if CC23X0_SYSTIM_TIMER
21+
config SYS_CLOCK_HW_CYCLES_PER_SEC
22+
default 48000000
23+
24+
config SYS_CLOCK_TICKS_PER_SEC
25+
default 1000
26+
endif
1527

1628
config NUM_IRQS
1729
default 19

0 commit comments

Comments
 (0)