drivers: timers: Add dependency on SYS_CLOCK_EXISTS to all timer configs

Add dependency on SYS_CLOCK_EXISTS to all timer configurations.
This would avoid a situation where a possible timer configuration would
be wrongfully selected but SYS_CLOCK_EXISTS is disabled.

This simplifies code that wants to check for system clock capabilities
don't have to check if the system clock exists in addition.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2022-12-21 13:18:54 +01:00 committed by Carles Cufí
commit 8703ec6e86

View file

@ -5,6 +5,8 @@
# Copyright (c) 2019 Intel Corp.
# SPDX-License-Identifier: Apache-2.0
if SYS_CLOCK_EXISTS
menu "Timer Drivers"
config TIMER_HAS_64BIT_CYCLE_COUNTER
@ -90,3 +92,5 @@ source "drivers/timer/Kconfig.xlnx_psttc"
source "drivers/timer/Kconfig.xtensa"
endmenu
endif # SYS_CLOCK_EXISTS