]> 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)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:38:11 +0000 (07:38 +0200)
commit5a2354c984217507f49a96363e426a02099f4df5
treea58b71074dd8a3b660e0a90a1bcda3b78859c10b
parentc25071c3a74399eda5c9f18130143fd544d54e61
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]