realtek: Replace the RTL9300 generic timer with a CEVT timer
authorBirger Koblitz <git@birger-koblitz.de>
Thu, 6 Jan 2022 19:27:01 +0000 (20:27 +0100)
committerPaul Spooren <mail@aparcar.org>
Wed, 2 Feb 2022 09:32:57 +0000 (10:32 +0100)
commitcc2f1df46257d678aa7b95fc968fc2ba9ea2823f
tree76dfff0b13efc3c9a427ac53f4623b80de5f286e
parentb11464326685dae2d4882e14463a8c6548da8ab4
realtek: Replace the RTL9300 generic timer with a CEVT timer

The RTL9300 has a broken R4K MIPS timer interrupt, however, the
R4K clocksource works. We replace the RTL9300 timer with a
Clock Event Timer (CEVT), which is VSMP aware and can be instantiated
as part of brining a VSMTP cpu up instead of the R4K CEVT source.
For this we place the RTL9300 CEVT timer in arch/mips/kernel
together with other MIPS CEVT timers, initialize the SoC IRQs
from a modified smp-mt.c and instantiate each timer as part
of the MIPS time setup in arch/mips/include/asm/time.h instead
of the R4K CEVT, similarly as is done by other MIPS CEVT timers.

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
target/linux/realtek/files-5.10/arch/mips/kernel/cevt-rtl9300.c [new file with mode: 0644]
target/linux/realtek/files-5.10/drivers/clocksource/timer-rtl9300.c [deleted file]
target/linux/realtek/patches-5.10/302-clocksource-add-rtl9300-driver.patch [deleted file]
target/linux/realtek/patches-5.10/309-cevt-rtl9300-support.patch [new file with mode: 0644]