[U-Boot] [PATCH] ARM: tegra: refactor common Kconfig options

Stephen Warren swarren at wwwdotorg.org
Wed Nov 18 23:52:01 CET 2015


From: Stephen Warren <swarren at nvidia.com>

This makes it easier to select common options in a single place, rather
than having to add them separately for different SoCs or architectures.

The lists of select statements are now also sorted for easy searching.

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 arch/arm/mach-tegra/Kconfig | 36 +++++++++++++++++++-----------------
 1 file changed, 19 insertions(+), 17 deletions(-)

diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index a5b7e0d22d29..d2ca376d23f6 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -1,17 +1,26 @@
 if TEGRA
 
-config TEGRA_ARMV7_COMMON
-	bool "Tegra 32-bit"
-	select SUPPORT_SPL
-	select SPL
-	select OF_CONTROL
-	select CPU_V7
+config TEGRA_COMMON
+	bool "Tegra common options"
 	select DM
-	select DM_SPI_FLASH
-	select DM_SERIAL
+	select DM_GPIO
 	select DM_I2C
+	select DM_SERIAL
 	select DM_SPI
-	select DM_GPIO
+	select DM_SPI_FLASH
+	select OF_CONTROL
+
+config TEGRA_ARMV7_COMMON
+	bool "Tegra 32-bit common options"
+	select CPU_V7
+	select SPL
+	select SUPPORT_SPL
+	select TEGRA_COMMON
+
+config TEGRA_ARMV8_COMMON
+	bool "Tegra 64-bit common options"
+	select ARM64
+	select TEGRA_COMMON
 
 choice
 	prompt "Tegra SoC select"
@@ -35,14 +44,7 @@ config TEGRA124
 
 config TEGRA210
 	bool "Tegra210 family"
-	select OF_CONTROL
-	select ARM64
-	select DM
-	select DM_SPI_FLASH
-	select DM_SERIAL
-	select DM_I2C
-	select DM_SPI
-	select DM_GPIO
+	select TEGRA_ARMV8_COMMON
 
 endchoice
 
-- 
1.9.1



More information about the U-Boot mailing list