Re: [PATCH v3 7/8] MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs

From: Paul Cercueil

Date: Mon Nov 30 2026 - 12:01:13 EST


Le samedi 28 novembre 2026 à 18:20 +0100, H. Nikolaus Schaller a écrit :
> Expand MACH_INGENIC_GENERIC to select all existing and newly added
> machine variants (including JZ4750/55/60/75, X1600, X2000,
> and X2600).
>
> Introduce individual Kconfig blocks for the following SoCs:
> - MACH_X1600: Selects MIPS32_R2 and HIGHMEM.
> - MACH_X2000 / MACH_X2600: Selects MIPS32_R5, SMP support, broadcast
>   clockevents, O32 FP64 support, and weak ordering optimizations.
>
> Also enable SMP support and broadcast clockevents (when SMP is
> enabled) for the existing dual-core JZ4780.
>
> Some X2000 Kconfig settings were adapted from definitions in the
> Ingenic-community Linux v6.1.y tree, including changes published by
> Reimu NotMoe. These definitions were reviewed and extended for
> current upstream Ingenic platform support.
>
> Signed-off-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>

Reviewed-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx>

Cheers,
-Paul

> ---
>
> Notes:
>     Changes in v3:
>     - Remove MACH_X1500 and MACH_X2100 selections, which are not defined
>       in this series. Replace the unverified co-development attribution
>       with a source-history reference to the Ingenic-community tree.
>     - Keep FP64 and eretnc handling outside the scope of this revision.
>    
>     (More) support for X2000 and X2600 is in the queue.
>     It is easier to group this here.
>    
>     Review: Paul Cercueil identified the undefined MACH_X1500 and
>     MACH_X2100 selections, suggested reconsidering
>     MIPS_O32_FP64_SUPPORT placement, and questioned the attribution
>     of the source Kconfig definitions. Hunter Laux reported a
>     separate X2600 eretnc boot issue; this series does not change
>     the generic MIPS exception-return implementation.
>
>  arch/mips/ingenic/Kconfig | 36 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
>
> diff --git a/arch/mips/ingenic/Kconfig b/arch/mips/ingenic/Kconfig
> index f595b339a4b84..ca9d40fe874f8 100644
> --- a/arch/mips/ingenic/Kconfig
> +++ b/arch/mips/ingenic/Kconfig
> @@ -5,10 +5,17 @@ config MACH_INGENIC_GENERIC
>   select MACH_INGENIC
>   select MACH_JZ4740
>   select MACH_JZ4725B
> + select MACH_JZ4750
> + select MACH_JZ4755
> + select MACH_JZ4760
>   select MACH_JZ4770
> + select MACH_JZ4775
>   select MACH_JZ4780
>   select MACH_X1000
> + select MACH_X1600
>   select MACH_X1830
> + select MACH_X2000
> + select MACH_X2600
>  
>  choice
>   prompt "Machine type"
> @@ -62,8 +69,10 @@ config MACH_JZ4770
>  config MACH_JZ4780
>   bool
>   select MIPS_CPU_SCACHE
> + select GENERIC_CLOCKEVENTS_BROADCAST if SMP
>   select SYS_HAS_CPU_MIPS32_R2
>   select SYS_SUPPORTS_HIGHMEM
> + select SYS_SUPPORTS_SMP
>  
>  config MACH_X1000
>   bool
> @@ -71,8 +80,35 @@ config MACH_X1000
>   select SYS_HAS_CPU_MIPS32_R2
>   select SYS_SUPPORTS_HIGHMEM
>  
> +config MACH_X1600
> + bool
> + select SYS_HAS_CPU_MIPS32_R2
> + select SYS_SUPPORTS_HIGHMEM
> +
>  config MACH_X1830
>   bool
>   select MIPS_CPU_SCACHE
>   select SYS_HAS_CPU_MIPS32_R2
>   select SYS_SUPPORTS_HIGHMEM
> +
> +config MACH_X2000
> + bool
> + select MIPS_CPU_SCACHE
> + select GENERIC_CLOCKEVENTS_BROADCAST if SMP
> + select SYS_HAS_CPU_MIPS32_R5
> + select SYS_SUPPORTS_HIGHMEM
> + select SYS_SUPPORTS_SMP
> + select MIPS_O32_FP64_SUPPORT
> + select WEAK_ORDERING
> + select WEAK_REORDERING_BEYOND_LLSC
> +
> +config MACH_X2600
> + bool
> + select MIPS_CPU_SCACHE
> + select GENERIC_CLOCKEVENTS_BROADCAST if SMP
> + select SYS_HAS_CPU_MIPS32_R5
> + select SYS_SUPPORTS_HIGHMEM
> + select SYS_SUPPORTS_SMP
> + select MIPS_O32_FP64_SUPPORT
> + select WEAK_ORDERING
> + select WEAK_REORDERING_BEYOND_LLSC