[PATCH v3 8/8] MIPS: Ingenic: Expand Kconfig by MACH_JZ4730
From: H. Nikolaus Schaller
Date: Sat Nov 28 2026 - 12:21:19 EST
The jz4730 is a single core SoC by Ingenic with peripherals
like LCD controller, NAND controller, Timers, PWM, GPIOs
This SoC is used in the Skytone Alpha 400 Netbook:
https://en.wikipedia.org/wiki/Skytone_Alpha-400
Without this flag, the ingenic-pinctrl driver can not be
configured to support this SoC.
Signed-off-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>
---
Notes:
(More) support for jz4730 making use of the new MACH_JZ4730 config
flag is in the upstreaming queue. The chip is used in the Alpha 400
netbooks.
Changes in v3:
- Assign CPU_XBURST2 to the existing XBurst II CPU probe case.
- Hardware readings of Config1.C2 on JZ4780, X1600, X2000 and X2600
all returned zero. Without reliable documentation connecting this bit
to MXU variants, no new MXU capability assumptions are introduced.
Changes in v2:
- removed the PRID_IMP_XBURST2_R2 definition and hints for an x2100 as
there is no public reference
- merged into single commit changing the PRID definitions and code
- reviewed details and rewrote commit message
Open Issue:
Olivier Louvignes <olivier@xxxxxxxxx> pointed out that he has
simply reused the definition of the X1830 for the X1600. This
sets c->writecombine differently (_CACHE_CACHABLE_WA) from
_CACHE_UNCACHED_ACCELERATED as we do here.
Both settings appear to work but it needs expert comment which
is the right/better one.
Review: Olivier Louvignes discussed the PRID microarchitecture
interpretation and the alternative X1600 writecombine setting.
Paul Cercueil requested checking the X1600 MXU capabilities and
noted the missing CPU DT binding. Hunter Laux suggested reading
CP0 Config1.C2; the hardware measurements and their limitations
are documented above.
Additional v3 review against v7.4-rc4:
- Preserve idle, non-coherent DMA and TLB handling for CPU_XBURST2.
- Keep the XBurst I secondary cache geometry workarounds unchanged.
arch/mips/ingenic/Kconfig | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/mips/ingenic/Kconfig b/arch/mips/ingenic/Kconfig
index ca9d40fe874f8..30e8e37cbbd86 100644
--- a/arch/mips/ingenic/Kconfig
+++ b/arch/mips/ingenic/Kconfig
@@ -3,6 +3,7 @@
config MACH_INGENIC_GENERIC
bool
select MACH_INGENIC
+ select MACH_JZ4730
select MACH_JZ4740
select MACH_JZ4725B
select MACH_JZ4750
@@ -56,6 +57,10 @@ config MACH_JZ4725B
bool
select SYS_HAS_CPU_MIPS32_R1
+config MACH_JZ4730
+ bool
+ select SYS_HAS_CPU_MIPS32_R1
+
config MACH_JZ4740
bool
select SYS_HAS_CPU_MIPS32_R1
--
2.56.0