Skip to content

Commit 2ff73a7

Browse files
billwatersiiimcatee-infineon
authored andcommitted
drivers: timer: infineon pdl lp_timer
Add PDL-based low-power timer for the E84 board Signed-off-by: Bill Waters <bill.waters@infineon.com>
1 parent 3b38d6c commit 2ff73a7

File tree

11 files changed

+424
-14
lines changed

11 files changed

+424
-14
lines changed

drivers/timer/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ zephyr_library_sources_ifdef(CONFIG_CORTEX_M_SYSTICK cortex_m_systick.c)
1818
zephyr_library_sources_ifdef(CONFIG_ESP32_SYS_TIMER esp32_sys_timer.c)
1919
zephyr_library_sources_ifdef(CONFIG_GECKO_BURTC_TIMER gecko_burtc_timer.c)
2020
zephyr_library_sources_ifdef(CONFIG_HPET_TIMER hpet.c)
21-
zephyr_library_sources_ifdef(CONFIG_INFINEON_CAT1_LP_TIMER infineon_lp_timer.c)
21+
zephyr_library_sources_ifdef(CONFIG_INFINEON_CAT1_LP_TIMER_HAL infineon_lp_timer.c)
22+
zephyr_library_sources_ifdef(CONFIG_INFINEON_CAT1_LP_TIMER_PDL infineon_lp_timer_pdl.c)
2223
zephyr_library_sources_ifdef(CONFIG_INTEL_ADSP_TIMER intel_adsp_timer.c)
2324
zephyr_library_sources_ifdef(CONFIG_ITE_IT51XXX_TIMER ite_it51xxx_timer.c)
2425
zephyr_library_sources_ifdef(CONFIG_ITE_IT8XXX2_TIMER ite_it8xxx2_timer.c)

drivers/timer/Kconfig.infineon_lp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,27 @@
55
#
66
# SPDX-License-Identifier: Apache-2.0
77

8-
config INFINEON_CAT1_LP_TIMER
8+
config INFINEON_CAT1_LP_TIMER_HAL
99
bool "Infineon CAT1 Low Power Timer driver"
1010
default y
1111
depends on DT_HAS_INFINEON_CAT1_LP_TIMER_ENABLED
12+
depends on USE_INFINEON_LEGACY_HAL
1213
depends on PM
1314
select USE_INFINEON_LPTIMER
1415
select TICKLESS_CAPABLE
1516
help
1617
This module implements a kernel device driver for the LowPower Timer
18+
and provides the standard "system clock driver" interfaces. This implementation
19+
is based on the Infineon Legacy HAL.
20+
21+
config INFINEON_CAT1_LP_TIMER_PDL
22+
bool "Infineon CAT1 Low Power Timer driver"
23+
default y
24+
depends on DT_HAS_INFINEON_CAT1_LP_TIMER_PDL_ENABLED
25+
depends on !USE_INFINEON_LEGACY_HAL
26+
depends on PM
27+
select USE_INFINEON_LPTIMER
28+
select TICKLESS_CAPABLE
29+
help
30+
This module implements a PDL based kernel device driver for the LowPower Timer
1731
and provides the standard "system clock driver" interfaces.

0 commit comments

Comments
 (0)