From 8703ec6e86e80984aa50a880df9fb248cafbbd38 Mon Sep 17 00:00:00 2001 From: Joakim Andersson Date: Wed, 21 Dec 2022 13:18:54 +0100 Subject: [PATCH] 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 --- drivers/timer/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig index c6f71bf1c9c..7a9b1f901fc 100644 --- a/drivers/timer/Kconfig +++ b/drivers/timer/Kconfig @@ -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