Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Octeon: Expose support for mips32r1, mips32r2 and mips64r1

Define Cavium Octeon as a CPU that has support for mips32r1, mips32r2 and
mips64r1. This will affect show_cpuinfo() that will now correctly expose
mips32r1, mips32r2 and mips64r1 as supported ISAs.

Signed-off-by: Petar Jovanovic <petar.jovanovic@rt-rk.com>
Reviewed-by: Maciej W. Rozycki <macro@imgtec.com>
Acked-by: David Daney <david.daney@cavium.com>
Cc: petar.jovanovic@imgtec.com
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15749/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Petar Jovanovic and committed by
Ralf Baechle
846fbcfe b123718b

+3 -3
+3 -3
arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h
··· 46 46 #define cpu_has_64bits 1 47 47 #define cpu_has_octeon_cache 1 48 48 #define cpu_has_saa octeon_has_saa() 49 - #define cpu_has_mips32r1 0 50 - #define cpu_has_mips32r2 0 51 - #define cpu_has_mips64r1 0 49 + #define cpu_has_mips32r1 1 50 + #define cpu_has_mips32r2 1 51 + #define cpu_has_mips64r1 1 52 52 #define cpu_has_mips64r2 1 53 53 #define cpu_has_dsp 0 54 54 #define cpu_has_dsp2 0