]> git.baikalelectronics.ru Git - uboot.git/commit
drivers: timer: Introduce ARC timer driver
authorVlad Zakharov <vzakhar@synopsys.com>
Tue, 21 Mar 2017 11:49:47 +0000 (14:49 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 24 Mar 2017 11:20:55 +0000 (14:20 +0300)
commit1691f8e27e9a2e02a8aba5699e4d9a34cc8bf08c
tree3bb41583e0f1dada28c659aafabd7cc240c88cba
parent78f970814db982292fa4a54f5e1d6cc376b1bc57
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]