Introduced support for 8MB and 16MB flash sizes
[coreboot.git] / src / mainboard / Kconfig
1 menu "Mainboard"
2
3 choice
4         prompt "Mainboard vendor"
5         default VENDOR_EMULATION
6
7 config VENDOR_ABIT
8         bool "Abit"
9 config VENDOR_ADVANSUS
10         bool "Advansus"
11 config VENDOR_ADVANTECH
12         bool "Advantech"
13 config VENDOR_AMD
14         bool "AMD"
15 config VENDOR_ARIMA
16         bool "Arima"
17 config VENDOR_ARTEC_GROUP
18         bool "Artec Group"
19 config VENDOR_ASI
20         bool "ASI"
21 config VENDOR_ASROCK
22         bool "ASROCK"
23 config VENDOR_ASUS
24         bool "ASUS"
25 config VENDOR_A_TREND
26         bool "A-Trend"
27 config VENDOR_AXUS
28         bool "AXUS"
29 config VENDOR_AZZA
30         bool "AZZA"
31 config VENDOR_BCOM
32         bool "BCOM"
33 config VENDOR_BIOSTAR
34         bool "Biostar"
35 config VENDOR_BROADCOM
36         bool "Broadcom"
37 config VENDOR_COMPAQ
38         bool "Compaq"
39 config VENDOR_DELL
40         bool "Dell"
41 config VENDOR_DIGITAL_LOGIC
42         bool "DIGITAL-LOGIC"
43 config VENDOR_EAGLELION
44         bool "EagleLion"
45 config VENDOR_ECS
46         bool "ECS"
47 config VENDOR_EMULATION
48         bool "Emulation"
49 config VENDOR_GETAC
50         bool "Getac"
51 config VENDOR_GIGABYTE
52         bool "GIGABYTE"
53 config VENDOR_HP
54         bool "HP"
55 config VENDOR_IBASE
56         bool "iBase"
57 config VENDOR_IBM
58         bool "IBM"
59 config VENDOR_IEI
60         bool "IEI"
61 config VENDOR_INTEL
62         bool "Intel"
63 config VENDOR_IWAVE
64         bool "iWave"
65 config VENDOR_IWILL
66         bool "IWILL"
67 config VENDOR_JETWAY
68         bool "Jetway"
69 config VENDOR_KONTRON
70         bool "Kontron"
71 config VENDOR_LANNER
72         bool "Lanner"
73 config VENDOR_LENOVO
74         bool "Lenovo"
75 config VENDOR_LIPPERT
76         bool "Lippert"
77 config VENDOR_MITAC
78         bool "Mitac"
79 config VENDOR_MSI
80         bool "MSI"
81 config VENDOR_NEC
82         bool "NEC"
83 config VENDOR_NEWISYS
84         bool "Newisys"
85 config VENDOR_NOKIA
86         bool "Nokia"
87 config VENDOR_NVIDIA
88         bool "NVIDIA"
89 config VENDOR_PC_ENGINES
90         bool "PC Engines"
91 config VENDOR_RCA
92         bool "RCA"
93 config VENDOR_RODA
94         bool "Roda"
95 config VENDOR_SIEMENS
96         bool "Siemens"
97 config VENDOR_SOYO
98         bool "Soyo"
99 config VENDOR_SUNW
100         bool "Sun"
101 config VENDOR_SUPERMICRO
102         bool "Supermicro"
103 config VENDOR_TECHNEXION
104         bool "Technexion"
105 config VENDOR_TECHNOLOGIC
106         bool "Technologic"
107 config VENDOR_TELEVIDEO
108         bool "TeleVideo"
109 config VENDOR_THOMSON
110         bool "Thomson"
111 config VENDOR_TRAVERSE
112         bool "Traverse Technologies"
113 config VENDOR_TYAN
114         bool "Tyan"
115 config VENDOR_VIA
116         bool "VIA"
117 config VENDOR_WINENT
118         bool "Win Enterprises"
119 config VENDOR_WYSE
120         bool "Wyse"
121
122 endchoice
123
124 source "src/mainboard/a-trend/Kconfig"
125 source "src/mainboard/abit/Kconfig"
126 source "src/mainboard/advansus/Kconfig"
127 source "src/mainboard/advantech/Kconfig"
128 source "src/mainboard/amd/Kconfig"
129 source "src/mainboard/arima/Kconfig"
130 source "src/mainboard/artecgroup/Kconfig"
131 source "src/mainboard/asi/Kconfig"
132 source "src/mainboard/asrock/Kconfig"
133 source "src/mainboard/asus/Kconfig"
134 source "src/mainboard/axus/Kconfig"
135 source "src/mainboard/azza/Kconfig"
136 source "src/mainboard/bcom/Kconfig"
137 source "src/mainboard/biostar/Kconfig"
138 source "src/mainboard/broadcom/Kconfig"
139 source "src/mainboard/compaq/Kconfig"
140 source "src/mainboard/dell/Kconfig"
141 source "src/mainboard/digitallogic/Kconfig"
142 source "src/mainboard/eaglelion/Kconfig"
143 source "src/mainboard/ecs/Kconfig"
144 source "src/mainboard/emulation/Kconfig"
145 source "src/mainboard/getac/Kconfig"
146 source "src/mainboard/gigabyte/Kconfig"
147 source "src/mainboard/hp/Kconfig"
148 source "src/mainboard/ibase/Kconfig"
149 source "src/mainboard/ibm/Kconfig"
150 source "src/mainboard/iei/Kconfig"
151 source "src/mainboard/intel/Kconfig"
152 source "src/mainboard/iwave/Kconfig"
153 source "src/mainboard/iwill/Kconfig"
154 source "src/mainboard/jetway/Kconfig"
155 source "src/mainboard/kontron/Kconfig"
156 source "src/mainboard/lanner/Kconfig"
157 source "src/mainboard/lenovo/Kconfig"
158 source "src/mainboard/lippert/Kconfig"
159 source "src/mainboard/mitac/Kconfig"
160 source "src/mainboard/msi/Kconfig"
161 source "src/mainboard/nec/Kconfig"
162 source "src/mainboard/newisys/Kconfig"
163 source "src/mainboard/nokia/Kconfig"
164 source "src/mainboard/nvidia/Kconfig"
165 source "src/mainboard/pcengines/Kconfig"
166 source "src/mainboard/rca/Kconfig"
167 source "src/mainboard/roda/Kconfig"
168 source "src/mainboard/siemens/Kconfig"
169 source "src/mainboard/soyo/Kconfig"
170 source "src/mainboard/sunw/Kconfig"
171 source "src/mainboard/supermicro/Kconfig"
172 source "src/mainboard/technexion/Kconfig"
173 source "src/mainboard/technologic/Kconfig"
174 source "src/mainboard/televideo/Kconfig"
175 source "src/mainboard/thomson/Kconfig"
176 source "src/mainboard/traverse/Kconfig"
177 source "src/mainboard/tyan/Kconfig"
178 source "src/mainboard/via/Kconfig"
179 source "src/mainboard/winent/Kconfig"
180 source "src/mainboard/wyse/Kconfig"
181
182 config BOARD_ROMSIZE_KB_128
183         bool
184 config BOARD_ROMSIZE_KB_256
185         bool
186 config BOARD_ROMSIZE_KB_512
187         bool
188 config BOARD_ROMSIZE_KB_1024
189         bool
190 config BOARD_ROMSIZE_KB_2048
191         bool
192 config BOARD_ROMSIZE_KB_4096
193         bool
194 config BOARD_ROMSIZE_KB_8192
195         bool
196 config BOARD_ROMSIZE_KB_16384
197         bool
198
199 # TODO: No help text possible for choice fields?
200 choice
201         prompt "ROM chip size"
202         default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
203         default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
204         default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
205         default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
206         default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
207         default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
208         default COREBOOT_ROMSIZE_KB_8192 if BOARD_ROMSIZE_KB_8192
209         default COREBOOT_ROMSIZE_KB_16384 if BOARD_ROMSIZE_KB_16384
210         help
211           Select the size of the ROM chip you intend to flash coreboot on.
212
213           The build system will take care of creating a coreboot.rom file
214           of the matching size.
215
216 config COREBOOT_ROMSIZE_KB_128
217         bool "128 KB"
218         help
219           Choose this option if you have a 128 KB ROM chip.
220
221 config COREBOOT_ROMSIZE_KB_256
222         bool "256 KB"
223         help
224           Choose this option if you have a 256 KB ROM chip.
225
226 config COREBOOT_ROMSIZE_KB_512
227         bool "512 KB"
228         help
229           Choose this option if you have a 512 KB ROM chip.
230
231 config COREBOOT_ROMSIZE_KB_1024
232         bool "1024 KB (1 MB)"
233         help
234           Choose this option if you have a 1024 KB (1 MB) ROM chip.
235
236 config COREBOOT_ROMSIZE_KB_2048
237         bool "2048 KB (2 MB)"
238         help
239           Choose this option if you have a 2048 KB (2 MB) ROM chip.
240
241 config COREBOOT_ROMSIZE_KB_4096
242         bool "4096 KB (4 MB)"
243         help
244           Choose this option if you have a 4096 KB (4 MB) ROM chip.
245
246 config COREBOOT_ROMSIZE_KB_8192
247         bool "8192 KB (8 MB)"
248         help
249           Choose this option if you have a 8192 KB (8 MB) ROM chip.
250
251 config COREBOOT_ROMSIZE_KB_16384
252         bool "16384 KB (16 MB)"
253         help
254           Choose this option if you have a 16384 KB (16 MB) ROM chip.
255
256 endchoice
257
258 # Map the config names to an integer (KB).
259 config COREBOOT_ROMSIZE_KB
260         int
261         default 128 if COREBOOT_ROMSIZE_KB_128
262         default 256 if COREBOOT_ROMSIZE_KB_256
263         default 512 if COREBOOT_ROMSIZE_KB_512
264         default 1024 if COREBOOT_ROMSIZE_KB_1024
265         default 2048 if COREBOOT_ROMSIZE_KB_2048
266         default 4096 if COREBOOT_ROMSIZE_KB_4096
267         default 8192 if COREBOOT_ROMSIZE_KB_8192
268         default 16384 if COREBOOT_ROMSIZE_KB_16384
269
270 # Map the config names to a hex value (bytes).
271 config ROM_SIZE
272         hex
273         default 0x20000 if COREBOOT_ROMSIZE_KB_128
274         default 0x40000 if COREBOOT_ROMSIZE_KB_256
275         default 0x80000 if COREBOOT_ROMSIZE_KB_512
276         default 0x100000 if COREBOOT_ROMSIZE_KB_1024
277         default 0x200000 if COREBOOT_ROMSIZE_KB_2048
278         default 0x400000 if COREBOOT_ROMSIZE_KB_4096
279         default 0x800000 if COREBOOT_ROMSIZE_KB_8192
280         default 0x1000000 if COREBOOT_ROMSIZE_KB_16384
281
282 config ENABLE_POWER_BUTTON
283         bool "Enable the power button" if POWER_BUTTON_IS_OPTIONAL
284         default y if POWER_BUTTON_DEFAULT_ENABLE
285         default n if POWER_BUTTON_DEFAULT_DISABLE
286         help
287           The selected mainboard can optionally have the power button tied
288           to ground with a jumper so that the button appears to be
289           constantly depressed. If this option is enabled and the jumper is
290           installed then the board will turn on, but turn off again after a
291           short timeout, usually 4 seconds.
292
293           Select Y here if you have removed the jumper and want to use an
294           actual power button. Select N if you have the jumper installed.
295
296 config ENABLE_POWER_BUTTON
297         def_bool y if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_ENABLE
298         def_bool n if !POWER_BUTTON_IS_OPTIONAL && POWER_BUTTON_FORCE_DISABLE
299
300 endmenu