clocksource/drivers/timer-mediatek: Add support for system timer
authorStanley Chu <stanley.chu@mediatek.com>
Thu, 5 Jul 2018 23:11:28 +0000 (07:11 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 26 Jul 2018 09:26:34 +0000 (11:26 +0200)
commite3af677607d9daca9825bc98edfb5cedda5718a9
treed006a71e02843662efcb378c28d8e4f4e5347bbc
parenta0858f937960d24e05cedf43d5cbcb95cf088434
clocksource/drivers/timer-mediatek: Add support for system timer

This patch adds a new "System Timer" on the Mediatek SoCs.

The System Timer is introduced as an always-on timer being
clockevent device for tick-broadcasting.

For clock, it is driven by 13 MHz system clock.
The implementation uses the system clock with no clock
source divider.

For interrupt, the clock event timer can be used by all cores.

Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-mediatek.c