]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/lpc32xx: Don't use the prescaler counter for clockevents
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Wed, 10 Feb 2016 01:54:25 +0000 (22:54 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 25 Feb 2016 13:30:19 +0000 (14:30 +0100)
commit0b19f95d2bc33c4cfe4d0661dc089765b1234751
tree1e45c4aa1e47b4a0eab2fce5909f20e43b909b00
parent5eb5ff73f862d0a1e8d89c61069e4c110c033ef4
clocksource/drivers/lpc32xx: Don't use the prescaler counter for clockevents

This commit switches the clockevents one-shot current implementation
to avoid using the prescaler counter. The clockevents timer currently
uses MR0=1, PR=ticks; and after this commit is uses MR0=ticks, PR=0.

While using the prescaler with PR=1 works fine in one-shot mode,
it seems it doesn't work as expected in periodic mode.

By using the only match channel register (MR0) for the timer we make
the periodic mode introduction easier, and consistent with one-shot mode.

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