ARM: clocksource: Add support for MOXA ART SoCs
authorJonas Jensen <jonas.jensen@gmail.com>
Wed, 17 Jul 2013 08:04:57 +0000 (10:04 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 18 Jul 2013 13:27:47 +0000 (15:27 +0200)
commit07862c1cd6675cde2dd4bd64e64d704ea2185b79
tree51015cae3e661add432497bf9f44711789742ee4
parent3d77b30efc72d126c2b74070b41a03869611228d
ARM: clocksource: Add support for MOXA ART SoCs

This patch adds an clocksource driver for the main timer(s)
found on MOXA ART SoCs.

The MOXA ART SoC provides three separate timers with individual
count/load/match registers, two are used here:

TIMER1: clockevents, used to support oneshot and periodic events
TIMER2: set up as a free running counter, used as clocksource

Timers are preconfigured by bootloader to count down and interrupt
on match or zero. Count increments every APB clock cycle and is
automatically reloaded when it reaches zero.

Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Documentation/devicetree/bindings/timer/moxa,moxart-timer.txt [new file with mode: 0644]
drivers/clocksource/Makefile
drivers/clocksource/moxart_timer.c [new file with mode: 0644]