[1/3] ARM: pxa: enable PXA310/PXA320 for DT-only build

Message ID 20230109161636.512203-2-arnd@kernel.org
State New
Headers
Series ARM: SoC fixes |

Commit Message

Arnd Bergmann Jan. 9, 2023, 4:16 p.m. UTC
  From: Arnd Bergmann <arnd@arndb.de>

After commit b5aaaa666a85 ("ARM: pxa: add Kconfig dependencies for
ATAGS based boards"), the default PXA build no longer includes support
for the board files that are considered unused.

As a side-effect of this, the PXA310 and PXA320 support is not built
into the kernel any more, even though it should work in principle as
long as the symbols are enabled. As Robert points out, there are dts
files for zylonite and cm-x300, though those have not made it into the
mainline kernel.

Link: https://lore.kernel.org/linux-arm-kernel/m2sfglh02h.fsf@free.fr/
Reported-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/mach-pxa/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Robert Jarzmik Jan. 23, 2023, 3:30 p.m. UTC | #1
Arnd Bergmann <arnd@kernel.org> writes:

> From: Arnd Bergmann <arnd@arndb.de>
>
> After commit b5aaaa666a85 ("ARM: pxa: add Kconfig dependencies 
> for
> ATAGS based boards"), the default PXA build no longer includes 
> support
> for the board files that are considered unused.
>
> As a side-effect of this, the PXA310 and PXA320 support is not 
> built
> into the kernel any more, even though it should work in 
> principle as
> long as the symbols are enabled. As Robert points out, there are 
> dts
> files for zylonite and cm-x300, though those have not made it 
> into the
> mainline kernel.
>
> Link: 
> https://lore.kernel.org/linux-arm-kernel/m2sfglh02h.fsf@free.fr/
> Reported-by: Robert Jarzmik <robert.jarzmik@free.fr>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>

Cheers.

--
Robert
  

Patch

diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig
index b90d98bae68d..03e25af6f48c 100644
--- a/arch/arm/mach-pxa/Kconfig
+++ b/arch/arm/mach-pxa/Kconfig
@@ -45,6 +45,8 @@  config MACH_PXA27X_DT
 config MACH_PXA3XX_DT
 	bool "Support PXA3xx platforms from device tree"
 	select CPU_PXA300
+	select CPU_PXA310
+	select CPU_PXA320
 	select PINCTRL
 	select POWER_SUPPLY
 	select PXA3xx