diff options
author | Daniel Tang <dt.tangr@gmail.com> | 2013-06-01 16:02:37 +1000 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-06-06 17:23:13 +0200 |
commit | 77ba83bb1bb1cdabd522d32536f8eee65a870145 (patch) | |
tree | abb558298ffeccafa780996f2bcd90f17a893d43 /arch/mips | |
parent | c19672492d233e0012b60fbfa460ffac1381ee26 (diff) |
clocksource: Add TI-Nspire timer support
This patch adds a clocksource/clockevent driver for the timer found on some
models in the TI-Nspire calculator series. The timer has two 16bit subtimers
within its memory mapped I/O interface but only the first can generate
interrupts. The first subtimer is used to generate clockevents but only if an
interrupt number and register is given.
The interrupt acknowledgement mechanism is a little strange because the
interrupt mask and acknowledge registers are located in another memory mapped
I/O peripheral. The address of this register is passed to the driver through
device tree bindings.
The second subtimer is used as a clocksource because it isn't capable of
generating an interrupt. This subtimer is always added.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Daniel Tang <dt.tangr@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions