mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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 <vzakhar@synopsys.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d0ffda8ed2
commit
ad9b5f77df
5 changed files with 151 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue