summaryrefslogtreecommitdiff
path: root/src/mainboard/Kconfig
blob: 3c607c8acaeab7eea226d2d5f539364bc64e1e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
menu "Mainboard"

choice
	prompt "Mainboard vendor"
	default VENDOR_EMULATION

config VENDOR_ABIT
	bool "Abit"
config VENDOR_ADVANTECH
	bool "Advantech"
config VENDOR_AMD
	bool "AMD"
config VENDOR_ARIMA
	bool "Arima"
config VENDOR_ARTEC_GROUP
	bool "Artec Group"
config VENDOR_ASI
	bool "ASI"
config VENDOR_ASUS
	bool "ASUS"
config VENDOR_A_TREND
	bool "A-Trend"
config VENDOR_AXUS
	bool "AXUS"
config VENDOR_AZZA
	bool "AZZA"
config VENDOR_BCOM
	bool "BCOM"
config VENDOR_BIOSTAR
	bool "Biostar"
config VENDOR_BROADCOM
	bool "Broadcom"
config VENDOR_COMPAQ
	bool "Compaq"
config VENDOR_DELL
	bool "Dell"
config VENDOR_DIGITAL_LOGIC
	bool "DIGITAL-LOGIC"
config VENDOR_EAGLELION
	bool "EagleLion"
config VENDOR_EMULATION
	bool "Emulation"
config VENDOR_GIGABYTE
	bool "GIGABYTE"
config VENDOR_HP
	bool "HP"
config VENDOR_IBM
	bool "IBM"
config VENDOR_IEI
	bool "IEI"
config VENDOR_INTEL
	bool "Intel"
config VENDOR_IWILL
	bool "IWILL"
config VENDOR_JETWAY
	bool "Jetway"
config VENDOR_KONTRON
	bool "Kontron"
config VENDOR_LIPPERT
	bool "Lippert"
config VENDOR_MITAC
	bool "Mitac"
config VENDOR_MSI
	bool "MSI"
config VENDOR_NEC
	bool "NEC"
config VENDOR_NEWISYS
	bool "Newisys"
config VENDOR_NVIDIA
	bool "NVIDIA"
config VENDOR_OLPC
	bool "OLPC"
config VENDOR_PC_ENGINES
	bool "PC Engines"
config VENDOR_RCA
	bool "RCA"
config VENDOR_RODA
	bool "Roda"
config VENDOR_SOYO
	bool "Soyo"
config VENDOR_SUNW
	bool "Sun"
config VENDOR_SUPERMICRO
	bool "Supermicro"
config VENDOR_TECHNEXION
	bool "Technexion"
config VENDOR_TECHNOLOGIC
	bool "Technologic"
config VENDOR_TELEVIDEO
	bool "TeleVideo"
config VENDOR_THOMSON
	bool "Thomson"
config VENDOR_TYAN
	bool "Tyan"
config VENDOR_VIA
	bool "VIA"

endchoice

config MAINBOARD_VENDOR
	string
	default "Abit"
	depends on VENDOR_ABIT

config MAINBOARD_VENDOR
	string
	default "Advantech"
	depends on VENDOR_ADVANTECH

config MAINBOARD_VENDOR
	string
	default "AMD"
	depends on VENDOR_AMD

config MAINBOARD_VENDOR
	string
	default "Arima"
	depends on VENDOR_ARIMA

config MAINBOARD_VENDOR
	string
	default "Artec Group"
	depends on VENDOR_ARTEC_GROUP

config MAINBOARD_VENDOR
	string
	default "ASI"
	depends on VENDOR_ASI

config MAINBOARD_VENDOR
	string
	default "ASUS"
	depends on VENDOR_ASUS

config MAINBOARD_VENDOR
	string
	default "A-Trend"
	depends on VENDOR_A_TREND

config MAINBOARD_VENDOR
	string
	default "AXUS"
	depends on VENDOR_AXUS

config MAINBOARD_VENDOR
	string
	default "AZZA"
	depends on VENDOR_AZZA

config MAINBOARD_VENDOR
	string
	default "BCOM"
	depends on VENDOR_BCOM

config MAINBOARD_VENDOR
	string
	default "Biostar"
	depends on VENDOR_BIOSTAR

config MAINBOARD_VENDOR
	string
	default "Broadcom"
	depends on VENDOR_BROADCOM

config MAINBOARD_VENDOR
	string
	default "Compaq"
	depends on VENDOR_COMPAQ

config MAINBOARD_VENDOR
	string
	default "Dell"
	depends on VENDOR_DELL

config MAINBOARD_VENDOR
	string
	default "DIGITAL-LOGIC"
	depends on VENDOR_DIGITAL_LOGIC

config MAINBOARD_VENDOR
	string
	default "EagleLion"
	depends on VENDOR_EAGLELION

config MAINBOARD_VENDOR
	string
	default "Emulation"
	depends on VENDOR_EMULATION

config MAINBOARD_VENDOR
	string
	default "GIGABYTE"
	depends on VENDOR_GIGABYTE

config MAINBOARD_VENDOR
	string
	default "HP"
	depends on VENDOR_HP

config MAINBOARD_VENDOR
	string
	default "IBM"
	depends on VENDOR_IBM

config MAINBOARD_VENDOR
	string
	default "IEI"
	depends on VENDOR_IEI

config MAINBOARD_VENDOR
	string
	default "Intel"
	depends on VENDOR_INTEL

config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
	hex
	default 0x8086
	depends on VENDOR_INTEL

config MAINBOARD_VENDOR
	string
	default "IWILL"
	depends on VENDOR_IWILL

config MAINBOARD_VENDOR
	string
	default "Jetway"
	depends on VENDOR_JETWAY

config MAINBOARD_VENDOR
	string
	default "Kontron"
	depends on VENDOR_KONTRON

config MAINBOARD_VENDOR
	string
	default "Lippert"
	depends on VENDOR_LIPPERT

config MAINBOARD_VENDOR
	string
	default "Mitac"
	depends on VENDOR_MITAC

config MAINBOARD_VENDOR
	string
	default "MSI"
	depends on VENDOR_MSI

config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
	hex
	default 0x1462
	depends on VENDOR_MSI

config MAINBOARD_VENDOR
	string
	default "NEC"
	depends on VENDOR_NEC

config MAINBOARD_VENDOR
	string
	default "Newisys"
	depends on VENDOR_NEWISYS

config MAINBOARD_VENDOR
	string
	default "NVIDIA"
	depends on VENDOR_NVIDIA

config MAINBOARD_VENDOR
	string
	default "OLPC"
	depends on VENDOR_OLPC

config MAINBOARD_VENDOR
	string
	default "PC Engines"
	depends on VENDOR_PC_ENGINES

config MAINBOARD_VENDOR
	string
	default "RCA"
	depends on VENDOR_RCA

config MAINBOARD_VENDOR
	string
	default "Roda"
	depends on VENDOR_RODA

config MAINBOARD_VENDOR
	string
	default "Soyo"
	depends on VENDOR_SOYO

config MAINBOARD_VENDOR
	string
	default "Sun"
	depends on VENDOR_SUNW

config MAINBOARD_VENDOR
	string
	default "Supermicro"
	depends on VENDOR_SUPERMICRO

config MAINBOARD_VENDOR
	string
	default "Technexion"
	depends on VENDOR_TECHNEXION

config MAINBOARD_VENDOR
	string
	default "Technologic"
	depends on VENDOR_TECHNOLOGIC

config MAINBOARD_VENDOR
	string
	default "TeleVideo"
	depends on VENDOR_TELEVIDEO

config MAINBOARD_VENDOR
	string
	default "Thomson"
	depends on VENDOR_THOMSON

config MAINBOARD_VENDOR
	string
	default "Tyan"
	depends on VENDOR_TYAN

config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
	hex
	default 0x10f1
	depends on VENDOR_TYAN

config MAINBOARD_VENDOR
	string
	default "VIA"
	depends on VENDOR_VIA

config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
	hex
	default 0x1019
	depends on VENDOR_VIA

source "src/mainboard/a-trend/Kconfig"
source "src/mainboard/abit/Kconfig"
source "src/mainboard/advantech/Kconfig"
source "src/mainboard/amd/Kconfig"
source "src/mainboard/arima/Kconfig"
source "src/mainboard/artecgroup/Kconfig"
source "src/mainboard/asi/Kconfig"
source "src/mainboard/asus/Kconfig"
source "src/mainboard/axus/Kconfig"
source "src/mainboard/azza/Kconfig"
source "src/mainboard/bcom/Kconfig"
source "src/mainboard/biostar/Kconfig"
source "src/mainboard/broadcom/Kconfig"
source "src/mainboard/compaq/Kconfig"
source "src/mainboard/dell/Kconfig"
source "src/mainboard/digitallogic/Kconfig"
source "src/mainboard/eaglelion/Kconfig"
source "src/mainboard/emulation/Kconfig"
source "src/mainboard/gigabyte/Kconfig"
source "src/mainboard/hp/Kconfig"
source "src/mainboard/ibm/Kconfig"
source "src/mainboard/iei/Kconfig"
source "src/mainboard/intel/Kconfig"
source "src/mainboard/iwill/Kconfig"
source "src/mainboard/jetway/Kconfig"
source "src/mainboard/kontron/Kconfig"
source "src/mainboard/lippert/Kconfig"
source "src/mainboard/mitac/Kconfig"
source "src/mainboard/msi/Kconfig"
source "src/mainboard/nec/Kconfig"
source "src/mainboard/newisys/Kconfig"
source "src/mainboard/nvidia/Kconfig"
source "src/mainboard/olpc/Kconfig"
source "src/mainboard/pcengines/Kconfig"
source "src/mainboard/rca/Kconfig"
source "src/mainboard/roda/Kconfig"
source "src/mainboard/soyo/Kconfig"
source "src/mainboard/sunw/Kconfig"
source "src/mainboard/supermicro/Kconfig"
source "src/mainboard/technexion/Kconfig"
source "src/mainboard/technologic/Kconfig"
source "src/mainboard/televideo/Kconfig"
source "src/mainboard/thomson/Kconfig"
source "src/mainboard/tyan/Kconfig"
source "src/mainboard/via/Kconfig"

config BOARD_ROMSIZE_KB_128
	bool
config BOARD_ROMSIZE_KB_256
	bool
config BOARD_ROMSIZE_KB_512
	bool
config BOARD_ROMSIZE_KB_1024
	bool
config BOARD_ROMSIZE_KB_2048
	bool
config BOARD_ROMSIZE_KB_4096
	bool

# TODO: No help text possible for choice fields?
choice
	prompt "ROM chip size"
	default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
	default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
	default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
	default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
	default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
	default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
	help
	  Select the size of the ROM chip you intend to flash coreboot on.

	  The build system will take care of creating a coreboot.rom file
	  of the matching size.

config COREBOOT_ROMSIZE_KB_128
	bool "128 KB"
	help
	  Choose this option if you have a 128 KB ROM chip.

config COREBOOT_ROMSIZE_KB_256
	bool "256 KB"
	help
	  Choose this option if you have a 256 KB ROM chip.

config COREBOOT_ROMSIZE_KB_512
	bool "512 KB"
	help
	  Choose this option if you have a 512 KB ROM chip.

config COREBOOT_ROMSIZE_KB_1024
	bool "1024 KB (1 MB)"
	help
	  Choose this option if you have a 1024 KB (1 MB) ROM chip.

config COREBOOT_ROMSIZE_KB_2048
	bool "2048 KB (2 MB)"
	help
	  Choose this option if you have a 2048 KB (2 MB) ROM chip.

config COREBOOT_ROMSIZE_KB_4096
	bool "4096 KB (4 MB)"
	help
	  Choose this option if you have a 4096 KB (4 MB) ROM chip.

endchoice

# Map the config names to an integer (KB).
config COREBOOT_ROMSIZE_KB
	int
	default 128 if COREBOOT_ROMSIZE_KB_128
	default 256 if COREBOOT_ROMSIZE_KB_256
	default 512 if COREBOOT_ROMSIZE_KB_512
	default 1024 if COREBOOT_ROMSIZE_KB_1024
	default 2048 if COREBOOT_ROMSIZE_KB_2048
	default 4096 if COREBOOT_ROMSIZE_KB_4096

# Map the config names to a hex value (bytes).
config ROM_SIZE
	hex
	default 0x20000 if COREBOOT_ROMSIZE_KB_128
	default 0x40000 if COREBOOT_ROMSIZE_KB_256
	default 0x80000 if COREBOOT_ROMSIZE_KB_512
	default 0x100000 if COREBOOT_ROMSIZE_KB_1024
	default 0x200000 if COREBOOT_ROMSIZE_KB_2048
	default 0x400000 if COREBOOT_ROMSIZE_KB_4096

endmenu