]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37dc7dd493ae0701370349a1d8eec88bc7ece5cd
treeac1c176915488da0d354ee1ba4b4848769b41109
parent94ee5a4ce4cd70c4f0ec66c619ddcfe457ff3029
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