platform: generic: thead: separate T-Head PMU Errata
authorYangyu Chen <cyy@cyyself.name>
Sun, 21 Apr 2024 15:52:08 +0000 (23:52 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 9 May 2024 12:39:05 +0000 (18:09 +0530)
commit33e21c9476e225064464ad045ce11cf58c2c3204
tree681b070e7db37a329f60ad2e4ad46a090dc47fcf
parent2b93ce0954d594a1c4919f02187bbf7177ed412d
platform: generic: thead: separate T-Head PMU Errata

As Guo Ren said from the kernel mailing list [1], future T-Head CPUs,
including the newer versions of T-Head C908, will feature standard
Sscofpmf extension. For these CPUs, T-Head's implementation of PMU
Overflow Interrupts may not needed anymore. In this case, we shouldn't
apply T-Head PMU for all T-Head CPUs. Thus, this patch separated T-Head PMU
errata.

[1] https://lore.kernel.org/linux-riscv/Zh9sUUUT09LZb0MO@gmail.com/

Signed-off-by: Yangyu Chen <cyy@cyyself.name>
Reviewed-by: Inochi Amaoto <inochiama@outlook.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
platform/generic/include/thead/c9xx_errata.h
platform/generic/thead/thead-generic.c