blob: 74b892e15a93bdca9f2d7e64f38212e557842d7e [file] [log] [blame]
Patrick Georgi0588d192009-08-12 15:00:51 +00001##
Stefan Reinauer16f515a2010-01-20 18:44:30 +00002## This file is part of the coreboot project.
Patrick Georgi0588d192009-08-12 15:00:51 +00003##
Alexandru Gagniuc70c660f2012-08-23 02:32:58 -05004## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
Stefan Reinauer16f515a2010-01-20 18:44:30 +00005## Copyright (C) 2009-2010 coresystems GmbH
Patrick Georgi0588d192009-08-12 15:00:51 +00006##
Stefan Reinauer16f515a2010-01-20 18:44:30 +00007## This program is free software; you can redistribute it and/or modify
8## it under the terms of the GNU General Public License as published by
9## the Free Software Foundation; version 2 of the License.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
Patrick Georgi0588d192009-08-12 15:00:51 +000016
Uwe Hermannad8c95f2012-04-12 22:00:03 +020017mainmenu "coreboot configuration"
Patrick Georgi0588d192009-08-12 15:00:51 +000018
Uwe Hermannc04be932009-10-05 13:55:28 +000019menu "General setup"
20
21config LOCALVERSION
Uwe Hermann168b11b2009-10-07 16:15:40 +000022 string "Local version string"
Uwe Hermannc04be932009-10-05 13:55:28 +000023 help
24 Append an extra string to the end of the coreboot version.
25
Uwe Hermann168b11b2009-10-07 16:15:40 +000026 This can be useful if, for instance, you want to append the
27 respective board's hostname or some other identifying string to
28 the coreboot version number, so that you can easily distinguish
29 boot logs of different boards from each other.
30
Patrick Georgi4b8a2412010-02-09 19:35:16 +000031config CBFS_PREFIX
32 string "CBFS prefix to use"
33 default "fallback"
34 help
35 Select the prefix to all files put into the image. It's "fallback"
36 by default, "normal" is a common alternative.
37
Patrick Georgi23d89cc2010-03-16 01:17:19 +000038choice
Uwe Hermannad8c95f2012-04-12 22:00:03 +020039 prompt "Compiler to use"
Patrick Georgi23d89cc2010-03-16 01:17:19 +000040 default COMPILER_GCC
41 help
42 This option allows you to select the compiler used for building
43 coreboot.
Martin Rotha5a628e82016-01-19 12:01:09 -070044 You must build the coreboot crosscompiler for the board that you
45 have selected.
46
47 To build all the GCC crosscompilers (takes a LONG time), run:
48 make crossgcc
49
50 For help on individual architectures, run the command:
51 make help_toolchain
Patrick Georgi23d89cc2010-03-16 01:17:19 +000052
53config COMPILER_GCC
54 bool "GCC"
Uwe Hermannad8c95f2012-04-12 22:00:03 +020055 help
56 Use the GNU Compiler Collection (GCC) to build coreboot.
57
58 For details see http://gcc.gnu.org.
59
Patrick Georgi23d89cc2010-03-16 01:17:19 +000060config COMPILER_LLVM_CLANG
Martin Rotha5a628e82016-01-19 12:01:09 -070061 bool "LLVM/clang (TESTING ONLY - Not currently working)"
Uwe Hermannad8c95f2012-04-12 22:00:03 +020062 help
Martin Rotha5a628e82016-01-19 12:01:09 -070063 Use LLVM/clang to build coreboot. To use this, you must build the
64 coreboot version of the clang compiler. Run the command
65 make clang
66 Note that this option is not currently working correctly and should
67 really only be selected if you're trying to work on getting clang
68 operational.
Uwe Hermannad8c95f2012-04-12 22:00:03 +020069
70 For details see http://clang.llvm.org.
71
Patrick Georgi23d89cc2010-03-16 01:17:19 +000072endchoice
73
Patrick Georgi9b0de712013-12-29 18:45:23 +010074config ANY_TOOLCHAIN
75 bool "Allow building with any toolchain"
76 default n
77 depends on COMPILER_GCC
78 help
79 Many toolchains break when building coreboot since it uses quite
80 unusual linker features. Unless developers explicitely request it,
81 we'll have to assume that they use their distro compiler by mistake.
82 Make sure that using patched compilers is a conscious decision.
83
Patrick Georgi516a2a72010-03-25 21:45:25 +000084config CCACHE
Uwe Hermannad8c95f2012-04-12 22:00:03 +020085 bool "Use ccache to speed up (re)compilation"
Patrick Georgi516a2a72010-03-25 21:45:25 +000086 default n
87 help
88 Enables the use of ccache for faster builds.
Uwe Hermannad8c95f2012-04-12 22:00:03 +020089
90 Requires the ccache utility in your system $PATH.
91
92 For details see https://ccache.samba.org.
Patrick Georgi516a2a72010-03-25 21:45:25 +000093
Sol Boucher69b88bf2015-02-26 11:47:19 -080094config FMD_GENPARSER
95 bool "Generate flashmap descriptor parser using flex and bison"
96 default n
Sol Boucher69b88bf2015-02-26 11:47:19 -080097 help
98 Enable this option if you are working on the flashmap descriptor
99 parser and made changes to fmd_scanner.l or fmd_parser.y.
100
101 Otherwise, say N to use the provided pregenerated scanner/parser.
102
Stefan Reinauer9bf78102010-08-09 13:28:18 +0000103config SCONFIG_GENPARSER
104 bool "Generate SCONFIG parser using flex and bison"
105 default n
Stefan Reinauer9bf78102010-08-09 13:28:18 +0000106 help
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200107 Enable this option if you are working on the sconfig device tree
Sol Boucher69b88bf2015-02-26 11:47:19 -0800108 parser and made changes to sconfig.l or sconfig.y.
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200109
Sol Boucher69b88bf2015-02-26 11:47:19 -0800110 Otherwise, say N to use the provided pregenerated scanner/parser.
Stefan Reinauer9bf78102010-08-09 13:28:18 +0000111
Joe Korty6d772522010-05-19 18:41:15 +0000112config USE_OPTION_TABLE
113 bool "Use CMOS for configuration values"
Edwin Beasanteb50c7d2010-07-06 21:05:04 +0000114 depends on HAVE_OPTION_TABLE
Joe Korty6d772522010-05-19 18:41:15 +0000115 help
116 Enable this option if coreboot shall read options from the "CMOS"
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200117 NVRAM instead of using hard-coded values.
Joe Korty6d772522010-05-19 18:41:15 +0000118
Timothy Pearsonf20c6e82015-02-14 16:15:31 -0600119config STATIC_OPTION_TABLE
120 bool "Load default configuration values into CMOS on each boot"
Timothy Pearsonf20c6e82015-02-14 16:15:31 -0600121 depends on USE_OPTION_TABLE
122 help
123 Enable this option to reset "CMOS" NVRAM values to default on
124 every boot. Use this if you want the NVRAM configuration to
125 never be modified from its default values.
126
Sven Schnelle8eee19d2011-05-02 19:53:04 +0000127config COMPRESS_RAMSTAGE
128 bool "Compress ramstage with LZMA"
Martin Roth75e5cb72016-12-15 15:05:37 -0700129 # Default value set at the end of the file
Sven Schnelle8eee19d2011-05-02 19:53:04 +0000130 help
131 Compress ramstage to save memory in the flash image. Note
132 that decompression might slow down booting if the boot flash
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200133 is connected through a slow link (i.e. SPI).
Sven Schnelle8eee19d2011-05-02 19:53:04 +0000134
Julius Werner09f29212015-09-29 13:51:35 -0700135config COMPRESS_PRERAM_STAGES
136 bool "Compress romstage and verstage with LZ4"
Martin Rothf2e04612016-03-09 15:50:23 -0700137 depends on !ARCH_X86
Martin Roth75e5cb72016-12-15 15:05:37 -0700138 # Default value set at the end of the file
Julius Werner09f29212015-09-29 13:51:35 -0700139 help
140 Compress romstage and (if it exists) verstage with LZ4 to save flash
141 space and speed up boot, since the time for reading the image from SPI
142 (and in the vboot case verifying it) is usually much greater than the
143 time spent decompressing. Doesn't work for XIP stages (assume all
144 ARCH_X86 for now) for obvious reasons.
145
Cristian Măgherușan-Stanciud367b002011-06-19 03:03:28 +0200146config INCLUDE_CONFIG_FILE
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200147 bool "Include the coreboot .config file into the ROM image"
Martin Roth75e5cb72016-12-15 15:05:37 -0700148 # Default value set at the end of the file
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200149 help
150 Include the .config file that was used to compile coreboot
151 in the (CBFS) ROM image. This is useful if you want to know which
152 options were used to build a specific coreboot.rom image.
153
Daniele Forsi53847a22014-07-22 18:00:56 +0200154 Saying Y here will increase the image size by 2-3KB.
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200155
156 You can use the following command to easily list the options:
157
158 grep -a CONFIG_ coreboot.rom
159
160 Alternatively, you can also use cbfstool to print the image
161 contents (including the raw 'config' item we're looking for).
162
163 Example:
164
165 $ cbfstool coreboot.rom print
166 coreboot.rom: 4096 kB, bootblocksize 1008, romsize 4194304,
167 offset 0x0
168 Alignment: 64 bytes
Steve Goodrichf0269122012-05-18 11:18:47 -0600169
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200170 Name Offset Type Size
171 cmos_layout.bin 0x0 cmos layout 1159
172 fallback/romstage 0x4c0 stage 339756
Daniele Forsi53847a22014-07-22 18:00:56 +0200173 fallback/ramstage 0x53440 stage 186664
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200174 fallback/payload 0x80dc0 payload 51526
175 config 0x8d740 raw 3324
176 (empty) 0x8e480 null 3610440
Cristian Măgherușan-Stanciud367b002011-06-19 03:03:28 +0200177
Vadim Bendebury9202473d2011-09-21 14:46:43 -0700178config COLLECT_TIMESTAMPS
179 bool "Create a table of timestamps collected during boot"
Vadim Bendebury9202473d2011-09-21 14:46:43 -0700180 help
Uwe Hermannad8c95f2012-04-12 22:00:03 +0200181 Make coreboot create a table of timer-ID/timer-value pairs to
182 allow measuring time spent at different phases of the boot process.
183
Patrick Georgi7e9b9d82012-04-30 21:06:10 +0200184config USE_BLOBS
185 bool "Allow use of binary-only repository"
Patrick Georgi7e9b9d82012-04-30 21:06:10 +0200186 help
187 This draws in the blobs repository, which contains binary files that
188 might be required for some chipsets or boards.
189 This flag ensures that a "Free" option remains available for users.
190
Stefan Reinauerd37ab452012-12-18 16:23:28 -0800191config COVERAGE
192 bool "Code coverage support"
193 depends on COMPILER_GCC
Stefan Reinauerd37ab452012-12-18 16:23:28 -0800194 help
195 Add code coverage support for coreboot. This will store code
196 coverage information in CBMEM for extraction from user space.
197 If unsure, say N.
198
Stefan Reinauer58470e32014-10-17 13:08:36 +0200199config RELOCATABLE_RAMSTAGE
Vladimir Serbinenko633352c2015-05-30 22:21:37 +0200200 depends on EARLY_CBMEM_INIT
Stefan Reinauer58470e32014-10-17 13:08:36 +0200201 bool "Build the ramstage to be relocatable in 32-bit address space."
Vladimir Serbinenko633352c2015-05-30 22:21:37 +0200202 select RELOCATABLE_MODULES
Stefan Reinauer58470e32014-10-17 13:08:36 +0200203 help
204 The reloctable ramstage support allows for the ramstage to be built
205 as a relocatable module. The stage loader can identify a place
206 out of the OS way so that copying memory is unnecessary during an S3
207 wake. When selecting this option the romstage is responsible for
208 determing a stack location to use for loading the ramstage.
209
210config CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM
211 depends on RELOCATABLE_RAMSTAGE
Arthur Heymans410f2562017-01-25 15:27:52 +0100212 bool
Stefan Reinauer58470e32014-10-17 13:08:36 +0200213 help
214 The relocated ramstage is saved in an area specified by the
215 by the board and/or chipset.
216
Stefan Reinauer58470e32014-10-17 13:08:36 +0200217config UPDATE_IMAGE
218 bool "Update existing coreboot.rom image"
Stefan Reinauer58470e32014-10-17 13:08:36 +0200219 help
220 If this option is enabled, no new coreboot.rom file
221 is created. Instead it is expected that there already
222 is a suitable file for further processing.
223 The bootblock will not be modified.
224
Martin Roth5942e062016-01-20 14:59:21 -0700225 If unsure, select 'N'
226
Stefan Reinauerd06258c2015-03-26 16:29:00 -0700227config BOARD_ID_STRING
228 string "Board ID"
Martin Roth75e5cb72016-12-15 15:05:37 -0700229 # Default value set at the end of the file
Stefan Reinauerd06258c2015-03-26 16:29:00 -0700230 depends on BOARD_ID_MANUAL
231 help
232 This string is placed in the 'board_id' CBFS file for indicating
233 board type.
234
David Hendricks627b3bd2014-11-03 17:42:09 -0800235config RAM_CODE_SUPPORT
Vladimir Serbinenko8ef9c562015-05-30 22:55:44 +0200236 bool
David Hendricks627b3bd2014-11-03 17:42:09 -0800237 help
238 If enabled, coreboot discovers RAM configuration (value obtained by
239 reading board straps) and stores it in coreboot table.
240
Konstantin Aladyshev6544cb32015-01-24 18:52:10 +0400241config BOOTSPLASH_IMAGE
242 bool "Add a bootsplash image"
243 help
244 Select this option if you have a bootsplash image that you would
245 like to add to your ROM.
246
247 This will only add the image to the ROM. To actually run it check
248 options under 'Display' section.
249
250config BOOTSPLASH_FILE
251 string "Bootsplash path and filename"
252 depends on BOOTSPLASH_IMAGE
Martin Roth75e5cb72016-12-15 15:05:37 -0700253 # Default value set at the end of the file
Konstantin Aladyshev6544cb32015-01-24 18:52:10 +0400254 help
255 The path and filename of the file to use as graphical bootsplash
256 screen. The file format has to be jpg.
257
Uwe Hermannc04be932009-10-05 13:55:28 +0000258endmenu
259
Martin Roth026e4dc2015-06-19 23:17:15 -0600260menu "Mainboard"
261
Stefan Reinauera48ca842015-04-04 01:58:28 +0200262source "src/mainboard/Kconfig"
Stefan Reinauer8aedcbc2010-12-16 23:37:17 +0000263
Marshall Dawsone9375132016-09-04 08:38:33 -0600264config DEVICETREE
265 string
266 default "devicetree.cb"
267 help
268 This symbol allows mainboards to select a different file under their
269 mainboard directory for the devicetree.cb file. This allows the board
270 variants that need different devicetrees to be in the same directory.
271
272 Examples: "devicetree.variant.cb"
273 "variant/devicetree.cb"
274
Martin Roth026e4dc2015-06-19 23:17:15 -0600275config CBFS_SIZE
276 hex "Size of CBFS filesystem in ROM"
Martin Roth75e5cb72016-12-15 15:05:37 -0700277 # Default value set at the end of the file
Martin Roth026e4dc2015-06-19 23:17:15 -0600278 help
279 This is the part of the ROM actually managed by CBFS, located at the
280 end of the ROM (passed through cbfstool -o) on x86 and at at the start
281 of the ROM (passed through cbfstool -s) everywhere else. It defaults
282 to span the whole ROM on all but Intel systems that use an Intel Firmware
283 Descriptor. It can be overridden to make coreboot live alongside other
284 components like ChromeOS's vboot/FMAP or Intel's IFD / ME / TXE
285 binaries.
286
Patrick Georgi8a3592e2015-09-16 18:10:52 +0200287config FMDFILE
288 string "fmap description file in fmd format"
Patrick Georgi5d7ab392015-12-12 00:23:15 +0100289 default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS
Patrick Georgi8a3592e2015-09-16 18:10:52 +0200290 default ""
291 help
292 The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE,
293 but in some cases more complex setups are required.
294 When an fmd is specified, it overrides the default format.
295
Vadim Bendebury26588702016-06-02 20:43:19 -0700296config MAINBOARD_HAS_TPM2
297 bool
298 default n
299 help
300 There is a TPM device installed on the mainboard, and it is
301 compliant with version 2 TCG TPM specification. Could be connected
302 over LPC, SPI or I2C.
303
Martin Rothda1ca202015-12-26 16:51:16 -0700304endmenu
305
Martin Rothb09a5692016-01-24 19:38:33 -0700306# load site-local kconfig to allow user specific defaults and overrides
307source "site-local/Kconfig"
308
Vladimir Serbinenkoa9db82f2014-10-16 13:21:47 +0200309config SYSTEM_TYPE_LAPTOP
Martin Roth595e7772015-04-26 18:53:26 -0600310 default n
311 bool
Vladimir Serbinenkoa9db82f2014-10-16 13:21:47 +0200312
Werner Zehc0fb3612016-01-14 15:08:36 +0100313config CBFS_AUTOGEN_ATTRIBUTES
314 default n
315 bool
316 help
317 If this option is selected, every file in cbfs which has a constraint
318 regarding position or alignment will get an additional file attribute
319 which describes this constraint.
320
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000321menu "Chipset"
322
Duncan Lauried2119762015-06-08 18:11:56 -0700323comment "SoC"
324source "src/soc/*/*/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000325comment "CPU"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200326source "src/cpu/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000327comment "Northbridge"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200328source "src/northbridge/*/*/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000329comment "Southbridge"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200330source "src/southbridge/*/*/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000331comment "Super I/O"
Omar Pakker57603e22016-07-29 23:31:45 +0200332source "src/superio/*/*/Kconfig"
Sven Schnelle7592e8b2011-01-27 11:43:03 +0000333comment "Embedded Controllers"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200334source "src/ec/acpi/Kconfig"
335source "src/ec/*/*/Kconfig"
Stefan Reinauer86ddd732016-03-11 20:22:28 -0800336# FIXME move to vendorcode
Marc Jones78687972015-04-22 23:16:31 -0600337source "src/drivers/intel/fsp1_0/Kconfig"
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000338
Martin Roth59aa2b12015-06-20 16:17:12 -0600339source "src/southbridge/intel/common/firmware/Kconfig"
Furquan Shaikh2a12e2e2016-07-25 11:48:03 -0700340source "src/vboot/Kconfig"
Martin Rothe1523ec2015-06-19 22:30:43 -0600341source "src/vendorcode/*/Kconfig"
Martin Roth59aa2b12015-06-20 16:17:12 -0600342
Martin Rothe1523ec2015-06-19 22:30:43 -0600343source "src/arch/*/Kconfig"
344
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000345endmenu
Patrick Georgi0588d192009-08-12 15:00:51 +0000346
Stefan Reinauera48ca842015-04-04 01:58:28 +0200347source "src/device/Kconfig"
Stefan Reinauer95a63962012-11-13 17:00:01 -0800348
Rudolf Marekd9c25492010-05-16 15:31:53 +0000349menu "Generic Drivers"
Stefan Reinauera48ca842015-04-04 01:58:28 +0200350source "src/drivers/*/Kconfig"
Stefan Reinauer86ddd732016-03-11 20:22:28 -0800351source "src/drivers/*/*/Kconfig"
Rudolf Marekd9c25492010-05-16 15:31:53 +0000352endmenu
353
Martin Roth09210a12016-05-17 11:28:23 -0600354source "src/acpi/Kconfig"
355
Aaron Durbin4a36c4e2016-08-11 11:02:26 -0500356# This option is for the current boards/chipsets where SPI flash
357# is not the boot device. Currently nearly all boards/chipsets assume
358# SPI flash is the boot device.
359config BOOT_DEVICE_NOT_SPI_FLASH
360 bool
361 default n
362
363config BOOT_DEVICE_SPI_FLASH
364 bool
365 default y if !BOOT_DEVICE_NOT_SPI_FLASH
366 default n
367
Aaron Durbin16c173f2016-08-11 14:04:10 -0500368config BOOT_DEVICE_MEMORY_MAPPED
369 bool
370 default y if ARCH_X86 && BOOT_DEVICE_SPI_FLASH
371 default n
372 help
373 Inform system if SPI is memory-mapped or not.
374
Aaron Durbine8e118d2016-08-12 15:00:10 -0500375config BOOT_DEVICE_SUPPORTS_WRITES
376 bool
377 default n
378 help
379 Indicate that the platform has writable boot device
380 support.
381
Patrick Georgi0770f252015-04-22 13:28:21 +0200382config RTC
383 bool
384 default n
385
Stefan Reinauer7cb01e02013-08-29 16:05:02 -0700386config TPM
387 bool
388 default n
Vadim Bendebury26588702016-06-02 20:43:19 -0700389 select LPC_TPM if MAINBOARD_HAS_LPC_TPM
390 select I2C_TPM if !MAINBOARD_HAS_LPC_TPM && !SPI_TPM
Stefan Reinauer7cb01e02013-08-29 16:05:02 -0700391 help
392 Enable this option to enable TPM support in coreboot.
393
394 If unsure, say N.
395
Vadim Bendebury26588702016-06-02 20:43:19 -0700396config TPM2
397 bool
398 select LPC_TPM if MAINBOARD_HAS_LPC_TPM
399 select I2C_TPM if !MAINBOARD_HAS_LPC_TPM && !SPI_TPM
400 help
401 Enable this option to enable TPM2 support in coreboot.
402
403 If unsure, say N.
404
Patrick Georgi0588d192009-08-12 15:00:51 +0000405config HEAP_SIZE
406 hex
Myles Watson04000f42009-10-16 19:12:49 +0000407 default 0x4000
Patrick Georgi0588d192009-08-12 15:00:51 +0000408
Julius Wernerc3e7c4e2014-09-19 13:18:16 -0700409config STACK_SIZE
410 hex
Julius Werner66a476a2015-10-12 16:45:21 -0700411 default 0x1000 if ARCH_X86
412 default 0x0
Julius Wernerc3e7c4e2014-09-19 13:18:16 -0700413
Patrick Georgi0588d192009-08-12 15:00:51 +0000414config MAX_CPUS
415 int
416 default 1
417
Stefan Reinauera48ca842015-04-04 01:58:28 +0200418source "src/console/Kconfig"
Patrick Georgi0588d192009-08-12 15:00:51 +0000419
420config HAVE_ACPI_RESUME
421 bool
422 default n
423
Kyösti Mälkki9d6f3652016-06-28 07:38:46 +0300424config ACPI_HUGE_LOWMEM_BACKUP
425 bool
Kyösti Mälkki43e9c932016-11-10 11:50:21 +0200426 default n
Kyösti Mälkki9d6f3652016-06-28 07:38:46 +0300427 help
428 On S3 resume path, backup low memory from RAMBASE..RAMTOP in CBMEM.
429
Aaron Durbin87c9fae2016-01-22 15:26:04 -0600430config RESUME_PATH_SAME_AS_BOOT
431 bool
432 default y if ARCH_X86
433 depends on HAVE_ACPI_RESUME
434 help
435 This option indicates that when a system resumes it takes the
436 same path as a regular boot. e.g. an x86 system runs from the
437 reset vector at 0xfffffff0 on both resume and warm/cold boot.
438
Patrick Georgi0588d192009-08-12 15:00:51 +0000439config HAVE_HARD_RESET
440 bool
Uwe Hermann748475b2009-10-09 11:47:21 +0000441 default n
Patrick Georgi37bdb872010-02-27 08:39:04 +0000442 help
443 This variable specifies whether a given board has a hard_reset
444 function, no matter if it's provided by board code or chipset code.
445
Timothy Pearson44d53422015-05-18 16:04:10 -0500446config HAVE_ROMSTAGE_CONSOLE_SPINLOCK
447 bool
Kyösti Mälkkib5664de2016-07-08 13:33:00 +0300448 depends on EARLY_CBMEM_INIT
Timothy Pearson44d53422015-05-18 16:04:10 -0500449 default n
450
Timothy Pearson7b22d842015-08-28 19:52:05 -0500451config HAVE_ROMSTAGE_NVRAM_CBFS_SPINLOCK
452 bool
Kyösti Mälkkib5664de2016-07-08 13:33:00 +0300453 depends on EARLY_CBMEM_INIT
Timothy Pearson7b22d842015-08-28 19:52:05 -0500454 default n
455 help
456 This should be enabled on certain plaforms, such as the AMD
457 SR565x, that cannot handle concurrent CBFS accesses from
458 multiple APs during early startup.
459
Timothy Pearsonc764c742015-08-28 20:48:17 -0500460config HAVE_ROMSTAGE_MICROCODE_CBFS_SPINLOCK
461 bool
Kyösti Mälkkib5664de2016-07-08 13:33:00 +0300462 depends on EARLY_CBMEM_INIT
Timothy Pearsonc764c742015-08-28 20:48:17 -0500463 default n
464
Aaron Durbina4217912013-04-29 22:31:51 -0500465config HAVE_MONOTONIC_TIMER
466 def_bool n
467 help
468 The board/chipset provides a monotonic timer.
469
Aaron Durbine5e36302014-09-25 10:05:15 -0500470config GENERIC_UDELAY
471 def_bool n
472 depends on HAVE_MONOTONIC_TIMER
473 help
474 The board/chipset uses a generic udelay function utilizing the
475 monotonic timer.
476
Aaron Durbin340ca912013-04-30 09:58:12 -0500477config TIMER_QUEUE
478 def_bool n
479 depends on HAVE_MONOTONIC_TIMER
480 help
Kyösti Mälkkiecd84242013-09-13 07:57:49 +0300481 Provide a timer queue for performing time-based callbacks.
Aaron Durbin340ca912013-04-30 09:58:12 -0500482
Aaron Durbin4409a5e2013-05-06 12:20:52 -0500483config COOP_MULTITASKING
484 def_bool n
Aaron Durbin38c326d2013-05-06 12:22:23 -0500485 depends on TIMER_QUEUE && ARCH_X86
Aaron Durbin4409a5e2013-05-06 12:20:52 -0500486 help
487 Cooperative multitasking allows callbacks to be multiplexed on the
488 main thread of ramstage. With this enabled it allows for multiple
489 execution paths to take place when they have udelay() calls within
490 their code.
491
492config NUM_THREADS
493 int
494 default 4
495 depends on COOP_MULTITASKING
496 help
497 How many execution threads to cooperatively multitask with.
498
Patrick Georgi0588d192009-08-12 15:00:51 +0000499config HAVE_OPTION_TABLE
500 bool
Edwin Beasanteb50c7d2010-07-06 21:05:04 +0000501 default n
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000502 help
503 This variable specifies whether a given board has a cmos.layout
504 file containing NVRAM/CMOS bit definitions.
Edwin Beasanteb50c7d2010-07-06 21:05:04 +0000505 It defaults to 'n' but can be selected in mainboard/*/Kconfig.
Patrick Georgi0588d192009-08-12 15:00:51 +0000506
Patrick Georgi0588d192009-08-12 15:00:51 +0000507config PIRQ_ROUTE
508 bool
509 default n
510
511config HAVE_SMI_HANDLER
512 bool
513 default n
514
515config PCI_IO_CFG_EXT
516 bool
517 default n
518
519config IOAPIC
520 bool
521 default n
522
Kyösti Mälkki107f72e2014-01-06 11:06:26 +0200523config CACHE_ROM_SIZE_OVERRIDE
Stefan Reinauer5b635792012-08-16 14:05:42 -0700524 hex
Martin Roth3b878122016-09-30 14:43:01 -0600525 default 0x0
Stefan Reinauer5b635792012-08-16 14:05:42 -0700526
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000527# TODO: Can probably be removed once all chipsets have kconfig options for it.
Uwe Hermann70b0cf22009-10-04 17:15:39 +0000528config VIDEO_MB
529 int
Uwe Hermann63a8f2a2009-10-26 21:42:13 +0000530 default 0
Uwe Hermann70b0cf22009-10-04 17:15:39 +0000531
Myles Watson45bb25f2009-09-22 18:49:08 +0000532config USE_WATCHDOG_ON_BOOT
533 bool
534 default n
535
536config VGA
537 bool
538 default n
539 help
540 Build board-specific VGA code.
541
542config GFXUMA
543 bool
Myles Watsond73c1b52009-10-26 15:14:07 +0000544 default n
Myles Watson45bb25f2009-09-22 18:49:08 +0000545 help
546 Enable Unified Memory Architecture for graphics.
547
Myles Watsonb8e20272009-10-15 13:35:47 +0000548config HAVE_ACPI_TABLES
549 bool
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000550 help
551 This variable specifies whether a given board has ACPI table support.
552 It is usually set in mainboard/*/Kconfig.
Myles Watsonb8e20272009-10-15 13:35:47 +0000553
554config HAVE_MP_TABLE
555 bool
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000556 help
557 This variable specifies whether a given board has MP table support.
558 It is usually set in mainboard/*/Kconfig.
559 Whether or not the MP table is actually generated by coreboot
560 is configurable by the user via GENERATE_MP_TABLE.
Myles Watsonb8e20272009-10-15 13:35:47 +0000561
562config HAVE_PIRQ_TABLE
563 bool
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000564 help
565 This variable specifies whether a given board has PIRQ table support.
566 It is usually set in mainboard/*/Kconfig.
567 Whether or not the PIRQ table is actually generated by coreboot
568 is configurable by the user via GENERATE_PIRQ_TABLE.
Myles Watsonb8e20272009-10-15 13:35:47 +0000569
Alexandru Gagniuc70c660f2012-08-23 02:32:58 -0500570config MAX_PIRQ_LINKS
571 int
572 default 4
573 help
574 This variable specifies the number of PIRQ interrupt links which are
575 routable. On most chipsets, this is 4, INTA through INTD. Some
576 chipsets offer more than four links, commonly up to INTH. They may
577 also have a separate link for ATA or IOAPIC interrupts. When the PIRQ
578 table specifies links greater than 4, pirq_route_irqs will not
579 function properly, unless this variable is correctly set.
580
Vladimir Serbinenkoc21e0732014-10-16 12:48:19 +0200581config COMMON_FADT
582 bool
583 default n
584
Aaron Durbin9420a522015-11-17 16:31:00 -0600585config ACPI_NHLT
586 bool
587 default n
588 help
589 Build support for NHLT (non HD Audio) ACPI table generation.
590
Myles Watsond73c1b52009-10-26 15:14:07 +0000591#These Options are here to avoid "undefined" warnings.
592#The actual selection and help texts are in the following menu.
593
Uwe Hermann168b11b2009-10-07 16:15:40 +0000594menu "System tables"
Myles Watson45bb25f2009-09-22 18:49:08 +0000595
Myles Watsonb8e20272009-10-15 13:35:47 +0000596config GENERATE_MP_TABLE
Stefan Reinauer56cd70b2012-11-13 17:33:08 -0800597 prompt "Generate an MP table" if HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC
598 bool
599 default HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000600 help
601 Generate an MP table (conforming to the Intel MultiProcessor
602 specification 1.4) for this board.
603
604 If unsure, say Y.
Myles Watson45bb25f2009-09-22 18:49:08 +0000605
Myles Watsonb8e20272009-10-15 13:35:47 +0000606config GENERATE_PIRQ_TABLE
Stefan Reinauer56cd70b2012-11-13 17:33:08 -0800607 prompt "Generate a PIRQ table" if HAVE_PIRQ_TABLE
608 bool
609 default HAVE_PIRQ_TABLE
Uwe Hermann6ba13bb2009-10-15 17:49:07 +0000610 help
611 Generate a PIRQ table for this board.
612
613 If unsure, say Y.
Myles Watson45bb25f2009-09-22 18:49:08 +0000614
Sven Schnelle164bcfd2011-08-14 20:56:34 +0200615config GENERATE_SMBIOS_TABLES
616 depends on ARCH_X86
617 bool "Generate SMBIOS tables"
618 default y
619 help
620 Generate SMBIOS tables for this board.
621
622 If unsure, say Y.
623
Vladimir Serbinenko0afdec42015-05-30 23:08:26 +0200624config SMBIOS_PROVIDED_BY_MOBO
625 bool
626 default n
627
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200628config MAINBOARD_SERIAL_NUMBER
629 string "SMBIOS Serial Number"
630 depends on GENERATE_SMBIOS_TABLES
Vladimir Serbinenko0afdec42015-05-30 23:08:26 +0200631 depends on !SMBIOS_PROVIDED_BY_MOBO
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200632 default "123456789"
Martin Roth595e7772015-04-26 18:53:26 -0600633 help
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200634 The Serial Number to store in SMBIOS structures.
635
636config MAINBOARD_VERSION
637 string "SMBIOS Version Number"
638 depends on GENERATE_SMBIOS_TABLES
Vladimir Serbinenko0afdec42015-05-30 23:08:26 +0200639 depends on !SMBIOS_PROVIDED_BY_MOBO
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200640 default "1.0"
641 help
642 The Version Number to store in SMBIOS structures.
643
644config MAINBOARD_SMBIOS_MANUFACTURER
645 string "SMBIOS Manufacturer"
646 depends on GENERATE_SMBIOS_TABLES
Vladimir Serbinenko0afdec42015-05-30 23:08:26 +0200647 depends on !SMBIOS_PROVIDED_BY_MOBO
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200648 default MAINBOARD_VENDOR
649 help
650 Override the default Manufacturer stored in SMBIOS structures.
651
652config MAINBOARD_SMBIOS_PRODUCT_NAME
653 string "SMBIOS Product name"
654 depends on GENERATE_SMBIOS_TABLES
Vladimir Serbinenko0afdec42015-05-30 23:08:26 +0200655 depends on !SMBIOS_PROVIDED_BY_MOBO
Stefan Reinauer6023ca42014-10-17 13:28:15 +0200656 default MAINBOARD_PART_NUMBER
657 help
658 Override the default Product name stored in SMBIOS structures.
659
Myles Watson45bb25f2009-09-22 18:49:08 +0000660endmenu
661
Martin Roth21c06502016-02-04 19:52:27 -0700662source "payloads/Kconfig"
Peter Stugea758ca22009-09-17 16:21:31 +0000663
Uwe Hermann168b11b2009-10-07 16:15:40 +0000664menu "Debugging"
665
666# TODO: Better help text and detailed instructions.
Patrick Georgi0588d192009-08-12 15:00:51 +0000667config GDB_STUB
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000668 bool "GDB debugging support"
Rudolf Marek65888022012-03-25 20:51:16 +0200669 default n
Denis 'GNUtoo' Carikli3747ba12015-12-10 22:04:56 +0100670 depends on CONSOLE_SERIAL
Patrick Georgi0588d192009-08-12 15:00:51 +0000671 help
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000672 If enabled, you will be able to set breakpoints for gdb debugging.
Stefan Reinauer8677a232010-12-11 20:33:41 +0000673 See src/arch/x86/lib/c_start.S for details.
Patrick Georgi0588d192009-08-12 15:00:51 +0000674
Denis 'GNUtoo' Cariklie4cece02012-06-22 15:56:37 +0200675config GDB_WAIT
676 bool "Wait for a GDB connection"
677 default n
678 depends on GDB_STUB
679 help
680 If enabled, coreboot will wait for a GDB connection.
681
Julius Wernerd82e0cf2015-02-17 17:27:23 -0800682config FATAL_ASSERTS
683 bool "Halt when hitting a BUG() or assertion error"
684 default n
685 help
686 If enabled, coreboot will call hlt() on a BUG() or failed ASSERT().
687
Stefan Reinauerfe422182012-05-02 16:33:18 -0700688config DEBUG_CBFS
689 bool "Output verbose CBFS debug messages"
690 default n
Stefan Reinauerfe422182012-05-02 16:33:18 -0700691 help
692 This option enables additional CBFS related debug messages.
693
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000694config HAVE_DEBUG_RAM_SETUP
695 def_bool n
696
Uwe Hermann01ce6012010-03-05 10:03:50 +0000697config DEBUG_RAM_SETUP
698 bool "Output verbose RAM init debug messages"
699 default n
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000700 depends on HAVE_DEBUG_RAM_SETUP
Uwe Hermann01ce6012010-03-05 10:03:50 +0000701 help
702 This option enables additional RAM init related debug messages.
703 It is recommended to enable this when debugging issues on your
704 board which might be RAM init related.
705
706 Note: This option will increase the size of the coreboot image.
707
708 If unsure, say N.
709
Patrick Georgie82618d2010-10-01 14:50:12 +0000710config HAVE_DEBUG_CAR
711 def_bool n
712
Peter Stuge5015f792010-11-10 02:00:32 +0000713config DEBUG_CAR
714 def_bool n
715 depends on HAVE_DEBUG_CAR
716
717if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
Uwe Hermanna953f372010-11-10 00:14:32 +0000718# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
719# printk(BIOS_DEBUG, ...) calls.
Patrick Georgie82618d2010-10-01 14:50:12 +0000720config DEBUG_CAR
721 bool "Output verbose Cache-as-RAM debug messages"
722 default n
Peter Stuge5015f792010-11-10 02:00:32 +0000723 depends on HAVE_DEBUG_CAR
Patrick Georgie82618d2010-10-01 14:50:12 +0000724 help
725 This option enables additional CAR related debug messages.
Peter Stuge5015f792010-11-10 02:00:32 +0000726endif
Patrick Georgie82618d2010-10-01 14:50:12 +0000727
Myles Watson80e914ff2010-06-01 19:25:31 +0000728config DEBUG_PIRQ
729 bool "Check PIRQ table consistency"
730 default n
731 depends on GENERATE_PIRQ_TABLE
732 help
733 If unsure, say N.
734
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000735config HAVE_DEBUG_SMBUS
736 def_bool n
737
Uwe Hermann01ce6012010-03-05 10:03:50 +0000738config DEBUG_SMBUS
739 bool "Output verbose SMBus debug messages"
740 default n
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000741 depends on HAVE_DEBUG_SMBUS
Uwe Hermann01ce6012010-03-05 10:03:50 +0000742 help
743 This option enables additional SMBus (and SPD) debug messages.
744
745 Note: This option will increase the size of the coreboot image.
746
747 If unsure, say N.
748
749config DEBUG_SMI
750 bool "Output verbose SMI debug messages"
751 default n
752 depends on HAVE_SMI_HANDLER
Martin Roth3a543182015-09-28 15:27:24 -0600753 select SPI_FLASH_SMM if SPI_CONSOLE
Uwe Hermann01ce6012010-03-05 10:03:50 +0000754 help
755 This option enables additional SMI related debug messages.
756
757 Note: This option will increase the size of the coreboot image.
758
759 If unsure, say N.
760
Stefan Reinauerbc0f7a62010-08-01 15:41:14 +0000761config DEBUG_SMM_RELOCATION
762 bool "Debug SMM relocation code"
763 default n
764 depends on HAVE_SMI_HANDLER
765 help
766 This option enables additional SMM handler relocation related
767 debug messages.
768
769 Note: This option will increase the size of the coreboot image.
770
771 If unsure, say N.
772
Uwe Hermanna953f372010-11-10 00:14:32 +0000773# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
774# printk(BIOS_DEBUG, ...) calls.
775config DEBUG_MALLOC
Stefan Reinauer95a63962012-11-13 17:00:01 -0800776 prompt "Output verbose malloc debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
777 bool
Uwe Hermanna953f372010-11-10 00:14:32 +0000778 default n
Uwe Hermanna953f372010-11-10 00:14:32 +0000779 help
780 This option enables additional malloc related debug messages.
781
782 Note: This option will increase the size of the coreboot image.
783
784 If unsure, say N.
Cristian Măgherușan-Stanciu9f52ea42011-07-02 00:44:39 +0300785
786# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
787# printk(BIOS_DEBUG, ...) calls.
Cristian Măgherușan-Stanciu9f52ea42011-07-02 00:44:39 +0300788config DEBUG_ACPI
Stefan Reinauer95a63962012-11-13 17:00:01 -0800789 prompt "Output verbose ACPI debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
790 bool
Cristian Măgherușan-Stanciu9f52ea42011-07-02 00:44:39 +0300791 default n
792 help
793 This option enables additional ACPI related debug messages.
794
795 Note: This option will slightly increase the size of the coreboot image.
796
797 If unsure, say N.
Cristian Măgherușan-Stanciu9f52ea42011-07-02 00:44:39 +0300798
Uwe Hermanna953f372010-11-10 00:14:32 +0000799# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
800# printk(BIOS_DEBUG, ...) calls.
Myles Watson6c9bc012010-09-07 22:30:15 +0000801config REALMODE_DEBUG
Stefan Reinauer95a63962012-11-13 17:00:01 -0800802 prompt "Enable debug messages for option ROM execution" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
803 bool
Myles Watson6c9bc012010-09-07 22:30:15 +0000804 default n
Peter Stuge5015f792010-11-10 02:00:32 +0000805 depends on PCI_OPTION_ROM_RUN_REALMODE
Myles Watson6c9bc012010-09-07 22:30:15 +0000806 help
807 This option enables additional x86emu related debug messages.
808
809 Note: This option will increase the time to emulate a ROM.
810
811 If unsure, say N.
812
Uwe Hermann01ce6012010-03-05 10:03:50 +0000813config X86EMU_DEBUG
814 bool "Output verbose x86emu debug messages"
815 default n
816 depends on PCI_OPTION_ROM_RUN_YABEL
817 help
818 This option enables additional x86emu related debug messages.
819
820 Note: This option will increase the size of the coreboot image.
821
822 If unsure, say N.
823
824config X86EMU_DEBUG_JMP
825 bool "Trace JMP/RETF"
826 default n
827 depends on X86EMU_DEBUG
828 help
829 Print information about JMP and RETF opcodes from x86emu.
830
831 Note: This option will increase the size of the coreboot image.
832
833 If unsure, say N.
834
835config X86EMU_DEBUG_TRACE
836 bool "Trace all opcodes"
837 default n
838 depends on X86EMU_DEBUG
839 help
840 Print _all_ opcodes that are executed by x86emu.
Stefan Reinauer14e22772010-04-27 06:56:47 +0000841
Uwe Hermann01ce6012010-03-05 10:03:50 +0000842 WARNING: This will produce a LOT of output and take a long time.
843
844 Note: This option will increase the size of the coreboot image.
845
846 If unsure, say N.
847
848config X86EMU_DEBUG_PNP
849 bool "Log Plug&Play accesses"
850 default n
851 depends on X86EMU_DEBUG
852 help
853 Print Plug And Play accesses made by option ROMs.
854
855 Note: This option will increase the size of the coreboot image.
856
857 If unsure, say N.
858
859config X86EMU_DEBUG_DISK
860 bool "Log Disk I/O"
861 default n
862 depends on X86EMU_DEBUG
863 help
864 Print Disk I/O related messages.
865
866 Note: This option will increase the size of the coreboot image.
867
868 If unsure, say N.
869
870config X86EMU_DEBUG_PMM
871 bool "Log PMM"
872 default n
873 depends on X86EMU_DEBUG
874 help
875 Print messages related to POST Memory Manager (PMM).
876
877 Note: This option will increase the size of the coreboot image.
878
879 If unsure, say N.
880
881
882config X86EMU_DEBUG_VBE
883 bool "Debug VESA BIOS Extensions"
884 default n
885 depends on X86EMU_DEBUG
886 help
887 Print messages related to VESA BIOS Extension (VBE) functions.
888
889 Note: This option will increase the size of the coreboot image.
890
891 If unsure, say N.
892
893config X86EMU_DEBUG_INT10
894 bool "Redirect INT10 output to console"
895 default n
896 depends on X86EMU_DEBUG
897 help
898 Let INT10 (i.e. character output) calls print messages to debug output.
899
900 Note: This option will increase the size of the coreboot image.
901
902 If unsure, say N.
903
904config X86EMU_DEBUG_INTERRUPTS
905 bool "Log intXX calls"
906 default n
907 depends on X86EMU_DEBUG
908 help
909 Print messages related to interrupt handling.
910
911 Note: This option will increase the size of the coreboot image.
912
913 If unsure, say N.
914
915config X86EMU_DEBUG_CHECK_VMEM_ACCESS
916 bool "Log special memory accesses"
917 default n
918 depends on X86EMU_DEBUG
919 help
920 Print messages related to accesses to certain areas of the virtual
921 memory (e.g. BDA (BIOS Data Area) or interrupt vectors)
922
923 Note: This option will increase the size of the coreboot image.
924
925 If unsure, say N.
926
927config X86EMU_DEBUG_MEM
928 bool "Log all memory accesses"
929 default n
930 depends on X86EMU_DEBUG
931 help
932 Print memory accesses made by option ROM.
933 Note: This also includes accesses to fetch instructions.
934
935 Note: This option will increase the size of the coreboot image.
936
937 If unsure, say N.
938
939config X86EMU_DEBUG_IO
940 bool "Log IO accesses"
941 default n
942 depends on X86EMU_DEBUG
943 help
944 Print I/O accesses made by option ROM.
945
946 Note: This option will increase the size of the coreboot image.
947
948 If unsure, say N.
949
Denis 'GNUtoo' Carikli4cdc5d62013-05-15 00:19:49 +0200950config X86EMU_DEBUG_TIMINGS
951 bool "Output timing information"
952 default n
953 depends on X86EMU_DEBUG && UDELAY_LAPIC && HAVE_MONOTONIC_TIMER
954 help
955 Print timing information needed by i915tool.
956
957 If unsure, say N.
958
Stefan Reinauerdfb098d2011-11-17 12:50:54 -0800959config DEBUG_TPM
960 bool "Output verbose TPM debug messages"
961 default n
Vadim Bendebury26588702016-06-02 20:43:19 -0700962 depends on TPM || TPM2
Stefan Reinauerdfb098d2011-11-17 12:50:54 -0800963 help
964 This option enables additional TPM related debug messages.
965
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -0700966config DEBUG_SPI_FLASH
967 bool "Output verbose SPI flash debug messages"
968 default n
969 depends on SPI_FLASH
970 help
971 This option enables additional SPI flash related debug messages.
972
Kyösti Mälkki3be80cc2013-06-06 10:46:37 +0300973config DEBUG_USBDEBUG
974 bool "Output verbose USB 2.0 EHCI debug dongle messages"
975 default n
976 depends on USBDEBUG
977 help
978 This option enables additional USB 2.0 debug dongle related messages.
979
980 Select this to debug the connection of usbdebug dongle. Note that
981 you need some other working console to receive the messages.
982
Stefan Reinauer8e073822012-04-04 00:07:22 +0200983if SOUTHBRIDGE_INTEL_BD82X6X && DEFAULT_CONSOLE_LOGLEVEL_8
984# Only visible with the right southbridge and loglevel.
985config DEBUG_INTEL_ME
986 bool "Verbose logging for Intel Management Engine"
987 default n
988 help
989 Enable verbose logging for Intel Management Engine driver that
990 is present on Intel 6-series chipsets.
991endif
992
Rudolf Marek7f0e9302011-09-02 23:23:41 +0200993config TRACE
994 bool "Trace function calls"
995 default n
996 help
997 If enabled, every function will print information to console once
998 the function is entered. The syntax is ~0xaaaabbbb(0xccccdddd)
999 the 0xaaaabbbb is the actual function and 0xccccdddd is EIP
Ben Gardner8420ad42015-11-18 10:46:53 -06001000 of calling function. Please note some printk related functions
Rudolf Marek7f0e9302011-09-02 23:23:41 +02001001 are omitted from trace to have good looking console dumps.
Stefan Reinauerd37ab452012-12-18 16:23:28 -08001002
1003config DEBUG_COVERAGE
1004 bool "Debug code coverage"
1005 default n
1006 depends on COVERAGE
1007 help
1008 If enabled, the code coverage hooks in coreboot will output some
1009 information about the coverage data that is dumped.
1010
Jonathan Neuschäferfc04f9b2016-06-29 21:59:32 +02001011config DEBUG_BOOT_STATE
1012 bool "Debug boot state machine"
1013 default n
1014 help
1015 Control debugging of the boot state machine. When selected displays
1016 the state boundaries in ramstage.
1017
Jonathan Neuschäfer538e4462016-08-22 19:37:15 +02001018config DEBUG_PRINT_PAGE_TABLES
1019 bool "Print the page tables after construction"
1020 default n
1021 depends on ARCH_RISCV
1022 help
1023 After the page tables have been built, print them on the debug
1024 console.
1025
Nico Hubere84e6252016-10-05 17:43:56 +02001026config DEBUG_ADA_CODE
1027 bool "Compile debug code in Ada sources"
1028 default n
1029 help
1030 Add the compiler switch `-gnata` to compile code guarded by
1031 `pragma Debug`.
1032
Uwe Hermann168b11b2009-10-07 16:15:40 +00001033endmenu
1034
Martin Roth8e4aafb2016-12-15 15:25:15 -07001035
1036###############################################################################
1037# Set variables with no prompt - these can be set anywhere, and putting at
1038# the end of this file gives the most flexibility.
Myles Watsond73c1b52009-10-26 15:14:07 +00001039config ENABLE_APIC_EXT_ID
1040 bool
1041 default n
Myles Watson2e672732009-11-12 16:38:03 +00001042
1043config WARNINGS_ARE_ERRORS
1044 bool
Edward O'Callaghan63f6dc72014-11-18 03:17:54 +11001045 default y
Patrick Georgi436f99b2009-11-27 16:55:13 +00001046
Peter Stuge51eafde2010-10-13 06:23:02 +00001047# The four POWER_BUTTON_DEFAULT_ENABLE, POWER_BUTTON_DEFAULT_DISABLE,
1048# POWER_BUTTON_FORCE_ENABLE and POWER_BUTTON_FORCE_DISABLE options are
1049# mutually exclusive. One of these options must be selected in the
1050# mainboard Kconfig if the chipset supports enabling and disabling of
1051# the power button. Chipset code uses the ENABLE_POWER_BUTTON option set
1052# in mainboard/Kconfig to know if the button should be enabled or not.
1053
1054config POWER_BUTTON_DEFAULT_ENABLE
1055 def_bool n
1056 help
1057 Select when the board has a power button which can optionally be
1058 disabled by the user.
1059
1060config POWER_BUTTON_DEFAULT_DISABLE
1061 def_bool n
1062 help
1063 Select when the board has a power button which can optionally be
1064 enabled by the user, e.g. when the board ships with a jumper over
1065 the power switch contacts.
1066
1067config POWER_BUTTON_FORCE_ENABLE
1068 def_bool n
1069 help
1070 Select when the board requires that the power button is always
1071 enabled.
1072
1073config POWER_BUTTON_FORCE_DISABLE
1074 def_bool n
1075 help
1076 Select when the board requires that the power button is always
1077 disabled, e.g. when it has been hardwired to ground.
1078
1079config POWER_BUTTON_IS_OPTIONAL
1080 bool
1081 default y if POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE
1082 default n if !(POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE)
1083 help
1084 Internal option that controls ENABLE_POWER_BUTTON visibility.
Duncan Laurie72748002013-10-31 08:26:23 -07001085
1086config REG_SCRIPT
1087 bool
Duncan Laurie72748002013-10-31 08:26:23 -07001088 default n
1089 help
1090 Internal option that controls whether we compile in register scripts.
Furquan Shaikh99ac98f2014-04-23 10:18:48 -07001091
Furquan Shaikh99ac98f2014-04-23 10:18:48 -07001092config MAX_REBOOT_CNT
1093 int
1094 default 3
Timothy Pearson17ada2e2015-03-18 01:31:34 -05001095 help
1096 Internal option that sets the maximum number of bootblock executions allowed
1097 with the normal image enabled before assuming the normal image is defective
Vadim Bendebury9c9c3362014-07-23 09:40:02 -07001098 and switching to the fallback image.
Martin Roth59ff3402016-02-09 09:06:46 -07001099
Lee Leahyfc3741f2016-05-26 17:12:17 -07001100config CREATE_BOARD_CHECKLIST
1101 bool
1102 default n
1103 help
1104 When selected, creates a webpage showing the implementation status for
1105 the board. Routines highlighted in green are complete, yellow are
1106 optional and red are required and must be implemented. A table is
1107 produced for each stage of the boot process except the bootblock. The
1108 red items may be used as an implementation checklist for the board.
1109
1110config MAKE_CHECKLIST_PUBLIC
1111 bool
1112 default n
1113 help
1114 When selected, build/$(CONFIG_MAINBOARD_PART_NUMBER)_checklist.html
1115 is copied into the Documentation/$(CONFIG_MAINBOARD_VENDOR)/Board
1116 directory.
1117
1118config CHECKLIST_DATA_FILE_LOCATION
1119 string
1120 help
1121 Location of the <stage>_complete.dat and <stage>_optional.dat files
1122 that are consumed during checklist processing. <stage>_complete.dat
1123 contains the symbols that are expected to be in the resulting image.
1124 <stage>_optional.dat is a subset of <stage>_complete.dat and contains
1125 a list of weak symbols which the resulting image may consume. Other
1126 symbols contained only in <stage>_complete.dat will be flagged as
1127 required and not implemented if a weak implementation is found in the
1128 resulting image.
Nico Hubere0ed9022016-10-07 12:58:17 +02001129
1130config RAMSTAGE_ADA
1131 def_bool n
1132 help
1133 Selected by features that use Ada code in ramstage.
Nico Huberc83239e2016-10-05 17:46:49 +02001134
1135config RAMSTAGE_LIBHWBASE
1136 def_bool n
1137 select RAMSTAGE_ADA
1138 help
1139 Selected by features that require `libhwbase` in ramstage.
1140
1141config HWBASE_DYNAMIC_MMIO
1142 def_bool y
Martin Roth75e5cb72016-12-15 15:05:37 -07001143
Martin Roth8e4aafb2016-12-15 15:25:15 -07001144config UNCOMPRESSED_RAMSTAGE
1145 bool
1146
1147config NO_XIP_EARLY_STAGES
1148 bool
1149 default n if ARCH_X86
1150 default y
1151 help
1152 Identify if early stages are eXecute-In-Place(XIP).
1153
1154config EARLY_CBMEM_INIT
1155 def_bool !LATE_CBMEM_INIT
1156
1157config EARLY_CBMEM_LIST
1158 bool
1159 default n
1160 help
1161 Enable display of CBMEM during romstage and postcar.
1162
1163config RELOCATABLE_MODULES
1164 bool
1165 help
1166 If RELOCATABLE_MODULES is selected then support is enabled for
1167 building relocatable modules in the RAM stage. Those modules can be
1168 loaded anywhere and all the relocations are handled automatically.
1169
1170config NO_STAGE_CACHE
1171 bool
1172 help
1173 Do not save any component in stage cache for resume path. On resume,
1174 all components would be read back from CBFS again.
1175
1176config GENERIC_GPIO_LIB
1177 bool
1178 help
1179 If enabled, compile the generic GPIO library. A "generic" GPIO
1180 implies configurability usually found on SoCs, particularly the
1181 ability to control internal pull resistors.
1182
1183config GENERIC_SPD_BIN
1184 bool
1185 help
1186 If enabled, add support for adding spd.hex files in cbfs as spd.bin
1187 and locating it runtime to load SPD. Additionally provide provision to
1188 fetch SPD over SMBus.
1189
1190config DIMM_MAX
1191 int
1192 default 4
1193 depends on GENERIC_SPD_BIN
1194 help
1195 Total number of memory DIMM slots available on motherboard.
1196 It is multiplication of number of channel to number of DIMMs per
1197 channel
1198
1199config DIMM_SPD_SIZE
1200 int
1201 default 256
Martin Roth8e4aafb2016-12-15 15:25:15 -07001202 help
1203 Total SPD size that will be used for DIMM.
1204 Ex: DDR3 256, DDR4 512.
1205
1206config BOARD_ID_AUTO
1207 bool
1208 default n
1209 help
1210 Mainboards that can read a board ID from the hardware straps
1211 (ie. GPIO) select this configuration option.
1212
1213config BOARD_ID_MANUAL
1214 bool
1215 default n
1216 depends on !BOARD_ID_AUTO
1217 help
1218 If you want to maintain a board ID, but the hardware does not
1219 have straps to automatically determine the ID, you can say Y
1220 here and add a file named 'board_id' to CBFS. If you don't know
1221 what this is about, say N.
1222
1223config BOOTBLOCK_CUSTOM
1224 # To be selected by arch, SoC or mainboard if it does not want use the normal
1225 # src/lib/bootblock.c#main() C entry point.
1226 bool
1227
1228config C_ENVIRONMENT_BOOTBLOCK
1229 # To be selected by arch or platform if a C environment is available during the
1230 # bootblock. Normally this signifies availability of RW memory (e.g. SRAM).
1231 bool
1232
Martin Roth75e5cb72016-12-15 15:05:37 -07001233###############################################################################
1234# Set default values for symbols created before mainboards. This allows the
1235# option to be displayed in the general menu, but the default to be loaded in
1236# the mainboard if desired.
1237config COMPRESS_RAMSTAGE
1238 default y if !UNCOMPRESSED_RAMSTAGE
1239
1240config COMPRESS_PRERAM_STAGES
1241 depends on !ARCH_X86
1242 default y
1243
1244config INCLUDE_CONFIG_FILE
1245 default y
1246
1247config BOARD_ID_STRING
1248 default "(none)"
1249 depends on BOARD_ID_MANUAL
1250
1251config BOOTSPLASH_FILE
1252 depends on BOOTSPLASH_IMAGE
1253 default "bootsplash.jpg"
1254
1255config CBFS_SIZE
1256 default ROM_SIZE