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