ARM: mach-hpe: Rework support and directory structure
Subsystems (4)
PATCH v2 1/3 ARM: mach-hpe: Rework support and directory structure
Having a platform need a mach-* directory should be seen as a negative, it means the platform needs special non-standard handling. ARM64 support does not allow mach-* directories at all. While we may not get to that given all the non-standard architectures we support, we should still try to get as close as we can and reduce the number of mach directories.
The mach-hpe/ directory and files, provides just one "feature":
having the kernel print the machine name if the DTB does not also contain a "model" string (which they always do). To reduce the number of mach-* directories let's do without that feature and remove this directory.
Note, we drop the l2c_aux_mask = ~0 line, but this is safe as the fallback GENERIC_DT machine has that as the default.
---
Changes from v1:
- Updated commit desc with l2c_aux_mask info
- Rebased on v6.9-rc1
MAINTAINERS | 1 - arch/arm/Kconfig | 2 -- arch/arm/Kconfig.platforms | 25 +++++++++++++++++++++++++ arch/arm/Makefile | 1 - arch/arm/mach-hpe/Kconfig | 23 ----------------------- arch/arm/mach-hpe/Makefile | 1 - arch/arm/mach-hpe/gxp.c | 15 --------------- 7 files changed, 25 insertions(+), 43 deletions(-) delete mode 100644 arch/arm/mach-hpe/Kconfig delete mode 100644 arch/arm/mach-hpe/Makefile delete mode 100644 arch/arm/mach-hpe/gxp.c
MAINTAINERS +0 -1
@@ -2244,7 +2244,6 @@ F: Documentation/devicetree/bindings/spi/hpe,gxp-spifi.yaml F: Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml F: Documentation/hwmon/gxp-fan-ctrl.rst F: arch/arm/boot/dts/hpe/ -F: arch/arm/mach-hpe/ F: drivers/clocksource/timer-gxp.c F: drivers/hwmon/gxp-fan-ctrl.c F: drivers/i2c/busses/i2c-gxp.c
arch/arm/Kconfig +0 -2
@@ -386,8 +386,6 @@ source "arch/arm/mach-highbank/Kconfig" source "arch/arm/mach-hisi/Kconfig" -source "arch/arm/mach-hpe/Kconfig" - source "arch/arm/mach-imx/Kconfig" source "arch/arm/mach-ixp4xx/Kconfig"
arch/arm/Kconfig.platforms +25 -0
@@ -87,6 +87,31 @@ config MACH_ASM9260 help Support for Alphascale ASM9260 based platform. +menuconfig ARCH_HPE + bool "HPE SoC support" + depends on ARCH_MULTI_V7 + help + This enables support for HPE ARM based BMC chips. + +if ARCH_HPE + +config ARCH_HPE_GXP + bool "HPE GXP SoC" + depends on ARCH_MULTI_V7 + select ARM_VIC + select GENERIC_IRQ_CHIP + select CLKSRC_MMIO + help + HPE GXP is the name of the HPE Soc. This SoC is used to implement many + BMC features at HPE. It supports ARMv7 architecture based on the Cortex + A9 core. It is capable of using an AXI bus to which a memory controller + is attached. It has multiple SPI interfaces to connect boot flash and + BIOS flash. It uses a 10/100/1000 MAC for network connectivity. It + has multiple i2c engines to drive connectivity with a host + infrastructure. + +endif + menuconfig ARCH_MOXART bool "MOXA ART SoC" depends on ARCH_MULTI_V4
arch/arm/Makefile +0 -1
@@ -182,7 +182,6 @@ machine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge machine-$(CONFIG_ARCH_GEMINI) += gemini machine-$(CONFIG_ARCH_HIGHBANK) += highbank machine-$(CONFIG_ARCH_HISI) += hisi -machine-$(CONFIG_ARCH_HPE) += hpe machine-$(CONFIG_ARCH_IXP4XX) += ixp4xx machine-$(CONFIG_ARCH_KEYSTONE) += keystone machine-$(CONFIG_ARCH_LPC18XX) += lpc18xx
arch/arm/mach-hpe/Kconfig deleted +0 -23
@@ -1,23 +0,0 @@ -menuconfig ARCH_HPE - bool "HPE SoC support" - depends on ARCH_MULTI_V7 - help - This enables support for HPE ARM based BMC chips. -if ARCH_HPE - -config ARCH_HPE_GXP - bool "HPE GXP SoC" - depends on ARCH_MULTI_V7 - select ARM_VIC - select GENERIC_IRQ_CHIP - select CLKSRC_MMIO - help - HPE GXP is the name of the HPE Soc. This SoC is used to implement many - BMC features at HPE. It supports ARMv7 architecture based on the Cortex - A9 core. It is capable of using an AXI bus to which a memory controller - is attached. It has multiple SPI interfaces to connect boot flash and - BIOS flash. It uses a 10/100/1000 MAC for network connectivity. It - has multiple i2c engines to drive connectivity with a host - infrastructure. - -endif
arch/arm/mach-hpe/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-$(CONFIG_ARCH_HPE_GXP) += gxp.o
arch/arm/mach-hpe/gxp.c deleted +0 -15
@@ -1,15 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P. */ - -#include <asm/mach/arch.h> - -static const char *const gxp_board_dt_compat[] = { -"hpe,gxp" , -NULL , -}; - -DT_MACHINE_START (GXP_DT ,"HPE GXP" ) - .dt_compat = gxp_board_dt_compat, - .l2c_aux_val = 0, - .l2c_aux_mask = ~0 , -MACHINE_END
Signature · 1 line
2.39.2
PATCH v2 2/3 ARM: mach-lpc18xx: Rework support and directory structure
Having a platform need a mach-* directory should be seen as a negative, it means the platform needs special non-standard handling. ARM64 support does not allow mach-* directories at all. While we may not get to that given all the non-standard architectures we support, we should still try to get as close as we can and reduce the number of mach directories.
The mach-lpc18xx/ directory and files, provides just one "feature":
having the kernel print the machine name if the DTB does not also contain a "model" string (which they always do). To reduce the number of mach-* directories let's do without that feature and remove this directory.
Note the fallback machine has a default l2c_aux_mask value set to ~0, which is different than the value of 0 used when none is provided. This is safe here as this platform does not use an l2x0 cache controller.
---
Changes from v1:
- Updated commit desc with l2c_aux_mask info
- Rebased on v6.9-rc1
arch/arm/Kconfig | 11 ----------- arch/arm/Kconfig.platforms | 11 +++++++++++ arch/arm/Makefile | 1 - arch/arm/mach-lpc18xx/Makefile | 2 -- arch/arm/mach-lpc18xx/board-dt.c | 19 ------------------- 5 files changed, 11 insertions(+), 33 deletions(-) delete mode 100644 arch/arm/mach-lpc18xx/Makefile delete mode 100644 arch/arm/mach-lpc18xx/board-dt.c
arch/arm/Kconfig +0 -11
@@ -459,17 +459,6 @@ source "arch/arm/mach-vt8500/Kconfig" source "arch/arm/mach-zynq/Kconfig" # ARMv7-M architecture -config ARCH_LPC18XX - bool "NXP LPC18xx/LPC43xx" - depends on ARM_SINGLE_ARMV7M - select ARCH_HAS_RESET_CONTROLLER - select ARM_AMBA - select CLKSRC_LPC32XX - select PINCTRL - help - Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4 - high performance microcontrollers. - config ARCH_MPS2 bool "ARM MPS2 platform" depends on ARM_SINGLE_ARMV7M
arch/arm/Kconfig.platforms +11 -0
@@ -112,6 +112,17 @@ config ARCH_HPE_GXP endif +config ARCH_LPC18XX + bool "NXP LPC18xx/LPC43xx" + depends on ARM_SINGLE_ARMV7M + select ARCH_HAS_RESET_CONTROLLER + select ARM_AMBA + select CLKSRC_LPC32XX + select PINCTRL + help + Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4 + high performance microcontrollers. + menuconfig ARCH_MOXART bool "MOXA ART SoC" depends on ARCH_MULTI_V4
arch/arm/Makefile +0 -1
@@ -184,7 +184,6 @@ machine-$(CONFIG_ARCH_HIGHBANK) += highbank machine-$(CONFIG_ARCH_HISI) += hisi machine-$(CONFIG_ARCH_IXP4XX) += ixp4xx machine-$(CONFIG_ARCH_KEYSTONE) += keystone -machine-$(CONFIG_ARCH_LPC18XX) += lpc18xx machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx machine-$(CONFIG_ARCH_MESON) += meson machine-$(CONFIG_ARCH_MMP) += mmp
arch/arm/mach-lpc18xx/Makefile deleted +0 -2
@@ -1,2 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -obj-y += board-dt.o
arch/arm/mach-lpc18xx/board-dt.c deleted +0 -19
@@ -1,19 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* -* Device Tree board file for NXP LPC18xx/43xx -* -* Copyright (C) 2015 Joachim Eastwood <[email protected]> -*/ - -#include <asm/mach/arch.h> - -static const char *const lpc18xx_43xx_compat[]__initconst = { -"nxp,lpc1850" , -"nxp,lpc4350" , -"nxp,lpc4370" , -NULL -}; - -DT_MACHINE_START (LPC18XXDT ,"NXP LPC18xx/43xx (Device Tree)" ) - .dt_compat = lpc18xx_43xx_compat, -MACHINE_END
Signature · 1 line
2.39.2
PATCH v2 3/3 ARM: mach-ixp4xx: Rework support and directory structure
In reply to Andrew DavisHaving a platform need a mach-* directory should be seen as a negative, it means the platform needs special non-standard handling. ARM64 support does not allow mach-* directories at all. While we may not get to that given all the non-standard architectures we support, we should still try to get as close as we can and reduce the number of mach directories.
The mach-ixp4xx/ directory and files, provides just one "feature":
having the kernel print the machine name if the DTB does not also contain a "model" string (which they always do). To reduce the number of mach-* directories let's do without that feature and remove this directory.
Note the fallback machine has a default l2c_aux_mask value set to ~0, which is different than the value of 0 used when none is provided. This is safe here as this platform does not use an l2x0 cache controller.
---
Changes from v1:
- Updated commit desc with l2c_aux_mask info
- Rebased on v6.9-rc1
MAINTAINERS | 1 - arch/arm/Kconfig.platforms | 19 +++++++++++++++++++ arch/arm/mach-ixp4xx/Kconfig | 19 ------------------- arch/arm/mach-ixp4xx/Makefile | 2 -- arch/arm/mach-ixp4xx/ixp4xx-of.c | 22 ---------------------- 5 files changed, 19 insertions(+), 44 deletions(-) delete mode 100644 arch/arm/mach-ixp4xx/Kconfig delete mode 100644 arch/arm/mach-ixp4xx/Makefile delete mode 100644 arch/arm/mach-ixp4xx/ixp4xx-of.c
MAINTAINERS +0 -1
@@ -2270,7 +2270,6 @@ F: Documentation/devicetree/bindings/memory-controllers/intel,ixp4xx-expansion* F: Documentation/devicetree/bindings/rng/intel,ixp46x-rng.yaml F: Documentation/devicetree/bindings/timer/intel,ixp4xx-timer.yaml F: arch/arm/boot/dts/intel/ixp/ -F: arch/arm/mach-ixp4xx/ F: drivers/bus/intel-ixp4xx-eb.c F: drivers/char/hw_random/ixp4xx-rng.c F: drivers/clocksource/timer-ixp4xx.c
arch/arm/Kconfig.platforms +19 -0
@@ -112,6 +112,25 @@ config ARCH_HPE_GXP endif +config ARCH_IXP4XX + bool "IXP4xx-based platforms" + depends on ARCH_MULTI_V5 + depends on CPU_BIG_ENDIAN + select ARM_APPENDED_DTB # Old Redboot bootloaders deployed + select CPU_XSCALE + select GPIO_IXP4XX + select GPIOLIB + select FORCE_PCI + select I2C + select I2C_IOP3XX + select IXP4XX_IRQ + select IXP4XX_TIMER + select USB_EHCI_BIG_ENDIAN_DESC + select USB_EHCI_BIG_ENDIAN_MMIO + select USE_OF + help + Support for Intel's IXP4XX (XScale) family of processors. + config ARCH_LPC18XX bool "NXP LPC18xx/LPC43xx" depends on ARM_SINGLE_ARMV7M
arch/arm/mach-ixp4xx/Kconfig deleted +0 -19
@@ -1,19 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -menuconfig ARCH_IXP4XX - bool "IXP4xx-based platforms" - depends on ARCH_MULTI_V5 - depends on CPU_BIG_ENDIAN - select ARM_APPENDED_DTB # Old Redboot bootloaders deployed - select CPU_XSCALE - select GPIO_IXP4XX - select GPIOLIB - select FORCE_PCI - select I2C - select I2C_IOP3XX - select IXP4XX_IRQ - select IXP4XX_TIMER - select USB_EHCI_BIG_ENDIAN_DESC - select USB_EHCI_BIG_ENDIAN_MMIO - select USE_OF - help - Support for Intel's IXP4XX (XScale) family of processors.
arch/arm/mach-ixp4xx/Makefile deleted +0 -2
@@ -1,2 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -obj-y += ixp4xx-of.o
arch/arm/mach-ixp4xx/ixp4xx-of.c deleted +0 -22
@@ -1,22 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* IXP4xx Device Tree boot support -*/ -#include <asm/mach/arch.h> - -/* -* We handle 4 different SoC families. These compatible strings are enough -* to provide the core so that different boards can add their more detailed -* specifics. -*/ -static const char *ixp4xx_of_board_compat[] = { -"intel,ixp42x" , -"intel,ixp43x" , -"intel,ixp45x" , -"intel,ixp46x" , -NULL , -}; - -DT_MACHINE_START (IXP4XX_DT ,"IXP4xx (Device Tree)" ) - .dt_compat = ixp4xx_of_board_compat, -MACHINE_END
Signature · 1 line
2.39.2