Skip to content

Commit b14b20a

Browse files
committed
drivers: timer: add tcc_vcpttc timer driver
Add timer driver for tcc_vcpttc, required by TOPST VCP45. Signed-off-by: Hounjoung Rim <[email protected]>
1 parent c52e395 commit b14b20a

File tree

6 files changed

+626
-0
lines changed

6 files changed

+626
-0
lines changed

drivers/timer/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ zephyr_library_sources_ifdef(CONFIG_REALTEK_RTS5912_RTMR realtek_rts5912_rtmr.c)
4141
zephyr_library_sources_ifdef(CONFIG_SAM0_RTC_TIMER sam0_rtc_timer.c)
4242
zephyr_library_sources_ifdef(CONFIG_SILABS_SLEEPTIMER_TIMER silabs_sleeptimer_timer.c)
4343
zephyr_library_sources_ifdef(CONFIG_STM32_LPTIM_TIMER stm32_lptim_timer.c)
44+
zephyr_library_sources_ifdef(CONFIG_TCC_VCPTTC_TIMER tcc_vcpttc_timer.c)
4445
zephyr_library_sources_ifdef(CONFIG_TI_DM_TIMER ti_dmtimer.c)
4546
zephyr_library_sources_ifdef(CONFIG_XLNX_PSTTC_TIMER xlnx_psttc_timer.c)
4647
zephyr_library_sources_ifdef(CONFIG_XTENSA_TIMER xtensa_sys_timer.c)

drivers/timer/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ source "drivers/timer/Kconfig.sam0_rtc"
9999
source "drivers/timer/Kconfig.silabs"
100100
source "drivers/timer/Kconfig.smartbond"
101101
source "drivers/timer/Kconfig.stm32_lptim"
102+
source "drivers/timer/Kconfig.tcc_vcpttc"
102103
source "drivers/timer/Kconfig.ti_dm_timer"
103104
source "drivers/timer/Kconfig.xlnx_psttc"
104105
source "drivers/timer/Kconfig.xtensa"

drivers/timer/Kconfig.tcc_vcpttc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2024 Hounjoung Rim <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config TCC_VCPTTC_TIMER
5+
bool "Telechips VCP ttc timer support"
6+
default y
7+
depends on DT_HAS_TCC_TTCVCP_ENABLED
8+
help
9+
This module implements a kernel device driver for the Telechips VCP
10+
platform provides the standard "system clock driver" interfaces.
11+
If unchecked, no timer will be used.
12+
13+
config TCC_VCPTTC_TIMER_INDEX
14+
int "Telechips VCP ttc timer index"
15+
range 0 9
16+
default 0
17+
depends on TCC_VCPTTC_TIMER
18+
help
19+
This is the index of TTC timer picked to provide system clock.

0 commit comments

Comments
 (0)