Add support for MIPS64R2 on the Malta platform:
PATCH v3 1/1 Add support for MIPS64R2 on the Malta platform:
From: "Steven J. Hill" <[email protected]>
* Enable MIPS64R2 support on the Malta platform.
* Enable 32-bit binary support by default when MIPS64R2 is used.
* Add support of MIPS64R2 test chip 5KEc.
Signed-off-by Leonid Yegoshin <[email protected]>
Signed-off-by Steven J. Hill <[email protected]>
--- arch/mips/Kconfig | 7 +++++++ arch/mips/include/asm/cpu.h | 2 +- arch/mips/kernel/cpu-probe.c | 4 ++++ arch/mips/kernel/traps.c | 1 + 4 files changed, 13 insertions(+), 1 deletion(-)
arch/mips/Kconfig +7 -0
@@ -282,6 +282,7 @@ config MIPS_MALTA select SYS_HAS_CPU_MIPS32_R1 select SYS_HAS_CPU_MIPS32_R2 select SYS_HAS_CPU_MIPS64_R1 + select SYS_HAS_CPU_MIPS64_R2 select SYS_HAS_CPU_NEVADA select SYS_HAS_CPU_RM7000 select SYS_HAS_EARLY_PRINTK
@@ -2488,6 +2489,7 @@ config TRAD_SIGNALS config MIPS32_COMPAT bool "Kernel support for Linux/MIPS 32-bit binary compatibility" depends on 64BIT + default y if CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL help Select this option if you want Linux/MIPS 32-bit binary compatibility. Since all software available for Linux/MIPS is
@@ -2507,6 +2509,7 @@ config SYSVIPC_COMPAT config MIPS32_O32 bool "Kernel support for o32 binaries" depends on MIPS32_COMPAT + default y if CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL help Select this option if you want to run o32 binaries. These are pure 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of
@@ -2525,6 +2528,10 @@ config MIPS32_N32 If unsure, say N. +comment "64bit kernel, but support of 32bit applications is disabled!" + depends on 64BIT && !MIPS32_O32 && !MIPS32_N32 + depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL + config BINFMT_ELF32 bool default y if MIPS32_O32 || MIPS32_N32
arch/mips/include/asm/cpu.h +1 -1
@@ -268,7 +268,7 @@ enum cpu_type_enum {/* * MIPS64 class processors */ -CPU_5KC ,CPU_20KC ,CPU_25KF ,CPU_SB1 ,CPU_SB1A ,CPU_LOONGSON2 , +CPU_5KC ,CPU_5KE ,CPU_20KC ,CPU_25KF ,CPU_SB1 ,CPU_SB1A ,CPU_LOONGSON2 ,CPU_CAVIUM_OCTEON ,CPU_CAVIUM_OCTEON_PLUS ,CPU_CAVIUM_OCTEON2 , CPU_XLR, CPU_XLP,
arch/mips/kernel/cpu-probe.c +4 -0
@@ -817,6 +817,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu) c->cputype =CPU_5KC ; __cpu_name[cpu] ="MIPS 5Kc" ;break ; +case PRID_IMP_5KE : + c->cputype =CPU_5KE ; + __cpu_name[cpu] ="MIPS 5KE" ; +break ;case PRID_IMP_20KC : c->cputype =CPU_20KC ; __cpu_name[cpu] ="MIPS 20Kc" ;
arch/mips/kernel/traps.c +1 -0
@@ -1349,6 +1349,7 @@ static inline void parity_protection_init(void)break ;case CPU_5KC : +case CPU_5KE :write_c0_ecc (0x80000000 );back_to_back_c0_hazard ();/* Set the PE bit (bit 31) in the c0_errctl register. */
Signature · 1 line
1.7.10