summaryrefslogtreecommitdiff
path: root/drivers/timer/Kconfig
diff options
context:
space:
mode:
authorVlad Zakharov <[email protected]>2017-03-21 14:49:47 +0300
committerStefan Roese <[email protected]>2017-03-29 07:38:11 +0200
commit20699e6b7949c1eb174d8315807c050cfd03da9a (patch)
treea58b71074dd8a3b660e0a90a1bcda3b78859c10b /drivers/timer/Kconfig
parent15f05610438981297ff628bb87e6d5789ee3fad0 (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/timer/Kconfig')
-rw-r--r--drivers/timer/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig
index 72c14168d6f..e03852396b7 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