ARM: rmobile: Factor out SYS_SOC Kconfig option
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 28 Feb 2023 06:28:55 +0000 (07:28 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 18 Mar 2023 11:02:38 +0000 (12:02 +0100)
Pull the SYS_SOC Kconfig option to avoid duplication of this option
in Kconfig.{32,64,rza1} . The default value is the same, so just set
it in one location.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
arch/arm/mach-rmobile/Kconfig
arch/arm/mach-rmobile/Kconfig.32
arch/arm/mach-rmobile/Kconfig.64
arch/arm/mach-rmobile/Kconfig.rza1

index 9ff45f4..b69ccae 100644 (file)
@@ -41,6 +41,9 @@ config RZA1
 
 endchoice
 
+config SYS_SOC
+       default "rmobile" if ARCH_RMOBILE
+
 source "arch/arm/mach-rmobile/Kconfig.32"
 source "arch/arm/mach-rmobile/Kconfig.64"
 source "arch/arm/mach-rmobile/Kconfig.rza1"
index 31badc5..1ac31c2 100644 (file)
@@ -125,9 +125,6 @@ endchoice
 config TMU_TIMER
        bool
 
-config SYS_SOC
-       default "rmobile"
-
 config RMOBILE_EXTRAM_BOOT
        bool "Enable boot from RAM"
        depends on TARGET_ALT || TARGET_BLANCHE || TARGET_KOELSCH || TARGET_LAGER || TARGET_PORTER || TARGET_SILK || TARGET_STOUT
index 33fd776..3ed5099 100644 (file)
@@ -172,9 +172,6 @@ config TARGET_ULCB
 
 endchoice
 
-config SYS_SOC
-       default "rmobile"
-
 source "board/renesas/condor/Kconfig"
 source "board/renesas/draak/Kconfig"
 source "board/renesas/eagle/Kconfig"
index 8cf033f..e88f9a2 100644 (file)
@@ -19,9 +19,6 @@ config TARGET_GRPEACH
 
 endchoice
 
-config SYS_SOC
-       default "rmobile"
-
 # Renesas Supported Boards
 source "board/renesas/grpeach/Kconfig"