[PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP

Robert Marko posted 9 patches 1 month, 3 weeks ago
[PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP
Posted by Robert Marko 1 month, 3 weeks ago
Like with the ARM64 Microchip platforms, lets add a generic ARCH_MICROCHIP
symbol and select it so that drivers that are reused for multiple product
generation or lines, can just depend on it instead of adding each SoC
symbol as their dependencies.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
 arch/arm/mach-at91/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 04bd91c72521..c5ef27e3cd8f 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -1,4 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
+config ARCH_MICROCHIP
+	bool
+
 menuconfig ARCH_AT91
 	bool "AT91/Microchip SoCs"
 	depends on (CPU_LITTLE_ENDIAN && (ARCH_MULTI_V4T || ARCH_MULTI_V5)) || \
@@ -8,6 +11,7 @@ menuconfig ARCH_AT91
 	select GPIOLIB
 	select PINCTRL
 	select SOC_BUS
+	select ARCH_MICROCHIP
 
 if ARCH_AT91
 config SOC_SAMV7
-- 
2.50.1
Re: [PATCH v9 2/9] ARM: at91: select ARCH_MICROCHIP
Posted by Nicolas Ferre 1 month, 1 week ago
On 13/08/2025 at 19:44, Robert Marko wrote:
> Like with the ARM64 Microchip platforms, lets add a generic ARCH_MICROCHIP
> symbol and select it so that drivers that are reused for multiple product
> generation or lines, can just depend on it instead of adding each SoC
> symbol as their dependencies.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

> ---
>   arch/arm/mach-at91/Kconfig | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
> index 04bd91c72521..c5ef27e3cd8f 100644
> --- a/arch/arm/mach-at91/Kconfig
> +++ b/arch/arm/mach-at91/Kconfig
> @@ -1,4 +1,7 @@
>   # SPDX-License-Identifier: GPL-2.0-only
> +config ARCH_MICROCHIP
> +       bool
> +
>   menuconfig ARCH_AT91
>          bool "AT91/Microchip SoCs"
>          depends on (CPU_LITTLE_ENDIAN && (ARCH_MULTI_V4T || ARCH_MULTI_V5)) || \
> @@ -8,6 +11,7 @@ menuconfig ARCH_AT91
>          select GPIOLIB
>          select PINCTRL
>          select SOC_BUS
> +       select ARCH_MICROCHIP
> 
>   if ARCH_AT91
>   config SOC_SAMV7
> --
> 2.50.1
>