Trivial fixes for kconfig. They fix all non-fam10 build failures.
[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_ADVANTECH
10         bool "Advantech"
11 config VENDOR_AMD
12         bool "AMD"
13 config VENDOR_ARIMA
14         bool "Arima"
15 config VENDOR_ARTEC_GROUP
16         bool "Artec Group"
17 config VENDOR_ASI
18         bool "ASI"
19 config VENDOR_ASUS
20         bool "ASUS"
21 config VENDOR_A_TREND
22         bool "A-Trend"
23 config VENDOR_AXUS
24         bool "AXUS"
25 config VENDOR_AZZA
26         bool "AZZA"
27 config VENDOR_BCOM
28         bool "BCOM"
29 config VENDOR_BIOSTAR
30         bool "Biostar"
31 config VENDOR_BROADCOM
32         bool "Broadcom"
33 config VENDOR_COMPAQ
34         bool "Compaq"
35 config VENDOR_DELL
36         bool "Dell"
37 config VENDOR_DIGITAL_LOGIC
38         bool "DIGITAL-LOGIC"
39 config VENDOR_EAGLELION
40         bool "EagleLion"
41 config VENDOR_EMULATION
42         bool "Emulation"
43 config VENDOR_GIGABYTE
44         bool "GIGABYTE"
45 config VENDOR_HP
46         bool "HP"
47 config VENDOR_IBM
48         bool "IBM"
49 config VENDOR_IEI
50         bool "IEI"
51 config VENDOR_INTEL
52         bool "Intel"
53 config VENDOR_IWILL
54         bool "IWILL"
55 config VENDOR_JETWAY
56         bool "Jetway"
57 config VENDOR_KONTRON
58         bool "Kontron"
59 config VENDOR_LIPPERT
60         bool "Lippert"
61 config VENDOR_MITAC
62         bool "Mitac"
63 config VENDOR_MSI
64         bool "MSI"
65 config VENDOR_NEC
66         bool "NEC"
67 config VENDOR_NEWISYS
68         bool "Newisys"
69 config VENDOR_NVIDIA
70         bool "NVIDIA"
71 config VENDOR_OLPC
72         bool "OLPC"
73 config VENDOR_PC_ENGINES
74         bool "PC Engines"
75 config VENDOR_RCA
76         bool "RCA"
77 config VENDOR_SOYO
78         bool "Soyo"
79 config VENDOR_SUNW
80         bool "Sun"
81 config VENDOR_SUPERMICRO
82         bool "Supermicro"
83 config VENDOR_TECHNEXION
84         bool "Technexion"
85 config VENDOR_TECHNOLOGIC
86         bool "Technologic"
87 config VENDOR_TELEVIDEO
88         bool "TeleVideo"
89 config VENDOR_THOMSON
90         bool "Thomson"
91 config VENDOR_TYAN
92         bool "Tyan"
93 config VENDOR_VIA
94         bool "VIA"
95
96 endchoice
97
98 config MAINBOARD_VENDOR
99         string
100         default "Abit"
101         depends on VENDOR_ABIT
102
103 config MAINBOARD_VENDOR
104         string
105         default "Advantech"
106         depends on VENDOR_ADVANTECH
107
108 config MAINBOARD_VENDOR
109         string
110         default "AMD"
111         depends on VENDOR_AMD
112
113 config MAINBOARD_VENDOR
114         string
115         default "Arima"
116         depends on VENDOR_ARIMA
117
118 config MAINBOARD_VENDOR
119         string
120         default "Artec Group"
121         depends on VENDOR_ARTEC_GROUP
122
123 config MAINBOARD_VENDOR
124         string
125         default "ASI"
126         depends on VENDOR_ASI
127
128 config MAINBOARD_VENDOR
129         string
130         default "ASUS"
131         depends on VENDOR_ASUS
132
133 config MAINBOARD_VENDOR
134         string
135         default "A-Trend"
136         depends on VENDOR_A_TREND
137
138 config MAINBOARD_VENDOR
139         string
140         default "AXUS"
141         depends on VENDOR_AXUS
142
143 config MAINBOARD_VENDOR
144         string
145         default "AZZA"
146         depends on VENDOR_AZZA
147
148 config MAINBOARD_VENDOR
149         string
150         default "BCOM"
151         depends on VENDOR_BCOM
152
153 config MAINBOARD_VENDOR
154         string
155         default "Biostar"
156         depends on VENDOR_BIOSTAR
157
158 config MAINBOARD_VENDOR
159         string
160         default "Broadcom"
161         depends on VENDOR_BROADCOM
162
163 config MAINBOARD_VENDOR
164         string
165         default "Compaq"
166         depends on VENDOR_COMPAQ
167
168 config MAINBOARD_VENDOR
169         string
170         default "Dell"
171         depends on VENDOR_DELL
172
173 config MAINBOARD_VENDOR
174         string
175         default "DIGITAL-LOGIC"
176         depends on VENDOR_DIGITAL_LOGIC
177
178 config MAINBOARD_VENDOR
179         string
180         default "EagleLion"
181         depends on VENDOR_EAGLELION
182
183 config MAINBOARD_VENDOR
184         string
185         default "Emulation"
186         depends on VENDOR_EMULATION
187
188 config MAINBOARD_VENDOR
189         string
190         default "GIGABYTE"
191         depends on VENDOR_GIGABYTE
192
193 config MAINBOARD_VENDOR
194         string
195         default "HP"
196         depends on VENDOR_HP
197
198 config MAINBOARD_VENDOR
199         string
200         default "IBM"
201         depends on VENDOR_IBM
202
203 config MAINBOARD_VENDOR
204         string
205         default "IEI"
206         depends on VENDOR_IEI
207
208 config MAINBOARD_VENDOR
209         string
210         default "Intel"
211         depends on VENDOR_INTEL
212
213 config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
214         hex
215         default 0x8086
216         depends on VENDOR_INTEL
217
218 config MAINBOARD_VENDOR
219         string
220         default "IWILL"
221         depends on VENDOR_IWILL
222
223 config MAINBOARD_VENDOR
224         string
225         default "Jetway"
226         depends on VENDOR_JETWAY
227
228 config MAINBOARD_VENDOR
229         string
230         default "Kontron"
231         depends on VENDOR_KONTRON
232
233 config MAINBOARD_VENDOR
234         string
235         default "Lippert"
236         depends on VENDOR_LIPPERT
237
238 config MAINBOARD_VENDOR
239         string
240         default "Mitac"
241         depends on VENDOR_MITAC
242
243 config MAINBOARD_VENDOR
244         string
245         default "MSI"
246         depends on VENDOR_MSI
247
248 config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
249         hex
250         default 0x1462
251         depends on VENDOR_MSI
252
253 config MAINBOARD_VENDOR
254         string
255         default "NEC"
256         depends on VENDOR_NEC
257
258 config MAINBOARD_VENDOR
259         string
260         default "Newisys"
261         depends on VENDOR_NEWISYS
262
263 config MAINBOARD_VENDOR
264         string
265         default "NVIDIA"
266         depends on VENDOR_NVIDIA
267
268 config MAINBOARD_VENDOR
269         string
270         default "OLPC"
271         depends on VENDOR_OLPC
272
273 config MAINBOARD_VENDOR
274         string
275         default "PC Engines"
276         depends on VENDOR_PC_ENGINES
277
278 config MAINBOARD_VENDOR
279         string
280         default "RCA"
281         depends on VENDOR_RCA
282
283 config MAINBOARD_VENDOR
284         string
285         default "Soyo"
286         depends on VENDOR_SOYO
287
288 config MAINBOARD_VENDOR
289         string
290         default "Sun"
291         depends on VENDOR_SUNW
292
293 config MAINBOARD_VENDOR
294         string
295         default "Supermicro"
296         depends on VENDOR_SUPERMICRO
297
298 config MAINBOARD_VENDOR
299         string
300         default "Technexion"
301         depends on VENDOR_TECHNEXION
302
303 config MAINBOARD_VENDOR
304         string
305         default "Technologic"
306         depends on VENDOR_TECHNOLOGIC
307
308 config MAINBOARD_VENDOR
309         string
310         default "TeleVideo"
311         depends on VENDOR_TELEVIDEO
312
313 config MAINBOARD_VENDOR
314         string
315         default "Thomson"
316         depends on VENDOR_THOMSON
317
318 config MAINBOARD_VENDOR
319         string
320         default "Tyan"
321         depends on VENDOR_TYAN
322
323 config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
324         hex
325         default 0x10f1
326         depends on VENDOR_TYAN
327
328 config MAINBOARD_VENDOR
329         string
330         default "VIA"
331         depends on VENDOR_VIA
332
333 config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
334         hex
335         default 0x1019
336         depends on VENDOR_VIA
337
338 source "src/mainboard/a-trend/Kconfig"
339 source "src/mainboard/abit/Kconfig"
340 source "src/mainboard/advantech/Kconfig"
341 source "src/mainboard/amd/Kconfig"
342 source "src/mainboard/arima/Kconfig"
343 source "src/mainboard/artecgroup/Kconfig"
344 source "src/mainboard/asi/Kconfig"
345 source "src/mainboard/asus/Kconfig"
346 source "src/mainboard/axus/Kconfig"
347 source "src/mainboard/azza/Kconfig"
348 source "src/mainboard/bcom/Kconfig"
349 source "src/mainboard/biostar/Kconfig"
350 source "src/mainboard/broadcom/Kconfig"
351 source "src/mainboard/compaq/Kconfig"
352 source "src/mainboard/dell/Kconfig"
353 source "src/mainboard/digitallogic/Kconfig"
354 source "src/mainboard/eaglelion/Kconfig"
355 source "src/mainboard/emulation/Kconfig"
356 source "src/mainboard/gigabyte/Kconfig"
357 source "src/mainboard/hp/Kconfig"
358 source "src/mainboard/ibm/Kconfig"
359 source "src/mainboard/iei/Kconfig"
360 source "src/mainboard/intel/Kconfig"
361 source "src/mainboard/iwill/Kconfig"
362 source "src/mainboard/jetway/Kconfig"
363 source "src/mainboard/kontron/Kconfig"
364 source "src/mainboard/lippert/Kconfig"
365 source "src/mainboard/mitac/Kconfig"
366 source "src/mainboard/msi/Kconfig"
367 source "src/mainboard/nec/Kconfig"
368 source "src/mainboard/newisys/Kconfig"
369 source "src/mainboard/nvidia/Kconfig"
370 source "src/mainboard/olpc/Kconfig"
371 source "src/mainboard/pcengines/Kconfig"
372 source "src/mainboard/rca/Kconfig"
373 source "src/mainboard/soyo/Kconfig"
374 source "src/mainboard/sunw/Kconfig"
375 source "src/mainboard/supermicro/Kconfig"
376 source "src/mainboard/technexion/Kconfig"
377 source "src/mainboard/technologic/Kconfig"
378 source "src/mainboard/televideo/Kconfig"
379 source "src/mainboard/thomson/Kconfig"
380 source "src/mainboard/tyan/Kconfig"
381 source "src/mainboard/via/Kconfig"
382
383 config BOARD_ROMSIZE_KB_128
384         bool
385 config BOARD_ROMSIZE_KB_256
386         bool
387 config BOARD_ROMSIZE_KB_512
388         bool
389 config BOARD_ROMSIZE_KB_1024
390         bool
391 config BOARD_ROMSIZE_KB_2048
392         bool
393 config BOARD_ROMSIZE_KB_4096
394         bool
395
396 # TODO: No help text possible for choice fields?
397 choice
398         prompt "ROM chip size"
399         default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
400         default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
401         default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
402         default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
403         default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
404         default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
405         help
406           Select the size of the ROM chip you intend to flash coreboot on.
407
408           The build system will take care of creating a coreboot.rom file
409           of the matching size.
410
411 config COREBOOT_ROMSIZE_KB_128
412         bool "128 KB"
413         help
414           Choose this option if you have a 128 KB ROM chip.
415
416 config COREBOOT_ROMSIZE_KB_256
417         bool "256 KB"
418         help
419           Choose this option if you have a 256 KB ROM chip.
420
421 config COREBOOT_ROMSIZE_KB_512
422         bool "512 KB"
423         help
424           Choose this option if you have a 512 KB ROM chip.
425
426 config COREBOOT_ROMSIZE_KB_1024
427         bool "1024 KB (1 MB)"
428         help
429           Choose this option if you have a 1024 KB (1 MB) ROM chip.
430
431 config COREBOOT_ROMSIZE_KB_2048
432         bool "2048 KB (2 MB)"
433         help
434           Choose this option if you have a 2048 KB (2 MB) ROM chip.
435
436 config COREBOOT_ROMSIZE_KB_4096
437         bool "4096 KB (4 MB)"
438         help
439           Choose this option if you have a 4096 KB (4 MB) ROM chip.
440
441 endchoice
442
443 # Map the config names to an integer (KB).
444 config COREBOOT_ROMSIZE_KB
445         int
446         default 128 if COREBOOT_ROMSIZE_KB_128
447         default 256 if COREBOOT_ROMSIZE_KB_256
448         default 512 if COREBOOT_ROMSIZE_KB_512
449         default 1024 if COREBOOT_ROMSIZE_KB_1024
450         default 2048 if COREBOOT_ROMSIZE_KB_2048
451         default 4096 if COREBOOT_ROMSIZE_KB_4096
452
453 # Map the config names to a hex value (bytes).
454 config ROM_SIZE
455         hex
456         default 0x20000 if COREBOOT_ROMSIZE_KB_128
457         default 0x40000 if COREBOOT_ROMSIZE_KB_256
458         default 0x80000 if COREBOOT_ROMSIZE_KB_512
459         default 0x100000 if COREBOOT_ROMSIZE_KB_1024
460         default 0x200000 if COREBOOT_ROMSIZE_KB_2048
461         default 0x400000 if COREBOOT_ROMSIZE_KB_4096
462
463 endmenu
464