]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
soc/tegra: Make ARCH_TEGRA_SOC_FOO defaults for NVIDIA Tegra
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Tue, 17 Feb 2026 09:16:36 +0000 (10:16 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 25 Mar 2026 09:46:52 +0000 (10:46 +0100)
By convention, only one globally selectable ARCH_PLATFORM is expected
for given SoC platform, defined in arch/arm64/Kconfig.platforms or
arch/arm/mach-*/Kconfig, because we target a single multi-platform
kernel image.

Platforms wanting different granularity, e.g. due to size constraints on
their devices, should be sure that globally only one ARCH_PLATFORM is
selected in defconfig.  Change Tegra per-SoC Kconfig entries to default
to ARCH_TEGRA allowing removal of these per-SoC parts from defconfigs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
[treding@nvidia.com: Fix ARCH_PLATFORM typo, correct spelling]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/Kconfig

index c0fc54c3cd35e4f96e09e5e6d32e66282b467235..a1cadfdb356cf0c7302c1affe6a0f863e5641fda 100644 (file)
@@ -6,6 +6,7 @@ if ARM
 
 config ARCH_TEGRA_2x_SOC
        bool "Enable support for Tegra20 family"
+       default ARCH_TEGRA
        select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
        select ARM_ERRATA_720789
        select ARM_ERRATA_754327 if SMP
@@ -23,6 +24,7 @@ config ARCH_TEGRA_2x_SOC
 
 config ARCH_TEGRA_3x_SOC
        bool "Enable support for Tegra30 family"
+       default ARCH_TEGRA
        select ARM_ERRATA_754322
        select ARM_ERRATA_764369 if SMP
        select PINCTRL_TEGRA30
@@ -37,6 +39,7 @@ config ARCH_TEGRA_3x_SOC
 
 config ARCH_TEGRA_114_SOC
        bool "Enable support for Tegra114 family"
+       default ARCH_TEGRA
        select ARM_ERRATA_798181 if SMP
        select HAVE_ARM_ARCH_TIMER
        select PINCTRL_TEGRA114
@@ -49,6 +52,7 @@ config ARCH_TEGRA_114_SOC
 
 config ARCH_TEGRA_124_SOC
        bool "Enable support for Tegra124 family"
+       default ARCH_TEGRA
        select HAVE_ARM_ARCH_TIMER
        select PINCTRL_TEGRA124
        select SOC_TEGRA_FLOWCTRL
@@ -65,6 +69,7 @@ if ARM64
 
 config ARCH_TEGRA_132_SOC
        bool "NVIDIA Tegra132 SoC"
+       default ARCH_TEGRA
        select PINCTRL_TEGRA124
        select SOC_TEGRA_FLOWCTRL
        select SOC_TEGRA_PMC
@@ -76,6 +81,7 @@ config ARCH_TEGRA_132_SOC
 
 config ARCH_TEGRA_210_SOC
        bool "NVIDIA Tegra210 SoC"
+       default ARCH_TEGRA
        select PINCTRL_TEGRA210
        select SOC_TEGRA_FLOWCTRL
        select SOC_TEGRA_PMC
@@ -95,6 +101,7 @@ config ARCH_TEGRA_210_SOC
 
 config ARCH_TEGRA_186_SOC
        bool "NVIDIA Tegra186 SoC"
+       default ARCH_TEGRA
        depends on !CPU_BIG_ENDIAN
        select PINCTRL_TEGRA186
        select MAILBOX
@@ -109,6 +116,7 @@ config ARCH_TEGRA_186_SOC
 
 config ARCH_TEGRA_194_SOC
        bool "NVIDIA Tegra194 SoC"
+       default ARCH_TEGRA
        depends on !CPU_BIG_ENDIAN
        select MAILBOX
        select PINCTRL_TEGRA194
@@ -118,6 +126,7 @@ config ARCH_TEGRA_194_SOC
 
 config ARCH_TEGRA_234_SOC
        bool "NVIDIA Tegra234 SoC"
+       default ARCH_TEGRA
        depends on !CPU_BIG_ENDIAN
        select MAILBOX
        select PINCTRL_TEGRA234
@@ -127,11 +136,13 @@ config ARCH_TEGRA_234_SOC
 
 config ARCH_TEGRA_241_SOC
        bool "NVIDIA Tegra241 SoC"
+       default ARCH_TEGRA
        help
          Enable support for the NVIDIA Tegra241 SoC.
 
 config ARCH_TEGRA_264_SOC
        bool "NVIDIA Tegra264 SoC"
+       default ARCH_TEGRA
        depends on !CPU_BIG_ENDIAN
        select MAILBOX
        select SOC_TEGRA_PMC