Skip to content

Commit b18015c

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 7480fbf commit b18015c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

soc/ti/simplelink/cc23x0/Kconfig.defconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
1212

1313
config SYS_CLOCK_TICKS_PER_SEC
1414
default 1000
15+
if CC23X0_RTC_TIMER
16+
config SYS_CLOCK_HW_CYCLES_PER_SEC
17+
default 32768
18+
19+
config SYS_CLOCK_TICKS_PER_SEC
20+
default 125375
21+
endif
22+
if CC23X0_SYSTIM_TIMER
23+
config SYS_CLOCK_HW_CYCLES_PER_SEC
24+
default 48000000
25+
26+
config SYS_CLOCK_TICKS_PER_SEC
27+
default 1000
28+
endif
1529

1630
config NUM_IRQS
1731
default 19

0 commit comments

Comments
 (0)