Set default ROM sizes per-board to match the ROM chip that came
[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_VENDOR
214         string
215         default "IWILL"
216         depends on VENDOR_IWILL
217
218 config MAINBOARD_VENDOR
219         string
220         default "Jetway"
221         depends on VENDOR_JETWAY
222
223 config MAINBOARD_VENDOR
224         string
225         default "Kontron"
226         depends on VENDOR_KONTRON
227
228 config MAINBOARD_VENDOR
229         string
230         default "Lippert"
231         depends on VENDOR_LIPPERT
232
233 config MAINBOARD_VENDOR
234         string
235         default "Mitac"
236         depends on VENDOR_MITAC
237
238 config MAINBOARD_VENDOR
239         string
240         default "MSI"
241         depends on VENDOR_MSI
242
243 config MAINBOARD_VENDOR
244         string
245         default "NEC"
246         depends on VENDOR_NEC
247
248 config MAINBOARD_VENDOR
249         string
250         default "Newisys"
251         depends on VENDOR_NEWISYS
252
253 config MAINBOARD_VENDOR
254         string
255         default "NVIDIA"
256         depends on VENDOR_NVIDIA
257
258 config MAINBOARD_VENDOR
259         string
260         default "OLPC"
261         depends on VENDOR_OLPC
262
263 config MAINBOARD_VENDOR
264         string
265         default "PC Engines"
266         depends on VENDOR_PC_ENGINES
267
268 config MAINBOARD_VENDOR
269         string
270         default "RCA"
271         depends on VENDOR_RCA
272
273 config MAINBOARD_VENDOR
274         string
275         default "Soyo"
276         depends on VENDOR_SOYO
277
278 config MAINBOARD_VENDOR
279         string
280         default "Sun"
281         depends on VENDOR_SUNW
282
283 config MAINBOARD_VENDOR
284         string
285         default "Supermicro"
286         depends on VENDOR_SUPERMICRO
287
288 config MAINBOARD_VENDOR
289         string
290         default "Technexion"
291         depends on VENDOR_TECHNEXION
292
293 config MAINBOARD_VENDOR
294         string
295         default "Technologic"
296         depends on VENDOR_TECHNOLOGIC
297
298 config MAINBOARD_VENDOR
299         string
300         default "TeleVideo"
301         depends on VENDOR_TELEVIDEO
302
303 config MAINBOARD_VENDOR
304         string
305         default "Thomson"
306         depends on VENDOR_THOMSON
307
308 config MAINBOARD_VENDOR
309         string
310         default "Tyan"
311         depends on VENDOR_TYAN
312
313 config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
314         hex
315         default 0x10f1
316         depends on VENDOR_TYAN
317
318 config MAINBOARD_VENDOR
319         string
320         default "VIA"
321         depends on VENDOR_VIA
322
323 config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
324         hex
325         default 0x1019
326         depends on VENDOR_VIA
327
328 source "src/mainboard/a-trend/Kconfig"
329 source "src/mainboard/abit/Kconfig"
330 source "src/mainboard/advantech/Kconfig"
331 source "src/mainboard/amd/Kconfig"
332 source "src/mainboard/arima/Kconfig"
333 source "src/mainboard/artecgroup/Kconfig"
334 source "src/mainboard/asi/Kconfig"
335 source "src/mainboard/asus/Kconfig"
336 source "src/mainboard/axus/Kconfig"
337 source "src/mainboard/azza/Kconfig"
338 source "src/mainboard/bcom/Kconfig"
339 source "src/mainboard/biostar/Kconfig"
340 source "src/mainboard/broadcom/Kconfig"
341 source "src/mainboard/compaq/Kconfig"
342 source "src/mainboard/dell/Kconfig"
343 source "src/mainboard/digitallogic/Kconfig"
344 source "src/mainboard/eaglelion/Kconfig"
345 source "src/mainboard/emulation/Kconfig"
346 source "src/mainboard/gigabyte/Kconfig"
347 source "src/mainboard/hp/Kconfig"
348 source "src/mainboard/ibm/Kconfig"
349 source "src/mainboard/iei/Kconfig"
350 source "src/mainboard/intel/Kconfig"
351 source "src/mainboard/iwill/Kconfig"
352 source "src/mainboard/jetway/Kconfig"
353 source "src/mainboard/kontron/Kconfig"
354 source "src/mainboard/lippert/Kconfig"
355 source "src/mainboard/mitac/Kconfig"
356 source "src/mainboard/msi/Kconfig"
357 source "src/mainboard/nec/Kconfig"
358 source "src/mainboard/newisys/Kconfig"
359 source "src/mainboard/nvidia/Kconfig"
360 source "src/mainboard/olpc/Kconfig"
361 source "src/mainboard/pcengines/Kconfig"
362 source "src/mainboard/rca/Kconfig"
363 source "src/mainboard/soyo/Kconfig"
364 source "src/mainboard/sunw/Kconfig"
365 source "src/mainboard/supermicro/Kconfig"
366 source "src/mainboard/technexion/Kconfig"
367 source "src/mainboard/technologic/Kconfig"
368 source "src/mainboard/televideo/Kconfig"
369 source "src/mainboard/thomson/Kconfig"
370 source "src/mainboard/tyan/Kconfig"
371 source "src/mainboard/via/Kconfig"
372
373 config BOARD_ROMSIZE_KB_128
374         bool
375 config BOARD_ROMSIZE_KB_256
376         bool
377 config BOARD_ROMSIZE_KB_512
378         bool
379 config BOARD_ROMSIZE_KB_1024
380         bool
381 config BOARD_ROMSIZE_KB_2048
382         bool
383 config BOARD_ROMSIZE_KB_4096
384         bool
385
386 # TODO: No help text possible for choice fields?
387 choice
388         prompt "ROM chip size"
389         default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
390         default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
391         default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
392         default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
393         default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
394         default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
395         help
396           Select the size of the ROM chip you intend to flash coreboot on.
397
398           The build system will take care of creating a coreboot.rom file
399           of the matching size.
400
401 config COREBOOT_ROMSIZE_KB_128
402         bool "128 KB"
403         help
404           Choose this option if you have a 128 KB ROM chip.
405
406 config COREBOOT_ROMSIZE_KB_256
407         bool "256 KB"
408         help
409           Choose this option if you have a 256 KB ROM chip.
410
411 config COREBOOT_ROMSIZE_KB_512
412         bool "512 KB"
413         help
414           Choose this option if you have a 512 KB ROM chip.
415
416 config COREBOOT_ROMSIZE_KB_1024
417         bool "1024 KB (1 MB)"
418         help
419           Choose this option if you have a 1024 KB (1 MB) ROM chip.
420
421 config COREBOOT_ROMSIZE_KB_2048
422         bool "2048 KB (2 MB)"
423         help
424           Choose this option if you have a 2048 KB (2 MB) ROM chip.
425
426 config COREBOOT_ROMSIZE_KB_4096
427         bool "4096 KB (4 MB)"
428         help
429           Choose this option if you have a 4096 KB (4 MB) ROM chip.
430
431 endchoice
432
433 # Map the config names to an integer (KB).
434 config COREBOOT_ROMSIZE_KB
435         int
436         default 128 if COREBOOT_ROMSIZE_KB_128
437         default 256 if COREBOOT_ROMSIZE_KB_256
438         default 512 if COREBOOT_ROMSIZE_KB_512
439         default 1024 if COREBOOT_ROMSIZE_KB_1024
440         default 2048 if COREBOOT_ROMSIZE_KB_2048
441         default 4096 if COREBOOT_ROMSIZE_KB_4096
442
443 # Map the config names to a hex value (bytes).
444 config ROM_SIZE
445         hex
446         default 0x20000 if COREBOOT_ROMSIZE_KB_128
447         default 0x40000 if COREBOOT_ROMSIZE_KB_256
448         default 0x80000 if COREBOOT_ROMSIZE_KB_512
449         default 0x100000 if COREBOOT_ROMSIZE_KB_1024
450         default 0x200000 if COREBOOT_ROMSIZE_KB_2048
451         default 0x400000 if COREBOOT_ROMSIZE_KB_4096
452
453 endmenu
454