aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/cpu-probe.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2021-05-30 18:17:57 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-06-01 11:44:47 +0200
commitfc52f92a653215fbd6bc522ac5311857b335e589 (patch)
tree60c9e5e953d9292bd4a8798eb9221267164f587b /arch/mips/kernel/cpu-probe.c
parentMIPS: boot: Support specifying UART port on Ingenic SoCs (diff)
downloadlinux-dev-fc52f92a653215fbd6bc522ac5311857b335e589.tar.xz
linux-dev-fc52f92a653215fbd6bc522ac5311857b335e589.zip
MIPS: cpu-probe: Fix FPU detection on Ingenic JZ4760(B)
Ingenic JZ4760 and JZ4760B do have a FPU, but the config registers don't report it. Force the FPU detection in case the processor ID match the JZ4760(B) one. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/kernel/cpu-probe.c')
-rw-r--r--arch/mips/kernel/cpu-probe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 0ef240adefb5..630fcb4cb30e 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -1840,6 +1840,11 @@ static inline void cpu_probe_ingenic(struct cpuinfo_mips *c, unsigned int cpu)
*/
case PRID_COMP_INGENIC_D0:
c->isa_level &= ~MIPS_CPU_ISA_M32R2;
+
+ /* FPU is not properly detected on JZ4760(B). */
+ if (c->processor_id == 0x2ed0024f)
+ c->options |= MIPS_CPU_FPU;
+
fallthrough;
/*