clocksource/drivers/arm_arch_timer: Move MMIO timer programming over to CVAL
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 12:42:15 +0000 (13:42 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 17 Oct 2021 19:47:21 +0000 (21:47 +0200)
commit8b82c4f883a7b22660464c0232fbdb7a6deb3061
tree3606f26069bb8ce60c9fa1f783506e107a5f12da
parent72f47a3f0ea4cda4ca5d90c0d6043f697b9b0647
clocksource/drivers/arm_arch_timer: Move MMIO timer programming over to CVAL

Similarily to the sysreg-based timer, move the MMIO over to using
the CVAL registers instead of TVAL. Note that there is no warranty
that the 64bit MMIO access will be atomic, but the timer is always
disabled at the point where we program CVAL.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211017124225.3018098-8-maz@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
arch/arm/include/asm/arch_timer.h
drivers/clocksource/arm_arch_timer.c