drivers: timer: Introduce ARC timer driver
authorVlad Zakharov <vzakhar@synopsys.com>
Tue, 21 Mar 2017 11:49:47 +0000 (14:49 +0300)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:38:11 +0000 (07:38 +0200)
commit20699e6b7949c1eb174d8315807c050cfd03da9a
treea58b71074dd8a3b660e0a90a1bcda3b78859c10b
parent15f05610438981297ff628bb87e6d5789ee3fad0
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>
arch/arc/include/asm/arcregs.h
doc/device-tree-bindings/timer/arc_timer.txt [new file with mode: 0644]
drivers/timer/Kconfig
drivers/timer/Makefile
drivers/timer/arc_timer.c [new file with mode: 0644]