Skip to content

Commit 46d3ec6

Browse files
committed
drivers: timer: cc23x0: Add option to select between RTC and SYSTIM
Add choice menu where could be selected between RTC or SYSTIM for system timer. Signed-off-by: Stoyan Bogdanov <sbogdanov@baylibre.com>
1 parent ae99512 commit 46d3ec6

File tree

3 files changed

+27
-14
lines changed

3 files changed

+27
-14
lines changed

drivers/timer/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ source "drivers/timer/Kconfig.arcv2"
6969
source "drivers/timer/Kconfig.arm_arch"
7070
source "drivers/timer/Kconfig.cavs"
7171
source "drivers/timer/Kconfig.cc13xx_cc26xx_rtc"
72-
source "drivers/timer/Kconfig.cc23x0_systim"
72+
source "drivers/timer/Kconfig.cc23x0"
7373
source "drivers/timer/Kconfig.wch_ch32v00x"
7474
source "drivers/timer/Kconfig.cortex_m_systick"
7575
source "drivers/timer/Kconfig.esp32"

drivers/timer/Kconfig.cc23x0

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2024 Texas Instruments Incorporated
2+
# Copyright (c) 2024 BayLibre, SAS
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
choice
7+
prompt "TI SimpleLink CC23X default System Timer"
8+
depends on HAS_CC23X0_SDK
9+
default CC23X0_RTC_TIMER
10+
help
11+
Select Default System Timer.
12+
13+
config CC23X0_SYSTIM_TIMER
14+
bool "SYSTIM timer"
15+
select TICKLESS_CAPABLE
16+
help
17+
This module provides SYSTIM as "system clock driver" interfaces
18+
for the TI Simplelink CC23X0 devices.
19+
20+
config CC23X0_RTC_TIMER
21+
bool "RTC timer"
22+
select TICKLESS_CAPABLE
23+
help
24+
This module provides RTC as "system clock driver" interfaces
25+
for the TI Simplelink CC23X0 devices.
26+
endchoice

drivers/timer/Kconfig.cc23x0_systim

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)