blob: 241386dc988972bc3433f9bb6961d9291ca9cc7f [file] [log] [blame]
Patrick Georgi0588d192009-08-12 15:00:51 +00001##
2## This file is part of the coreboot repair project.
3##
4## Redistribution and use in source and binary forms, with or without
5## modification, are permitted provided that the following conditions
6## are met:
7## 1. Redistributions of source code must retain the above copyright
8## notice, this list of conditions and the following disclaimer.
9## 2. Redistributions in binary form must reproduce the above copyright
10## notice, this list of conditions and the following disclaimer in the
11## documentation and/or other materials provided with the distribution.
12## 3. The name of the author may not be used to endorse or promote products
13## derived from this software without specific prior written permission.
14##
15## THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18## ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25## SUCH DAMAGE.
26##
27
28mainmenu "Coreboot Configuration"
29
Uwe Hermannc04be932009-10-05 13:55:28 +000030menu "General setup"
31
32config LOCALVERSION
Uwe Hermann168b11b2009-10-07 16:15:40 +000033 string "Local version string"
Uwe Hermannc04be932009-10-05 13:55:28 +000034 help
35 Append an extra string to the end of the coreboot version.
36
Uwe Hermann168b11b2009-10-07 16:15:40 +000037 This can be useful if, for instance, you want to append the
38 respective board's hostname or some other identifying string to
39 the coreboot version number, so that you can easily distinguish
40 boot logs of different boards from each other.
41
Uwe Hermannc04be932009-10-05 13:55:28 +000042endmenu
43
Patrick Georgi0588d192009-08-12 15:00:51 +000044source src/mainboard/Kconfig
45source src/arch/i386/Kconfig
46source src/arch/ppc/Kconfig
Patrick Georgi0588d192009-08-12 15:00:51 +000047source src/northbridge/Kconfig
Myles Watson74fb8f22009-09-24 15:09:11 +000048source src/devices/Kconfig
Patrick Georgi0588d192009-08-12 15:00:51 +000049source src/southbridge/Kconfig
50source src/superio/Kconfig
51source src/cpu/Kconfig
52
Patrick Georgi0588d192009-08-12 15:00:51 +000053config PCI_BUS_SEGN_BITS
Myles Watson74fb8f22009-09-24 15:09:11 +000054 int
55 default 0
Patrick Georgi892b0912009-09-24 09:03:06 +000056
Patrick Georgi0588d192009-08-12 15:00:51 +000057config MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +000058 hex
Uwe Hermann748475b2009-10-09 11:47:21 +000059 default 0x0
Patrick Georgi0588d192009-08-12 15:00:51 +000060
61config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +000062 hex
Uwe Hermann748475b2009-10-09 11:47:21 +000063 default 0x0
Patrick Georgi0588d192009-08-12 15:00:51 +000064
65config CPU_ADDR_BITS
66 int
67 default 36
68
Patrick Georgi0e9a9252009-10-06 20:48:07 +000069config AGP_APERTURE_SIZE
70 hex
Uwe Hermann748475b2009-10-09 11:47:21 +000071 default 0x0
Patrick Georgi0e9a9252009-10-06 20:48:07 +000072
Patrick Georgi0588d192009-08-12 15:00:51 +000073config XIP_ROM_BASE
74 hex
75 default 0xfffe0000
76
77config XIP_ROM_SIZE
78 hex
79 default 0x20000
80
81config LB_CKS_RANGE_START
82 int
83 default 49
84
85config LB_CKS_RANGE_END
86 int
87 default 125
88
89config LB_CKS_LOC
90 int
91 default 126
92
93config LOGICAL_CPUS
Myles Watson45bb25f2009-09-22 18:49:08 +000094 bool
95 default y
Patrick Georgi0588d192009-08-12 15:00:51 +000096
97config PCI_ROM_RUN
Patrick Georgi698c0e0e2009-08-25 17:38:24 +000098 bool
99 default n
Patrick Georgi0588d192009-08-12 15:00:51 +0000100
Patrick Georgi0588d192009-08-12 15:00:51 +0000101config HEAP_SIZE
102 hex
103 default 0x2000
104
105config COREBOOT_V2
106 bool
107 default y
108
109config COREBOOT_V4
110 bool
111 default y
112
113config DEBUG
114 bool
115 default n
116
117config USE_PRINTK_IN_CAR
118 bool
119 default n
120
121config USE_OPTION_TABLE
122 bool
123 default n
124
125config MAX_CPUS
126 int
127 default 1
128
129config MMCONF_SUPPORT_DEFAULT
130 bool
131 default n
132
133config MMCONF_SUPPORT
134 bool
135 default n
136
137config LB_MEM_TOPK
Myles Watson3db199c2009-10-12 22:39:08 +0000138 hex
139 default 0x800
Patrick Georgi0588d192009-08-12 15:00:51 +0000140
Patrick Georgi0588d192009-08-12 15:00:51 +0000141config COMPRESSED_PAYLOAD_LZMA
142 bool
143 default y
144
145config COMPRESSED_PAYLOAD_NRV2B
146 bool
147 default n
148
Patrick Georgi91ff0df2009-10-09 12:32:52 +0000149config ATI_RAGE_XL
150 bool
151 default n
152
Patrick Georgi0588d192009-08-12 15:00:51 +0000153source src/console/Kconfig
154
155config HAVE_ACPI_RESUME
156 bool
157 default n
158
159config ACPI_SSDTX_NUM
160 int
161 default 0
162
Patrick Georgi0588d192009-08-12 15:00:51 +0000163config HAVE_FALLBACK_BOOT
164 bool
165 default y
166
167config USE_FALLBACK_IMAGE
168 bool
169 default y
170
Patrick Georgi37ea3412009-10-03 21:04:13 +0000171config HAVE_FAILOVER_BOOT
172 bool
173 default n
174
175config USE_FAILOVER_IMAGE
176 bool
177 default n
178
Patrick Georgi0588d192009-08-12 15:00:51 +0000179config HAVE_HARD_RESET
180 bool
Uwe Hermann748475b2009-10-09 11:47:21 +0000181 default n
Patrick Georgi0588d192009-08-12 15:00:51 +0000182
183config HAVE_INIT_TIMER
184 bool
185 default n
186
187config HAVE_MAINBOARD_RESOURCES
188 bool
189 default n
190
191config HAVE_MOVNTI
192 bool
193 default y
194
Patrick Georgi0588d192009-08-12 15:00:51 +0000195config HAVE_OPTION_TABLE
196 bool
197 default y
198
Patrick Georgi0588d192009-08-12 15:00:51 +0000199config PIRQ_ROUTE
200 bool
201 default n
202
203config HAVE_SMI_HANDLER
204 bool
205 default n
206
207config PCI_IO_CFG_EXT
208 bool
209 default n
210
211config IOAPIC
212 bool
213 default n
214
Uwe Hermann70b0cf22009-10-04 17:15:39 +0000215config VIDEO_MB
216 int
217 default 0
218
Myles Watson45bb25f2009-09-22 18:49:08 +0000219config USE_WATCHDOG_ON_BOOT
220 bool
221 default n
222
223config VGA
224 bool
225 default n
226 help
227 Build board-specific VGA code.
228
229config GFXUMA
230 bool
231 default n
232 help
233 Enable Unified Memory Architecture for graphics.
234
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000235# TODO
236# menu "Drivers"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000237#
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000238# endmenu
Patrick Georgi0588d192009-08-12 15:00:51 +0000239
Myles Watsonb8e20272009-10-15 13:35:47 +0000240config HAVE_ACPI_TABLES
241 bool
242
243config HAVE_MP_TABLE
244 bool
245
246config HAVE_PIRQ_TABLE
247 bool
248
249config HAVE_HIGH_TABLES
250 bool
251
Uwe Hermann168b11b2009-10-07 16:15:40 +0000252menu "System tables"
Myles Watson45bb25f2009-09-22 18:49:08 +0000253
254config HAVE_LOW_TABLES
255 bool
256 default y
257
Myles Watsonb8e20272009-10-15 13:35:47 +0000258config WRITE_HIGH_TABLES
Myles Watson45bb25f2009-09-22 18:49:08 +0000259 bool "Write 'high' tables to avoid being overwritten in F segment"
Myles Watsonb8e20272009-10-15 13:35:47 +0000260 depends on HAVE_HIGH_TABLES
Myles Watson45bb25f2009-09-22 18:49:08 +0000261 default y
262
263config MULTIBOOT
Uwe Hermann168b11b2009-10-07 16:15:40 +0000264 bool "Generate Multiboot tables (for GRUB2)"
Myles Watson45bb25f2009-09-22 18:49:08 +0000265 default n
266
Myles Watsonb8e20272009-10-15 13:35:47 +0000267config GENERATE_ACPI_TABLES
268 depends on HAVE_ACPI_TABLES
Myles Watson45bb25f2009-09-22 18:49:08 +0000269 bool "Generate ACPI tables"
Myles Watsonb8e20272009-10-15 13:35:47 +0000270 default y
Myles Watson45bb25f2009-09-22 18:49:08 +0000271
Myles Watsonb8e20272009-10-15 13:35:47 +0000272config GENERATE_MP_TABLE
273 depends on HAVE_MP_TABLE
Myles Watson45bb25f2009-09-22 18:49:08 +0000274 bool "Generate an MP table"
Myles Watsonb8e20272009-10-15 13:35:47 +0000275 default y
Myles Watson45bb25f2009-09-22 18:49:08 +0000276
Myles Watsonb8e20272009-10-15 13:35:47 +0000277config GENERATE_PIRQ_TABLE
278 depends on HAVE_PIRQ_TABLE
Myles Watson45bb25f2009-09-22 18:49:08 +0000279 bool "Generate a PIRQ table"
Myles Watsonb8e20272009-10-15 13:35:47 +0000280 default y
Myles Watson45bb25f2009-09-22 18:49:08 +0000281
282endmenu
283
Patrick Georgi0588d192009-08-12 15:00:51 +0000284menu "Payload"
285
Patrick Georgi0588d192009-08-12 15:00:51 +0000286choice
Uwe Hermann168b11b2009-10-07 16:15:40 +0000287 prompt "Add a payload"
Patrick Georgi0588d192009-08-12 15:00:51 +0000288 default PAYLOAD_NONE
289
Uwe Hermann168b11b2009-10-07 16:15:40 +0000290config PAYLOAD_NONE
291 bool "None"
292 help
293 Select this option if you want to create an "empty" coreboot
294 ROM image for a certain mainboard, i.e. a coreboot ROM image
295 which does not yet contain a payload.
296
297 For such an image to be useful, you have to use 'cbfstool'
298 to add a payload to the ROM image later.
299
Patrick Georgi0588d192009-08-12 15:00:51 +0000300config PAYLOAD_ELF
Uwe Hermann168b11b2009-10-07 16:15:40 +0000301 bool "An ELF executable payload"
Patrick Georgi0588d192009-08-12 15:00:51 +0000302 help
303 Select this option if you have a payload image (an ELF file)
304 which coreboot should run as soon as the basic hardware
305 initialization is completed.
306
307 You will be able to specify the location and file name of the
308 payload image later.
Patrick Georgi0588d192009-08-12 15:00:51 +0000309
310endchoice
311
Patrick Georgi0588d192009-08-12 15:00:51 +0000312config FALLBACK_PAYLOAD_FILE
Cristi Magherusanb5034d42009-08-17 14:47:32 +0000313 string "Payload path and filename"
Patrick Georgi0588d192009-08-12 15:00:51 +0000314 depends on PAYLOAD_ELF
315 default "payload.elf"
316 help
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000317 The path and filename of the ELF executable file to use as payload.
Patrick Georgi0588d192009-08-12 15:00:51 +0000318
Uwe Hermann168b11b2009-10-07 16:15:40 +0000319# TODO: Defined if no payload? Breaks build?
320config COMPRESSED_PAYLOAD_LZMA
321 bool "Use LZMA compression for payloads"
322 default y
323 depends on PAYLOAD_ELF
324 help
325 In order to reduce the size payloads take up in the ROM chip
326 coreboot can compress them using the LZMA algorithm.
327
Peter Stugea758ca22009-09-17 16:21:31 +0000328endmenu
329
330menu "VGA BIOS"
331
332config VGA_BIOS
333 bool "Add a VGA BIOS image"
334 help
335 Select this option if you have a VGA BIOS image that you would
336 like to add to your ROM.
337
338 You will be able to specify the location and file name of the
339 image later.
340
Cristi Magherusan488c36c2009-08-17 14:46:13 +0000341config FALLBACK_VGA_BIOS_FILE
342 string "VGA BIOS path and filename"
343 depends on VGA_BIOS
344 default "vgabios.bin"
345 help
346 The path and filename of the file to use as VGA BIOS.
347
348config FALLBACK_VGA_BIOS_ID
349 string "VGA BIOS ID"
350 depends on VGA_BIOS
351 default "1106,3230"
352 help
Uwe Hermann168b11b2009-10-07 16:15:40 +0000353 The comma-separated PCI vendor and device ID that would associate
354 your VGA BIOS to your video card.
355
356 Example: 1106,3230
357
358 In the above example 1106 is the PCI vendor ID (in hex, but without
359 the "0x" prefix) and 3230 specifies the PCI device ID of the
360 video card (also in hex, without "0x" prefix).
Cristi Magherusan488c36c2009-08-17 14:46:13 +0000361
Patrick Georgi0588d192009-08-12 15:00:51 +0000362endmenu
363
Uwe Hermann168b11b2009-10-07 16:15:40 +0000364menu "Debugging"
365
366# TODO: Better help text and detailed instructions.
Patrick Georgi0588d192009-08-12 15:00:51 +0000367config GDB_STUB
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000368 bool "GDB debugging support"
Patrick Georgi0588d192009-08-12 15:00:51 +0000369 default y
370 help
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000371 If enabled, you will be able to set breakpoints for gdb debugging.
372 See src/arch/i386/lib/c_start.S for details.
Patrick Georgi0588d192009-08-12 15:00:51 +0000373
Uwe Hermann168b11b2009-10-07 16:15:40 +0000374endmenu
375