[AVR32] Kconfig: Choose daughterboard instead of CPU
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 29 Nov 2007 10:15:15 +0000 (11:15 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 25 Jan 2008 07:31:42 +0000 (08:31 +0100)
Remove the CPU selection menu and instead let it be selected by the
board or daughterboard option. Add daughterboard selection for
ATSTK1000 (this was previously determined based on CPU type.)

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/Kconfig
arch/avr32/boards/atstk1000/Kconfig

index 52283f76c304894a8619704f630253b72ecdba22..516015b3293b5e8054ff22be49f3323993799b77 100644 (file)
@@ -84,36 +84,23 @@ config PLATFORM_AT32AP
        select MMU
        select PERFORMANCE_COUNTERS
 
+#
+# CPU types
+#
+
+# AP7000 derivatives
 config CPU_AT32AP700X
        bool
        select PLATFORM_AT32AP
-
-choice
-       prompt "AVR32 CPU type"
-       default CPU_AT32AP7000
-
 config CPU_AT32AP7000
-       bool "AT32AP7000"
+       bool
        select CPU_AT32AP700X
-
 config CPU_AT32AP7001
-       bool "AT32AP7001"
+       bool
        select CPU_AT32AP700X
-
 config CPU_AT32AP7002
-       bool "AT32AP7002"
-       select CPU_AT32AP700X
-
-endchoice
-
-#
-# CPU Daughterboards for ATSTK1000
-config BOARD_ATSTK1002
-       bool
-config BOARD_ATSTK1003
-       bool
-config BOARD_ATSTK1004
        bool
+       select CPU_AT32AP700X
 
 choice
        prompt "AVR32 board type"
@@ -121,12 +108,10 @@ choice
 
 config BOARD_ATSTK1000
        bool "ATSTK1000 evaluation board"
-       select BOARD_ATSTK1002 if CPU_AT32AP7000
-       select BOARD_ATSTK1003 if CPU_AT32AP7001
-       select BOARD_ATSTK1004 if CPU_AT32AP7002
 
 config BOARD_ATNGW100
        bool "ATNGW100 Network Gateway"
+       select CPU_AT32AP7000
 endchoice
 
 if BOARD_ATSTK1000
index 28c47802a560b3c259a1cef746ef739abd8ff836..af90b00100fd0d96f58df404411e00affce02bcd 100644 (file)
@@ -2,6 +2,25 @@
 
 if BOARD_ATSTK1000
 
+choice
+       prompt "ATSTK1000 CPU daughterboard type"
+       default BOARD_ATSTK1002
+
+config BOARD_ATSTK1002
+       bool "ATSTK1002"
+       select CPU_AT32AP7000
+
+config BOARD_ATSTK1003
+       bool "ATSTK1003"
+       select CPU_AT32AP7001
+
+config BOARD_ATSTK1004
+       bool "ATSTK1004"
+       select CPU_AT32AP7002
+
+endchoice
+
+
 config BOARD_ATSTK100X_CUSTOM
        bool "Non-default STK1002/STK1003/STK1004 jumper settings"
        help