aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-11-29 05:15:15 -0500
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2008-01-25 02:31:42 -0500
commite8897bfef2b056a527df21b25b602c59dbbad67a (patch)
tree6e5e4d0050e3d6ab53664456aa4847b5524b9f07 /arch/avr32
parent78693e47a285dbfafabc85a42797660e4fe2967b (diff)
[AVR32] Kconfig: Choose daughterboard instead of CPU
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>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/Kconfig33
-rw-r--r--arch/avr32/boards/atstk1000/Kconfig19
2 files changed, 28 insertions, 24 deletions
diff --git a/arch/avr32/Kconfig b/arch/avr32/Kconfig
index 52283f76c304..516015b3293b 100644
--- a/arch/avr32/Kconfig
+++ b/arch/avr32/Kconfig
@@ -84,36 +84,23 @@ config PLATFORM_AT32AP
84 select MMU 84 select MMU
85 select PERFORMANCE_COUNTERS 85 select PERFORMANCE_COUNTERS
86 86
87#
88# CPU types
89#
90
91# AP7000 derivatives
87config CPU_AT32AP700X 92config CPU_AT32AP700X
88 bool 93 bool
89 select PLATFORM_AT32AP 94 select PLATFORM_AT32AP
90
91choice
92 prompt "AVR32 CPU type"
93 default CPU_AT32AP7000
94
95config CPU_AT32AP7000 95config CPU_AT32AP7000
96 bool "AT32AP7000" 96 bool
97 select CPU_AT32AP700X 97 select CPU_AT32AP700X
98
99config CPU_AT32AP7001 98config CPU_AT32AP7001
100 bool "AT32AP7001" 99 bool
101 select CPU_AT32AP700X 100 select CPU_AT32AP700X
102
103config CPU_AT32AP7002 101config CPU_AT32AP7002
104 bool "AT32AP7002"
105 select CPU_AT32AP700X
106
107endchoice
108
109#
110# CPU Daughterboards for ATSTK1000
111config BOARD_ATSTK1002
112 bool
113config BOARD_ATSTK1003
114 bool
115config BOARD_ATSTK1004
116 bool 102 bool
103 select CPU_AT32AP700X
117 104
118choice 105choice
119 prompt "AVR32 board type" 106 prompt "AVR32 board type"
@@ -121,12 +108,10 @@ choice
121 108
122config BOARD_ATSTK1000 109config BOARD_ATSTK1000
123 bool "ATSTK1000 evaluation board" 110 bool "ATSTK1000 evaluation board"
124 select BOARD_ATSTK1002 if CPU_AT32AP7000
125 select BOARD_ATSTK1003 if CPU_AT32AP7001
126 select BOARD_ATSTK1004 if CPU_AT32AP7002
127 111
128config BOARD_ATNGW100 112config BOARD_ATNGW100
129 bool "ATNGW100 Network Gateway" 113 bool "ATNGW100 Network Gateway"
114 select CPU_AT32AP7000
130endchoice 115endchoice
131 116
132if BOARD_ATSTK1000 117if BOARD_ATSTK1000
diff --git a/arch/avr32/boards/atstk1000/Kconfig b/arch/avr32/boards/atstk1000/Kconfig
index 28c47802a560..af90b00100fd 100644
--- a/arch/avr32/boards/atstk1000/Kconfig
+++ b/arch/avr32/boards/atstk1000/Kconfig
@@ -2,6 +2,25 @@
2 2
3if BOARD_ATSTK1000 3if BOARD_ATSTK1000
4 4
5choice
6 prompt "ATSTK1000 CPU daughterboard type"
7 default BOARD_ATSTK1002
8
9config BOARD_ATSTK1002
10 bool "ATSTK1002"
11 select CPU_AT32AP7000
12
13config BOARD_ATSTK1003
14 bool "ATSTK1003"
15 select CPU_AT32AP7001
16
17config BOARD_ATSTK1004
18 bool "ATSTK1004"
19 select CPU_AT32AP7002
20
21endchoice
22
23
5config BOARD_ATSTK100X_CUSTOM 24config BOARD_ATSTK100X_CUSTOM
6 bool "Non-default STK1002/STK1003/STK1004 jumper settings" 25 bool "Non-default STK1002/STK1003/STK1004 jumper settings"
7 help 26 help