Messages in this thread Patch in this message | | | From | Jiaxun Yang <> | Subject | [PATCH 1/2] MIPS: Allow MIPS32R2 kernel to run on P5600 and M5150 | Date | Mon, 29 May 2023 14:52:44 +0100 |
| |
M5150 and P5600 are two MIPS32R5 kernels, however as MIPS32R5 is backward compatible with MIPS32R2 there is no reason to forbid M5150 and P5600 on MIPS32R2 kernel.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> --- arch/mips/include/asm/cpu-type.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/cpu-type.h b/arch/mips/include/asm/cpu-type.h index a4a66bd93748..4032cd90ea30 100644 --- a/arch/mips/include/asm/cpu-type.h +++ b/arch/mips/include/asm/cpu-type.h @@ -54,7 +54,8 @@ static inline int __pure __get_cpu_type(const int cpu_type) case CPU_PROAPTIV: #endif -#ifdef CONFIG_SYS_HAS_CPU_MIPS32_R5 +#if defined(CONFIG_SYS_HAS_CPU_MIPS32_R2) || \ + defined(CONFIG_SYS_HAS_CPU_MIPS32_R5) case CPU_M5150: case CPU_P5600: #endif -- 2.39.2 (Apple Git-143)
| |