db98c0fbd963a9e062af16d6210e64f6a51e3307
[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_ASROCK
20         bool "ASROCK"
21 config VENDOR_ASUS
22         bool "ASUS"
23 config VENDOR_A_TREND
24         bool "A-Trend"
25 config VENDOR_AXUS
26         bool "AXUS"
27 config VENDOR_AZZA
28         bool "AZZA"
29 config VENDOR_BCOM
30         bool "BCOM"
31 config VENDOR_BIOSTAR
32         bool "Biostar"
33 config VENDOR_BROADCOM
34         bool "Broadcom"
35 config VENDOR_COMPAQ
36         bool "Compaq"
37 config VENDOR_DELL
38         bool "Dell"
39 config VENDOR_DIGITAL_LOGIC
40         bool "DIGITAL-LOGIC"
41 config VENDOR_EAGLELION
42         bool "EagleLion"
43 config VENDOR_ECS
44         bool "ECS"
45 config VENDOR_EMULATION
46         bool "Emulation"
47 config VENDOR_GETAC
48         bool "Getac"
49 config VENDOR_GIGABYTE
50         bool "GIGABYTE"
51 config VENDOR_HP
52         bool "HP"
53 config VENDOR_IBASE
54         bool "iBase"
55 config VENDOR_IBM
56         bool "IBM"
57 config VENDOR_IEI
58         bool "IEI"
59 config VENDOR_INTEL
60         bool "Intel"
61 config VENDOR_IWILL
62         bool "IWILL"
63 config VENDOR_JETWAY
64         bool "Jetway"
65 config VENDOR_KONTRON
66         bool "Kontron"
67 config VENDOR_LANNER
68         bool "Lanner"
69 config VENDOR_LIPPERT
70         bool "Lippert"
71 config VENDOR_MITAC
72         bool "Mitac"
73 config VENDOR_MSI
74         bool "MSI"
75 config VENDOR_NEC
76         bool "NEC"
77 config VENDOR_NEWISYS
78         bool "Newisys"
79 config VENDOR_NOKIA
80         bool "Nokia"
81 config VENDOR_NVIDIA
82         bool "NVIDIA"
83 config VENDOR_OLPC
84         bool "OLPC"
85 config VENDOR_PC_ENGINES
86         bool "PC Engines"
87 config VENDOR_RCA
88         bool "RCA"
89 config VENDOR_RODA
90         bool "Roda"
91 config VENDOR_SOYO
92         bool "Soyo"
93 config VENDOR_SUNW
94         bool "Sun"
95 config VENDOR_SUPERMICRO
96         bool "Supermicro"
97 config VENDOR_TECHNEXION
98         bool "Technexion"
99 config VENDOR_TECHNOLOGIC
100         bool "Technologic"
101 config VENDOR_TELEVIDEO
102         bool "TeleVideo"
103 config VENDOR_THOMSON
104         bool "Thomson"
105 config VENDOR_TRAVERSE
106         bool "Traverse Technologies"
107 config VENDOR_TYAN
108         bool "Tyan"
109 config VENDOR_VIA
110         bool "VIA"
111 config VENDOR_WINENT
112         bool "Win Enterprises"
113 config VENDOR_WYSE
114         bool "Wyse"
115
116 endchoice
117
118 source "src/mainboard/a-trend/Kconfig"
119 source "src/mainboard/abit/Kconfig"
120 source "src/mainboard/advantech/Kconfig"
121 source "src/mainboard/amd/Kconfig"
122 source "src/mainboard/arima/Kconfig"
123 source "src/mainboard/artecgroup/Kconfig"
124 source "src/mainboard/asi/Kconfig"
125 source "src/mainboard/asrock/Kconfig"
126 source "src/mainboard/asus/Kconfig"
127 source "src/mainboard/axus/Kconfig"
128 source "src/mainboard/azza/Kconfig"
129 source "src/mainboard/bcom/Kconfig"
130 source "src/mainboard/biostar/Kconfig"
131 source "src/mainboard/broadcom/Kconfig"
132 source "src/mainboard/compaq/Kconfig"
133 source "src/mainboard/dell/Kconfig"
134 source "src/mainboard/digitallogic/Kconfig"
135 source "src/mainboard/eaglelion/Kconfig"
136 source "src/mainboard/ecs/Kconfig"
137 source "src/mainboard/emulation/Kconfig"
138 source "src/mainboard/getac/Kconfig"
139 source "src/mainboard/gigabyte/Kconfig"
140 source "src/mainboard/hp/Kconfig"
141 source "src/mainboard/ibase/Kconfig"
142 source "src/mainboard/ibm/Kconfig"
143 source "src/mainboard/iei/Kconfig"
144 source "src/mainboard/intel/Kconfig"
145 source "src/mainboard/iwill/Kconfig"
146 source "src/mainboard/jetway/Kconfig"
147 source "src/mainboard/kontron/Kconfig"
148 source "src/mainboard/lanner/Kconfig"
149 source "src/mainboard/lippert/Kconfig"
150 source "src/mainboard/mitac/Kconfig"
151 source "src/mainboard/msi/Kconfig"
152 source "src/mainboard/nec/Kconfig"
153 source "src/mainboard/newisys/Kconfig"
154 source "src/mainboard/nokia/Kconfig"
155 source "src/mainboard/nvidia/Kconfig"
156 source "src/mainboard/olpc/Kconfig"
157 source "src/mainboard/pcengines/Kconfig"
158 source "src/mainboard/rca/Kconfig"
159 source "src/mainboard/roda/Kconfig"
160 source "src/mainboard/soyo/Kconfig"
161 source "src/mainboard/sunw/Kconfig"
162 source "src/mainboard/supermicro/Kconfig"
163 source "src/mainboard/technexion/Kconfig"
164 source "src/mainboard/technologic/Kconfig"
165 source "src/mainboard/televideo/Kconfig"
166 source "src/mainboard/thomson/Kconfig"
167 source "src/mainboard/traverse/Kconfig"
168 source "src/mainboard/tyan/Kconfig"
169 source "src/mainboard/via/Kconfig"
170 source "src/mainboard/winent/Kconfig"
171 source "src/mainboard/wyse/Kconfig"
172
173 config BOARD_ROMSIZE_KB_128
174         bool
175 config BOARD_ROMSIZE_KB_256
176         bool
177 config BOARD_ROMSIZE_KB_512
178         bool
179 config BOARD_ROMSIZE_KB_1024
180         bool
181 config BOARD_ROMSIZE_KB_2048
182         bool
183 config BOARD_ROMSIZE_KB_4096
184         bool
185
186 # TODO: No help text possible for choice fields?
187 choice
188         prompt "ROM chip size"
189         default COREBOOT_ROMSIZE_KB_128 if BOARD_ROMSIZE_KB_128
190         default COREBOOT_ROMSIZE_KB_256 if BOARD_ROMSIZE_KB_256
191         default COREBOOT_ROMSIZE_KB_512 if BOARD_ROMSIZE_KB_512
192         default COREBOOT_ROMSIZE_KB_1024 if BOARD_ROMSIZE_KB_1024
193         default COREBOOT_ROMSIZE_KB_2048 if BOARD_ROMSIZE_KB_2048
194         default COREBOOT_ROMSIZE_KB_4096 if BOARD_ROMSIZE_KB_4096
195         help
196           Select the size of the ROM chip you intend to flash coreboot on.
197
198           The build system will take care of creating a coreboot.rom file
199           of the matching size.
200
201 config COREBOOT_ROMSIZE_KB_128
202         bool "128 KB"
203         help
204           Choose this option if you have a 128 KB ROM chip.
205
206 config COREBOOT_ROMSIZE_KB_256
207         bool "256 KB"
208         help
209           Choose this option if you have a 256 KB ROM chip.
210
211 config COREBOOT_ROMSIZE_KB_512
212         bool "512 KB"
213         help
214           Choose this option if you have a 512 KB ROM chip.
215
216 config COREBOOT_ROMSIZE_KB_1024
217         bool "1024 KB (1 MB)"
218         help
219           Choose this option if you have a 1024 KB (1 MB) ROM chip.
220
221 config COREBOOT_ROMSIZE_KB_2048
222         bool "2048 KB (2 MB)"
223         help
224           Choose this option if you have a 2048 KB (2 MB) ROM chip.
225
226 config COREBOOT_ROMSIZE_KB_4096
227         bool "4096 KB (4 MB)"
228         help
229           Choose this option if you have a 4096 KB (4 MB) ROM chip.
230
231 endchoice
232
233 # Map the config names to an integer (KB).
234 config COREBOOT_ROMSIZE_KB
235         int
236         default 128 if COREBOOT_ROMSIZE_KB_128
237         default 256 if COREBOOT_ROMSIZE_KB_256
238         default 512 if COREBOOT_ROMSIZE_KB_512
239         default 1024 if COREBOOT_ROMSIZE_KB_1024
240         default 2048 if COREBOOT_ROMSIZE_KB_2048
241         default 4096 if COREBOOT_ROMSIZE_KB_4096
242
243 # Map the config names to a hex value (bytes).
244 config ROM_SIZE
245         hex
246         default 0x20000 if COREBOOT_ROMSIZE_KB_128
247         default 0x40000 if COREBOOT_ROMSIZE_KB_256
248         default 0x80000 if COREBOOT_ROMSIZE_KB_512
249         default 0x100000 if COREBOOT_ROMSIZE_KB_1024
250         default 0x200000 if COREBOOT_ROMSIZE_KB_2048
251         default 0x400000 if COREBOOT_ROMSIZE_KB_4096
252
253 endmenu