blob: cdc0a4426fde1f3b10a55e058e7fcb48bf0ad07e [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
Denis 'GNUtoo' Carikli7d234f22015-12-10 21:58:52 +0100676 bool "Wait for a GDB connection in the ramstage"
Denis 'GNUtoo' Cariklie4cece02012-06-22 15:56:37 +0200677 default n
678 depends on GDB_STUB
679 help
Denis 'GNUtoo' Carikli7d234f22015-12-10 21:58:52 +0100680 If enabled, coreboot will wait for a GDB connection in the ramstage.
681
Denis 'GNUtoo' Cariklie4cece02012-06-22 15:56:37 +0200682
Julius Wernerd82e0cf2015-02-17 17:27:23 -0800683config FATAL_ASSERTS
684 bool "Halt when hitting a BUG() or assertion error"
685 default n
686 help
687 If enabled, coreboot will call hlt() on a BUG() or failed ASSERT().
688
Stefan Reinauerfe422182012-05-02 16:33:18 -0700689config DEBUG_CBFS
690 bool "Output verbose CBFS debug messages"
691 default n
Stefan Reinauerfe422182012-05-02 16:33:18 -0700692 help
693 This option enables additional CBFS related debug messages.
694
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000695config HAVE_DEBUG_RAM_SETUP
696 def_bool n
697
Uwe Hermann01ce6012010-03-05 10:03:50 +0000698config DEBUG_RAM_SETUP
699 bool "Output verbose RAM init debug messages"
700 default n
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000701 depends on HAVE_DEBUG_RAM_SETUP
Uwe Hermann01ce6012010-03-05 10:03:50 +0000702 help
703 This option enables additional RAM init related debug messages.
704 It is recommended to enable this when debugging issues on your
705 board which might be RAM init related.
706
707 Note: This option will increase the size of the coreboot image.
708
709 If unsure, say N.
710
Patrick Georgie82618d2010-10-01 14:50:12 +0000711config HAVE_DEBUG_CAR
712 def_bool n
713
Peter Stuge5015f792010-11-10 02:00:32 +0000714config DEBUG_CAR
715 def_bool n
716 depends on HAVE_DEBUG_CAR
717
718if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
Uwe Hermanna953f372010-11-10 00:14:32 +0000719# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
720# printk(BIOS_DEBUG, ...) calls.
Patrick Georgie82618d2010-10-01 14:50:12 +0000721config DEBUG_CAR
722 bool "Output verbose Cache-as-RAM debug messages"
723 default n
Peter Stuge5015f792010-11-10 02:00:32 +0000724 depends on HAVE_DEBUG_CAR
Patrick Georgie82618d2010-10-01 14:50:12 +0000725 help
726 This option enables additional CAR related debug messages.
Peter Stuge5015f792010-11-10 02:00:32 +0000727endif
Patrick Georgie82618d2010-10-01 14:50:12 +0000728
Myles Watson80e914ff2010-06-01 19:25:31 +0000729config DEBUG_PIRQ
730 bool "Check PIRQ table consistency"
731 default n
732 depends on GENERATE_PIRQ_TABLE
733 help
734 If unsure, say N.
735
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000736config HAVE_DEBUG_SMBUS
737 def_bool n
738
Uwe Hermann01ce6012010-03-05 10:03:50 +0000739config DEBUG_SMBUS
740 bool "Output verbose SMBus debug messages"
741 default n
Jens Rottmann0d11f2d2010-08-26 12:46:02 +0000742 depends on HAVE_DEBUG_SMBUS
Uwe Hermann01ce6012010-03-05 10:03:50 +0000743 help
744 This option enables additional SMBus (and SPD) debug messages.
745
746 Note: This option will increase the size of the coreboot image.
747
748 If unsure, say N.
749
750config DEBUG_SMI
751 bool "Output verbose SMI debug messages"
752 default n
753 depends on HAVE_SMI_HANDLER
Martin Roth3a543182015-09-28 15:27:24 -0600754 select SPI_FLASH_SMM if SPI_CONSOLE
Uwe Hermann01ce6012010-03-05 10:03:50 +0000755 help
756 This option enables additional SMI related debug messages.
757
758 Note: This option will increase the size of the coreboot image.
759
760 If unsure, say N.
761
Stefan Reinauerbc0f7a62010-08-01 15:41:14 +0000762config DEBUG_SMM_RELOCATION
763 bool "Debug SMM relocation code"
764 default n
765 depends on HAVE_SMI_HANDLER
766 help
767 This option enables additional SMM handler relocation related
768 debug messages.
769
770 Note: This option will increase the size of the coreboot image.
771
772 If unsure, say N.
773
Uwe Hermanna953f372010-11-10 00:14:32 +0000774# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
775# printk(BIOS_DEBUG, ...) calls.
776config DEBUG_MALLOC
Stefan Reinauer95a63962012-11-13 17:00:01 -0800777 prompt "Output verbose malloc debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
778 bool
Uwe Hermanna953f372010-11-10 00:14:32 +0000779 default n
Uwe Hermanna953f372010-11-10 00:14:32 +0000780 help
781 This option enables additional malloc related debug messages.
782
783 Note: This option will increase the size of the coreboot image.
784
785 If unsure, say N.
Cristian Măgherușan-Stanciu9f52ea42011-07-02 00:44:39 +0300786
787# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
788# printk(BIOS_DEBUG, ...) calls.
Cristian Măgherușan-Stanciu9f52ea42011-07-02 00:44:39 +0300789config DEBUG_ACPI
Stefan Reinauer95a63962012-11-13 17:00:01 -0800790 prompt "Output verbose ACPI debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
791 bool
Cristian Măgherușan-Stanciu9f52ea42011-07-02 00:44:39 +0300792 default n
793 help
794 This option enables additional ACPI related debug messages.
795
796 Note: This option will slightly increase the size of the coreboot image.
797
798 If unsure, say N.
Cristian Măgherușan-Stanciu9f52ea42011-07-02 00:44:39 +0300799
Uwe Hermanna953f372010-11-10 00:14:32 +0000800# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
801# printk(BIOS_DEBUG, ...) calls.
Myles Watson6c9bc012010-09-07 22:30:15 +0000802config REALMODE_DEBUG
Stefan Reinauer95a63962012-11-13 17:00:01 -0800803 prompt "Enable debug messages for option ROM execution" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
804 bool
Myles Watson6c9bc012010-09-07 22:30:15 +0000805 default n
Peter Stuge5015f792010-11-10 02:00:32 +0000806 depends on PCI_OPTION_ROM_RUN_REALMODE
Myles Watson6c9bc012010-09-07 22:30:15 +0000807 help
808 This option enables additional x86emu related debug messages.
809
810 Note: This option will increase the time to emulate a ROM.
811
812 If unsure, say N.
813
Uwe Hermann01ce6012010-03-05 10:03:50 +0000814config X86EMU_DEBUG
815 bool "Output verbose x86emu debug messages"
816 default n
817 depends on PCI_OPTION_ROM_RUN_YABEL
818 help
819 This option enables additional x86emu related debug messages.
820
821 Note: This option will increase the size of the coreboot image.
822
823 If unsure, say N.
824
825config X86EMU_DEBUG_JMP
826 bool "Trace JMP/RETF"
827 default n
828 depends on X86EMU_DEBUG
829 help
830 Print information about JMP and RETF opcodes from x86emu.
831
832 Note: This option will increase the size of the coreboot image.
833
834 If unsure, say N.
835
836config X86EMU_DEBUG_TRACE
837 bool "Trace all opcodes"
838 default n
839 depends on X86EMU_DEBUG
840 help
841 Print _all_ opcodes that are executed by x86emu.
Stefan Reinauer14e22772010-04-27 06:56:47 +0000842
Uwe Hermann01ce6012010-03-05 10:03:50 +0000843 WARNING: This will produce a LOT of output and take a long time.
844
845 Note: This option will increase the size of the coreboot image.
846
847 If unsure, say N.
848
849config X86EMU_DEBUG_PNP
850 bool "Log Plug&Play accesses"
851 default n
852 depends on X86EMU_DEBUG
853 help
854 Print Plug And Play accesses made by option ROMs.
855
856 Note: This option will increase the size of the coreboot image.
857
858 If unsure, say N.
859
860config X86EMU_DEBUG_DISK
861 bool "Log Disk I/O"
862 default n
863 depends on X86EMU_DEBUG
864 help
865 Print Disk I/O related messages.
866
867 Note: This option will increase the size of the coreboot image.
868
869 If unsure, say N.
870
871config X86EMU_DEBUG_PMM
872 bool "Log PMM"
873 default n
874 depends on X86EMU_DEBUG
875 help
876 Print messages related to POST Memory Manager (PMM).
877
878 Note: This option will increase the size of the coreboot image.
879
880 If unsure, say N.
881
882
883config X86EMU_DEBUG_VBE
884 bool "Debug VESA BIOS Extensions"
885 default n
886 depends on X86EMU_DEBUG
887 help
888 Print messages related to VESA BIOS Extension (VBE) functions.
889
890 Note: This option will increase the size of the coreboot image.
891
892 If unsure, say N.
893
894config X86EMU_DEBUG_INT10
895 bool "Redirect INT10 output to console"
896 default n
897 depends on X86EMU_DEBUG
898 help
899 Let INT10 (i.e. character output) calls print messages to debug output.
900
901 Note: This option will increase the size of the coreboot image.
902
903 If unsure, say N.
904
905config X86EMU_DEBUG_INTERRUPTS
906 bool "Log intXX calls"
907 default n
908 depends on X86EMU_DEBUG
909 help
910 Print messages related to interrupt handling.
911
912 Note: This option will increase the size of the coreboot image.
913
914 If unsure, say N.
915
916config X86EMU_DEBUG_CHECK_VMEM_ACCESS
917 bool "Log special memory accesses"
918 default n
919 depends on X86EMU_DEBUG
920 help
921 Print messages related to accesses to certain areas of the virtual
922 memory (e.g. BDA (BIOS Data Area) or interrupt vectors)
923
924 Note: This option will increase the size of the coreboot image.
925
926 If unsure, say N.
927
928config X86EMU_DEBUG_MEM
929 bool "Log all memory accesses"
930 default n
931 depends on X86EMU_DEBUG
932 help
933 Print memory accesses made by option ROM.
934 Note: This also includes accesses to fetch instructions.
935
936 Note: This option will increase the size of the coreboot image.
937
938 If unsure, say N.
939
940config X86EMU_DEBUG_IO
941 bool "Log IO accesses"
942 default n
943 depends on X86EMU_DEBUG
944 help
945 Print I/O accesses made by option ROM.
946
947 Note: This option will increase the size of the coreboot image.
948
949 If unsure, say N.
950
Denis 'GNUtoo' Carikli4cdc5d62013-05-15 00:19:49 +0200951config X86EMU_DEBUG_TIMINGS
952 bool "Output timing information"
953 default n
954 depends on X86EMU_DEBUG && UDELAY_LAPIC && HAVE_MONOTONIC_TIMER
955 help
956 Print timing information needed by i915tool.
957
958 If unsure, say N.
959
Stefan Reinauerdfb098d2011-11-17 12:50:54 -0800960config DEBUG_TPM
961 bool "Output verbose TPM debug messages"
962 default n
Vadim Bendebury26588702016-06-02 20:43:19 -0700963 depends on TPM || TPM2
Stefan Reinauerdfb098d2011-11-17 12:50:54 -0800964 help
965 This option enables additional TPM related debug messages.
966
Stefan Reinauer1c56d9b2012-05-10 11:27:32 -0700967config DEBUG_SPI_FLASH
968 bool "Output verbose SPI flash debug messages"
969 default n
970 depends on SPI_FLASH
971 help
972 This option enables additional SPI flash related debug messages.
973
Kyösti Mälkki3be80cc2013-06-06 10:46:37 +0300974config DEBUG_USBDEBUG
975 bool "Output verbose USB 2.0 EHCI debug dongle messages"
976 default n
977 depends on USBDEBUG
978 help
979 This option enables additional USB 2.0 debug dongle related messages.
980
981 Select this to debug the connection of usbdebug dongle. Note that
982 you need some other working console to receive the messages.
983
Stefan Reinauer8e073822012-04-04 00:07:22 +0200984if SOUTHBRIDGE_INTEL_BD82X6X && DEFAULT_CONSOLE_LOGLEVEL_8
985# Only visible with the right southbridge and loglevel.
986config DEBUG_INTEL_ME
987 bool "Verbose logging for Intel Management Engine"
988 default n
989 help
990 Enable verbose logging for Intel Management Engine driver that
991 is present on Intel 6-series chipsets.
992endif
993
Rudolf Marek7f0e9302011-09-02 23:23:41 +0200994config TRACE
995 bool "Trace function calls"
996 default n
997 help
998 If enabled, every function will print information to console once
999 the function is entered. The syntax is ~0xaaaabbbb(0xccccdddd)
1000 the 0xaaaabbbb is the actual function and 0xccccdddd is EIP
Ben Gardner8420ad42015-11-18 10:46:53 -06001001 of calling function. Please note some printk related functions
Rudolf Marek7f0e9302011-09-02 23:23:41 +02001002 are omitted from trace to have good looking console dumps.
Stefan Reinauerd37ab452012-12-18 16:23:28 -08001003
1004config DEBUG_COVERAGE
1005 bool "Debug code coverage"
1006 default n
1007 depends on COVERAGE
1008 help
1009 If enabled, the code coverage hooks in coreboot will output some
1010 information about the coverage data that is dumped.
1011
Jonathan Neuschäferfc04f9b2016-06-29 21:59:32 +02001012config DEBUG_BOOT_STATE
1013 bool "Debug boot state machine"
1014 default n
1015 help
1016 Control debugging of the boot state machine. When selected displays
1017 the state boundaries in ramstage.
1018
Jonathan Neuschäfer538e4462016-08-22 19:37:15 +02001019config DEBUG_PRINT_PAGE_TABLES
1020 bool "Print the page tables after construction"
1021 default n
1022 depends on ARCH_RISCV
1023 help
1024 After the page tables have been built, print them on the debug
1025 console.
1026
Nico Hubere84e6252016-10-05 17:43:56 +02001027config DEBUG_ADA_CODE
1028 bool "Compile debug code in Ada sources"
1029 default n
1030 help
1031 Add the compiler switch `-gnata` to compile code guarded by
1032 `pragma Debug`.
1033
Uwe Hermann168b11b2009-10-07 16:15:40 +00001034endmenu
1035
Martin Roth8e4aafb2016-12-15 15:25:15 -07001036
1037###############################################################################
1038# Set variables with no prompt - these can be set anywhere, and putting at
1039# the end of this file gives the most flexibility.
Myles Watsond73c1b52009-10-26 15:14:07 +00001040config ENABLE_APIC_EXT_ID
1041 bool
1042 default n
Myles Watson2e672732009-11-12 16:38:03 +00001043
1044config WARNINGS_ARE_ERRORS
1045 bool
Edward O'Callaghan63f6dc72014-11-18 03:17:54 +11001046 default y
Patrick Georgi436f99b2009-11-27 16:55:13 +00001047
Peter Stuge51eafde2010-10-13 06:23:02 +00001048# The four POWER_BUTTON_DEFAULT_ENABLE, POWER_BUTTON_DEFAULT_DISABLE,
1049# POWER_BUTTON_FORCE_ENABLE and POWER_BUTTON_FORCE_DISABLE options are
1050# mutually exclusive. One of these options must be selected in the
1051# mainboard Kconfig if the chipset supports enabling and disabling of
1052# the power button. Chipset code uses the ENABLE_POWER_BUTTON option set
1053# in mainboard/Kconfig to know if the button should be enabled or not.
1054
1055config POWER_BUTTON_DEFAULT_ENABLE
1056 def_bool n
1057 help
1058 Select when the board has a power button which can optionally be
1059 disabled by the user.
1060
1061config POWER_BUTTON_DEFAULT_DISABLE
1062 def_bool n
1063 help
1064 Select when the board has a power button which can optionally be
1065 enabled by the user, e.g. when the board ships with a jumper over
1066 the power switch contacts.
1067
1068config POWER_BUTTON_FORCE_ENABLE
1069 def_bool n
1070 help
1071 Select when the board requires that the power button is always
1072 enabled.
1073
1074config POWER_BUTTON_FORCE_DISABLE
1075 def_bool n
1076 help
1077 Select when the board requires that the power button is always
1078 disabled, e.g. when it has been hardwired to ground.
1079
1080config POWER_BUTTON_IS_OPTIONAL
1081 bool
1082 default y if POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE
1083 default n if !(POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE)
1084 help
1085 Internal option that controls ENABLE_POWER_BUTTON visibility.
Duncan Laurie72748002013-10-31 08:26:23 -07001086
1087config REG_SCRIPT
1088 bool
Duncan Laurie72748002013-10-31 08:26:23 -07001089 default n
1090 help
1091 Internal option that controls whether we compile in register scripts.
Furquan Shaikh99ac98f2014-04-23 10:18:48 -07001092
Furquan Shaikh99ac98f2014-04-23 10:18:48 -07001093config MAX_REBOOT_CNT
1094 int
1095 default 3
Timothy Pearson17ada2e2015-03-18 01:31:34 -05001096 help
1097 Internal option that sets the maximum number of bootblock executions allowed
1098 with the normal image enabled before assuming the normal image is defective
Vadim Bendebury9c9c3362014-07-23 09:40:02 -07001099 and switching to the fallback image.
Martin Roth59ff3402016-02-09 09:06:46 -07001100
Lee Leahyfc3741f2016-05-26 17:12:17 -07001101config CREATE_BOARD_CHECKLIST
1102 bool
1103 default n
1104 help
1105 When selected, creates a webpage showing the implementation status for
1106 the board. Routines highlighted in green are complete, yellow are
1107 optional and red are required and must be implemented. A table is
1108 produced for each stage of the boot process except the bootblock. The
1109 red items may be used as an implementation checklist for the board.
1110
1111config MAKE_CHECKLIST_PUBLIC
1112 bool
1113 default n
1114 help
1115 When selected, build/$(CONFIG_MAINBOARD_PART_NUMBER)_checklist.html
1116 is copied into the Documentation/$(CONFIG_MAINBOARD_VENDOR)/Board
1117 directory.
1118
1119config CHECKLIST_DATA_FILE_LOCATION
1120 string
1121 help
1122 Location of the <stage>_complete.dat and <stage>_optional.dat files
1123 that are consumed during checklist processing. <stage>_complete.dat
1124 contains the symbols that are expected to be in the resulting image.
1125 <stage>_optional.dat is a subset of <stage>_complete.dat and contains
1126 a list of weak symbols which the resulting image may consume. Other
1127 symbols contained only in <stage>_complete.dat will be flagged as
1128 required and not implemented if a weak implementation is found in the
1129 resulting image.
Nico Hubere0ed9022016-10-07 12:58:17 +02001130
1131config RAMSTAGE_ADA
1132 def_bool n
1133 help
1134 Selected by features that use Ada code in ramstage.
Nico Huberc83239e2016-10-05 17:46:49 +02001135
1136config RAMSTAGE_LIBHWBASE
1137 def_bool n
1138 select RAMSTAGE_ADA
1139 help
1140 Selected by features that require `libhwbase` in ramstage.
1141
1142config HWBASE_DYNAMIC_MMIO
1143 def_bool y
Martin Roth75e5cb72016-12-15 15:05:37 -07001144
Martin Roth8e4aafb2016-12-15 15:25:15 -07001145config UNCOMPRESSED_RAMSTAGE
1146 bool
1147
1148config NO_XIP_EARLY_STAGES
1149 bool
1150 default n if ARCH_X86
1151 default y
1152 help
1153 Identify if early stages are eXecute-In-Place(XIP).
1154
1155config EARLY_CBMEM_INIT
1156 def_bool !LATE_CBMEM_INIT
1157
1158config EARLY_CBMEM_LIST
1159 bool
1160 default n
1161 help
1162 Enable display of CBMEM during romstage and postcar.
1163
1164config RELOCATABLE_MODULES
1165 bool
1166 help
1167 If RELOCATABLE_MODULES is selected then support is enabled for
1168 building relocatable modules in the RAM stage. Those modules can be
1169 loaded anywhere and all the relocations are handled automatically.
1170
1171config NO_STAGE_CACHE
1172 bool
1173 help
1174 Do not save any component in stage cache for resume path. On resume,
1175 all components would be read back from CBFS again.
1176
1177config GENERIC_GPIO_LIB
1178 bool
1179 help
1180 If enabled, compile the generic GPIO library. A "generic" GPIO
1181 implies configurability usually found on SoCs, particularly the
1182 ability to control internal pull resistors.
1183
1184config GENERIC_SPD_BIN
1185 bool
1186 help
1187 If enabled, add support for adding spd.hex files in cbfs as spd.bin
1188 and locating it runtime to load SPD. Additionally provide provision to
1189 fetch SPD over SMBus.
1190
1191config DIMM_MAX
1192 int
1193 default 4
1194 depends on GENERIC_SPD_BIN
1195 help
1196 Total number of memory DIMM slots available on motherboard.
1197 It is multiplication of number of channel to number of DIMMs per
1198 channel
1199
1200config DIMM_SPD_SIZE
1201 int
1202 default 256
Martin Roth8e4aafb2016-12-15 15:25:15 -07001203 help
1204 Total SPD size that will be used for DIMM.
1205 Ex: DDR3 256, DDR4 512.
1206
1207config BOARD_ID_AUTO
1208 bool
1209 default n
1210 help
1211 Mainboards that can read a board ID from the hardware straps
1212 (ie. GPIO) select this configuration option.
1213
1214config BOARD_ID_MANUAL
1215 bool
1216 default n
1217 depends on !BOARD_ID_AUTO
1218 help
1219 If you want to maintain a board ID, but the hardware does not
1220 have straps to automatically determine the ID, you can say Y
1221 here and add a file named 'board_id' to CBFS. If you don't know
1222 what this is about, say N.
1223
1224config BOOTBLOCK_CUSTOM
1225 # To be selected by arch, SoC or mainboard if it does not want use the normal
1226 # src/lib/bootblock.c#main() C entry point.
1227 bool
1228
1229config C_ENVIRONMENT_BOOTBLOCK
1230 # To be selected by arch or platform if a C environment is available during the
1231 # bootblock. Normally this signifies availability of RW memory (e.g. SRAM).
1232 bool
1233
Martin Roth75e5cb72016-12-15 15:05:37 -07001234###############################################################################
1235# Set default values for symbols created before mainboards. This allows the
1236# option to be displayed in the general menu, but the default to be loaded in
1237# the mainboard if desired.
1238config COMPRESS_RAMSTAGE
1239 default y if !UNCOMPRESSED_RAMSTAGE
1240
1241config COMPRESS_PRERAM_STAGES
1242 depends on !ARCH_X86
1243 default y
1244
1245config INCLUDE_CONFIG_FILE
1246 default y
1247
1248config BOARD_ID_STRING
1249 default "(none)"
1250 depends on BOARD_ID_MANUAL
1251
1252config BOOTSPLASH_FILE
1253 depends on BOOTSPLASH_IMAGE
1254 default "bootsplash.jpg"
1255
1256config CBFS_SIZE
1257 default ROM_SIZE