[2/2] MIPS: generic: Allow R5 CPUs to be selected

Message ID 20230529135245.4085-2-jiaxun.yang@flygoat.com
State New
Headers
Series [1/2] MIPS: Allow MIPS32R2 kernel to run on P5600 and M5150 |

Commit Message

Jiaxun Yang May 29, 2023, 1:52 p.m. UTC
  Since we do have P5600 bitfile for boston board, we should
allow generic kernel to be compiled for R5 CPUs.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 arch/mips/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Serge Semin May 30, 2023, 1:37 p.m. UTC | #1
On Mon, May 29, 2023 at 02:52:45PM +0100, Jiaxun Yang wrote:
> Since we do have P5600 bitfile for boston board, we should
> allow generic kernel to be compiled for R5 CPUs.

Would be good to place the outcomes from the Patch 1/2 discussion here.

> 
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>

Anyway. Thanks for the patch.
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>

-Serge(y)

> ---
>  arch/mips/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index e437bf43ecfc..215fcdc059d2 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -154,9 +154,11 @@ config MIPS_GENERIC_KERNEL
>  	select SWAP_IO_SPACE
>  	select SYS_HAS_CPU_MIPS32_R1
>  	select SYS_HAS_CPU_MIPS32_R2
> +	select SYS_HAS_CPU_MIPS32_R5
>  	select SYS_HAS_CPU_MIPS32_R6
>  	select SYS_HAS_CPU_MIPS64_R1
>  	select SYS_HAS_CPU_MIPS64_R2
> +	select SYS_HAS_CPU_MIPS64_R5
>  	select SYS_HAS_CPU_MIPS64_R6
>  	select SYS_SUPPORTS_32BIT_KERNEL
>  	select SYS_SUPPORTS_64BIT_KERNEL
> -- 
> 2.39.2 (Apple Git-143)
>
  
Thomas Bogendoerfer June 9, 2023, 8:21 a.m. UTC | #2
On Mon, May 29, 2023 at 02:52:45PM +0100, Jiaxun Yang wrote:
> Since we do have P5600 bitfile for boston board, we should
> allow generic kernel to be compiled for R5 CPUs.
> 
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
>  arch/mips/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index e437bf43ecfc..215fcdc059d2 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -154,9 +154,11 @@ config MIPS_GENERIC_KERNEL
>  	select SWAP_IO_SPACE
>  	select SYS_HAS_CPU_MIPS32_R1
>  	select SYS_HAS_CPU_MIPS32_R2
> +	select SYS_HAS_CPU_MIPS32_R5
>  	select SYS_HAS_CPU_MIPS32_R6
>  	select SYS_HAS_CPU_MIPS64_R1
>  	select SYS_HAS_CPU_MIPS64_R2
> +	select SYS_HAS_CPU_MIPS64_R5
>  	select SYS_HAS_CPU_MIPS64_R6
>  	select SYS_SUPPORTS_32BIT_KERNEL
>  	select SYS_SUPPORTS_64BIT_KERNEL
> -- 
> 2.39.2 (Apple Git-143)

applied to mips-next.

Thomas.
  

Patch

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index e437bf43ecfc..215fcdc059d2 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -154,9 +154,11 @@  config MIPS_GENERIC_KERNEL
 	select SWAP_IO_SPACE
 	select SYS_HAS_CPU_MIPS32_R1
 	select SYS_HAS_CPU_MIPS32_R2
+	select SYS_HAS_CPU_MIPS32_R5
 	select SYS_HAS_CPU_MIPS32_R6
 	select SYS_HAS_CPU_MIPS64_R1
 	select SYS_HAS_CPU_MIPS64_R2
+	select SYS_HAS_CPU_MIPS64_R5
 	select SYS_HAS_CPU_MIPS64_R6
 	select SYS_SUPPORTS_32BIT_KERNEL
 	select SYS_SUPPORTS_64BIT_KERNEL