clocksource/drivers/timer-mediatek: Split out CPUXGPT timers
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 9 Mar 2023 10:39:13 +0000 (11:39 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 24 Apr 2023 14:56:13 +0000 (16:56 +0200)
commit49d576ea72a4fa5be15717babfa308b70b2bc5a4
treef62194a9bdf48728d850e7ff8558595513af9eec
parentfd3f088f35f610a7ee3045b7d172b362342e43c6
clocksource/drivers/timer-mediatek: Split out CPUXGPT timers

On MediaTek platforms, CPUXGPT is the source for the AArch64 System
Timer, read through CNTVCT_EL0.

The handling for starting this timer ASAP was introduced in commit
327e93cf9a59 ("clocksource/drivers/timer-mediatek: Implement CPUXGPT timers")
which description also contains an important full explanation of the
reasons why this driver is necessary and cannot be a module.

In preparation for an eventual conversion of timer-mediatek to a
platform_driver that would be possibly built as a module, split out
the CPUXGPT timers driver to a new timer-mediatek-cpux.c driver.

This commit brings no functional changes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Walter Chang <walter.chang@mediatek.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230309103913.116775-1-angelogioacchino.delregno@collabora.com
drivers/clocksource/Kconfig
drivers/clocksource/Makefile
drivers/clocksource/timer-mediatek-cpux.c [new file with mode: 0644]
drivers/clocksource/timer-mediatek.c