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