From ad9b5f77dffaa38ea830af94cd5de3450318f97c Mon Sep 17 00:00:00 2001 From: Vlad Zakharov Date: Tue, 21 Mar 2017 14:49:47 +0300 Subject: drivers: timer: Introduce ARC timer driver This commit introduces timer driver for ARC. ARC timers are configured via ARC AUX registers so we use special functions to access timer control registers. This driver allows utilization of either timer0 or timer1 depending on which one is available in real hardware. Essentially only existing timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- drivers/timer/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'drivers/timer/Kconfig') diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig index 72c14168d6..e03852396b 100644 --- a/drivers/timer/Kconfig +++ b/drivers/timer/Kconfig @@ -65,4 +65,13 @@ config STI_TIMER help Select this to enable a timer for STi devices. +config ARC_TIMER + bool "ARC timer support" + depends on TIMER && ARC && CLK + help + Select this to enable built-in ARC timers. + ARC cores may have up to 2 built-in timers: timer0 and timer1, + usually at least one of them exists. Either of them is supported + in U-Boot. + endmenu -- cgit