clocksource/drivers/lpc32xx: Support periodic mode
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Wed, 10 Feb 2016 01:54:26 +0000 (22:54 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 25 Feb 2016 13:30:20 +0000 (14:30 +0100)
commit32f32d982f655dd191858406b11e50219a0ee01e
treeac1c176915488da0d354ee1ba4b4848769b41109
parent751db1a6eaec3d266ccfe3f0d11323b7c82486bf
clocksource/drivers/lpc32xx: Support periodic mode

This commit adds the support for periodic mode. This is done by not
setting the MR0S (Stop on TnMR0) bit on MCR, thus allowing
interrupts to be periodically generated on MR0 matches.

In order to do this, move the initial configuration that is specific to
the one-shot mode to set_state_oneshot().

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Joachim Eastwood <manabian@gmail.com>
Tested-by: Joachim Eastwood <manabian@gmail.com>
drivers/clocksource/time-lpc32xx.c