[PATCH 4/6] s3c/kconfig: inverse the board selection

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sat Oct 31 05:39:13 EDT 2009


instead of select first the board which will select the arch, now
first choice the arch to filter the possible boards

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 arch/arm/Kconfig              |   23 +----------------------
 arch/arm/mach-s3c24xx/Kconfig |   28 +++++++++++++++++++++++++---
 2 files changed, 26 insertions(+), 25 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 05cf3d8..dacd5f9 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -98,7 +98,7 @@ endchoice
 
 choice
 	prompt "Select your board"
-	depends on !ARCH_AT91 && !ARCH_AT91RM9200 && !ARCH_OMAP && !ARCH_MXC
+	depends on !ARCH_AT91 && !ARCH_AT91RM9200 && !ARCH_OMAP && !ARCH_MXC && !ARCH_S3C24xx
 
 config MACH_NXDB500
 	bool "Hilscher Netx nxdb500"
@@ -109,27 +109,6 @@ config MACH_NXDB500
 	help
 	  Say Y here if you are using the Hilscher Netx nxdb500 board
 
-config MACH_A9M2410
-	bool "Digi A9M2410"
-	depends on ARCH_S3C24xx
-	select CPU_S3C2410
-	select MACH_HAS_LOWLEVEL_INIT
-	select S3C24XX_PLL_INIT
-	select S3C24XX_SDRAM_INIT
-	help
-	  Say Y here if you are using Digi's Connect Core 9M equipped
-	  with a Samsung S3C2410 Processor
-
-config MACH_A9M2440
-	bool "Digi A9M2440"
-	depends on ARCH_S3C24xx
-	select CPU_S3C2440
-	select MACH_HAS_LOWLEVEL_INIT
-	select S3C24XX_PLL_INIT
-	help
-	  Say Y here if you are using Digi's Connect Core 9M equipped
-	  with a Samsung S3C2440 Processor
-
 endchoice
 
 source arch/arm/mach-at91/Kconfig
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig
index 1ad59f6..f41a450 100644
--- a/arch/arm/mach-s3c24xx/Kconfig
+++ b/arch/arm/mach-s3c24xx/Kconfig
@@ -1,13 +1,35 @@
+if ARCH_S3C24xx
 
 config CPU_S3C2410
-	select ARCH_S3C24xx
 	bool
 
 config CPU_S3C2440
-	select ARCH_S3C24xx
 	bool
 
-if ARCH_S3C24xx
+choice
+
+	prompt "S3C24xx Board Type"
+
+config MACH_A9M2410
+	bool "Digi A9M2410"
+	select CPU_S3C2410
+	select MACH_HAS_LOWLEVEL_INIT
+	select S3C24XX_PLL_INIT
+	select S3C24XX_SDRAM_INIT
+	help
+	  Say Y here if you are using Digi's Connect Core 9M equipped
+	  with a Samsung S3C2410 Processor
+
+config MACH_A9M2440
+	bool "Digi A9M2440"
+	select CPU_S3C2440
+	select MACH_HAS_LOWLEVEL_INIT
+	select S3C24XX_PLL_INIT
+	help
+	  Say Y here if you are using Digi's Connect Core 9M equipped
+	  with a Samsung S3C2440 Processor
+
+endchoice
 
 menu "Board specific settings       "
 
-- 
1.6.5





More information about the u-boot-v2 mailing list