vendorcode/amd/pi/00670F00: Remove functions that use LibAmdMemRMW()
[coreboot.git] / src / Kconfig
blobbce3e32884c1072071217299f3d9e1d53ec7c285
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
5 ## Copyright (C) 2009-2010 coresystems GmbH
6 ##
7 ## 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.
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.
17 mainmenu "coreboot configuration"
19 menu "General setup"
21 config COREBOOT_BUILD
22         bool
23         default y
25 config LOCALVERSION
26         string "Local version string"
27         help
28           Append an extra string to the end of the coreboot version.
30           This can be useful if, for instance, you want to append the
31           respective board's hostname or some other identifying string to
32           the coreboot version number, so that you can easily distinguish
33           boot logs of different boards from each other.
35 config CBFS_PREFIX
36         string "CBFS prefix to use"
37         default "fallback"
38         help
39           Select the prefix to all files put into the image. It's "fallback"
40           by default, "normal" is a common alternative.
42 choice
43         prompt "Compiler to use"
44         default COMPILER_GCC
45         help
46           This option allows you to select the compiler used for building
47           coreboot.
48           You must build the coreboot crosscompiler for the board that you
49           have selected.
51           To build all the GCC crosscompilers (takes a LONG time), run:
52             make crossgcc
54           For help on individual architectures, run the command:
55             make help_toolchain
57 config COMPILER_GCC
58         bool "GCC"
59         help
60           Use the GNU Compiler Collection (GCC) to build coreboot.
62           For details see http://gcc.gnu.org.
64 config COMPILER_LLVM_CLANG
65         bool "LLVM/clang (TESTING ONLY - Not currently working)"
66         help
67           Use LLVM/clang to build coreboot.  To use this, you must build the
68           coreboot version of the clang compiler.  Run the command
69             make clang
70           Note that this option is not currently working correctly and should
71           really only be selected if you're trying to work on getting clang
72           operational.
74           For details see http://clang.llvm.org.
76 endchoice
78 config ANY_TOOLCHAIN
79         bool "Allow building with any toolchain"
80         default n
81         help
82           Many toolchains break when building coreboot since it uses quite
83           unusual linker features. Unless developers explicitely request it,
84           we'll have to assume that they use their distro compiler by mistake.
85           Make sure that using patched compilers is a conscious decision.
87 config CCACHE
88         bool "Use ccache to speed up (re)compilation"
89         default n
90         help
91           Enables the use of ccache for faster builds.
93           Requires the ccache utility in your system $PATH.
95           For details see https://ccache.samba.org.
97 config FMD_GENPARSER
98         bool "Generate flashmap descriptor parser using flex and bison"
99         default n
100         help
101           Enable this option if you are working on the flashmap descriptor
102           parser and made changes to fmd_scanner.l or fmd_parser.y.
104           Otherwise, say N to use the provided pregenerated scanner/parser.
106 config UTIL_GENPARSER
107         bool "Generate SCONFIG & BINCFG parser using flex and bison"
108         default n
109         help
110           Enable this option if you are working on the sconfig device tree
111           parser or bincfg and made changes to the .l or .y files.
113           Otherwise, say N to use the provided pregenerated scanner/parser.
115 config USE_OPTION_TABLE
116         bool "Use CMOS for configuration values"
117         depends on HAVE_OPTION_TABLE
118         help
119           Enable this option if coreboot shall read options from the "CMOS"
120           NVRAM instead of using hard-coded values.
122 config STATIC_OPTION_TABLE
123         bool "Load default configuration values into CMOS on each boot"
124         depends on USE_OPTION_TABLE
125         help
126           Enable this option to reset "CMOS" NVRAM values to default on
127           every boot.  Use this if you want the NVRAM configuration to
128           never be modified from its default values.
130 config COMPRESS_RAMSTAGE
131         bool "Compress ramstage with LZMA"
132         # Default value set at the end of the file
133         help
134           Compress ramstage to save memory in the flash image. Note
135           that decompression might slow down booting if the boot flash
136           is connected through a slow link (i.e. SPI).
138 config COMPRESS_PRERAM_STAGES
139         bool "Compress romstage and verstage with LZ4"
140         depends on !ARCH_X86
141         # Default value set at the end of the file
142         help
143           Compress romstage and (if it exists) verstage with LZ4 to save flash
144           space and speed up boot, since the time for reading the image from SPI
145           (and in the vboot case verifying it) is usually much greater than the
146           time spent decompressing. Doesn't work for XIP stages (assume all
147           ARCH_X86 for now) for obvious reasons.
149 config COMPRESS_BOOTBLOCK
150         bool
151         help
152           This option can be used to compress the bootblock with LZ4 and attach
153           a small self-decompression stub to its front. This can drastically
154           reduce boot time on platforms where the bootblock is loaded over a
155           very slow connection and bootblock size trumps all other factors for
156           speed. Since this using this option usually requires changes to the
157           SoC memlayout and possibly extra support code, it should not be
158           user-selectable. (There's no real point in offering this to the user
159           anyway... if it works and saves boot time, you would always want it.)
161 config INCLUDE_CONFIG_FILE
162         bool "Include the coreboot .config file into the ROM image"
163         # Default value set at the end of the file
164         help
165           Include the .config file that was used to compile coreboot
166           in the (CBFS) ROM image. This is useful if you want to know which
167           options were used to build a specific coreboot.rom image.
169           Saying Y here will increase the image size by 2-3KB.
171           You can use the following command to easily list the options:
173             grep -a CONFIG_ coreboot.rom
175           Alternatively, you can also use cbfstool to print the image
176           contents (including the raw 'config' item we're looking for).
178           Example:
180             $ cbfstool coreboot.rom print
181             coreboot.rom: 4096 kB, bootblocksize 1008, romsize 4194304,
182                                                        offset 0x0
183             Alignment: 64 bytes
185             Name                           Offset     Type         Size
186             cmos_layout.bin                0x0        cmos layout  1159
187             fallback/romstage              0x4c0      stage        339756
188             fallback/ramstage              0x53440    stage        186664
189             fallback/payload               0x80dc0    payload      51526
190             config                         0x8d740    raw          3324
191             (empty)                        0x8e480    null         3610440
193 config COLLECT_TIMESTAMPS
194         bool "Create a table of timestamps collected during boot"
195         default y if ARCH_X86
196         help
197           Make coreboot create a table of timer-ID/timer-value pairs to
198           allow measuring time spent at different phases of the boot process.
200 config TIMESTAMPS_ON_CONSOLE
201         bool "Print the timestamp values on the console"
202         default n
203         depends on COLLECT_TIMESTAMPS
204         help
205           Print the timestamps to the debug console if enabled at level spew.
207 config USE_BLOBS
208         bool "Allow use of binary-only repository"
209         help
210           This draws in the blobs repository, which contains binary files that
211           might be required for some chipsets or boards.
212           This flag ensures that a "Free" option remains available for users.
214 config COVERAGE
215         bool "Code coverage support"
216         depends on COMPILER_GCC
217         help
218           Add code coverage support for coreboot. This will store code
219           coverage information in CBMEM for extraction from user space.
220           If unsure, say N.
222 config UBSAN
223         bool "Undefined behavior sanitizer support"
224         default n
225         help
226           Instrument the code with checks for undefined behavior. If unsure,
227           say N because it adds a small performance penalty and may abort
228           on code that happens to work in spite of the UB.
230 config NO_RELOCATABLE_RAMSTAGE
231         bool
232         default n if ARCH_X86
233         default y
235 config RELOCATABLE_RAMSTAGE
236         bool
237         depends on EARLY_CBMEM_INIT
238         default !NO_RELOCATABLE_RAMSTAGE
239         select RELOCATABLE_MODULES
240         help
241          The reloctable ramstage support allows for the ramstage to be built
242          as a relocatable module. The stage loader can identify a place
243          out of the OS way so that copying memory is unnecessary during an S3
244          wake. When selecting this option the romstage is responsible for
245          determing a stack location to use for loading the ramstage.
247 config CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM
248         depends on RELOCATABLE_RAMSTAGE
249         bool
250         help
251          The relocated ramstage is saved in an area specified by the
252          by the board and/or chipset.
254 config UPDATE_IMAGE
255         bool "Update existing coreboot.rom image"
256         help
257           If this option is enabled, no new coreboot.rom file
258           is created. Instead it is expected that there already
259           is a suitable file for further processing.
260           The bootblock will not be modified.
262           If unsure, select 'N'
264 config BOOTSPLASH_IMAGE
265         bool "Add a bootsplash image"
266         help
267           Select this option if you have a bootsplash image that you would
268           like to add to your ROM.
270           This will only add the image to the ROM. To actually run it check
271           options under 'Display' section.
273 config BOOTSPLASH_FILE
274         string "Bootsplash path and filename"
275         depends on BOOTSPLASH_IMAGE
276         # Default value set at the end of the file
277         help
278           The path and filename of the file to use as graphical bootsplash
279           screen. The file format has to be jpg.
281 endmenu
283 menu "Mainboard"
285 source "src/mainboard/Kconfig"
287 config DEVICETREE
288         string
289         default "devicetree.cb"
290         help
291           This symbol allows mainboards to select a different file under their
292           mainboard directory for the devicetree.cb file.  This allows the board
293           variants that need different devicetrees to be in the same directory.
295           Examples: "devicetree.variant.cb"
296                     "variant/devicetree.cb"
298 config OVERRIDE_DEVICETREE
299         string
300         default ""
301         help
302           This symbol allows variants to provide an override devicetree file to
303           override the registers and/or add new devices on top of the ones
304           provided by baseboard devicetree using CONFIG_DEVICETREE.
306           Examples: "devicetree.variant-override.cb"
307                     "variant/devicetree-override.cb"
309 config CBFS_SIZE
310         hex "Size of CBFS filesystem in ROM"
311         # Default value set at the end of the file
312         help
313           This is the part of the ROM actually managed by CBFS, located at the
314           end of the ROM (passed through cbfstool -o) on x86 and at at the start
315           of the ROM (passed through cbfstool -s) everywhere else. It defaults
316           to span the whole ROM on all but Intel systems that use an Intel Firmware
317           Descriptor.  It can be overridden to make coreboot live alongside other
318           components like ChromeOS's vboot/FMAP or Intel's IFD / ME / TXE
319           binaries.
321 config FMDFILE
322         string "fmap description file in fmd format"
323         default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS
324         default ""
325         help
326           The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE,
327           but in some cases more complex setups are required.
328           When an fmd is specified, it overrides the default format.
330 endmenu
332 # load site-local kconfig to allow user specific defaults and overrides
333 source "site-local/Kconfig"
335 config SYSTEM_TYPE_LAPTOP
336         default n
337         bool
339 config CBFS_AUTOGEN_ATTRIBUTES
340         default n
341         bool
342         help
343           If this option is selected, every file in cbfs which has a constraint
344           regarding position or alignment will get an additional file attribute
345           which describes this constraint.
347 menu "Chipset"
349 comment "SoC"
350 source "src/soc/*/Kconfig"
351 comment "CPU"
352 source "src/cpu/Kconfig"
353 comment "Northbridge"
354 source "src/northbridge/*/*/Kconfig"
355 comment "Southbridge"
356 source "src/southbridge/*/*/Kconfig"
357 comment "Super I/O"
358 source "src/superio/*/*/Kconfig"
359 comment "Embedded Controllers"
360 source "src/ec/acpi/Kconfig"
361 source "src/ec/*/*/Kconfig"
362 # FIXME move to vendorcode
363 source "src/drivers/intel/fsp1_0/Kconfig"
365 source "src/southbridge/intel/common/firmware/Kconfig"
366 source "src/vendorcode/*/Kconfig"
368 source "src/arch/*/Kconfig"
370 endmenu
372 source "src/device/Kconfig"
374 menu "Generic Drivers"
375 source "src/drivers/*/Kconfig"
376 source "src/drivers/*/*/Kconfig"
377 source "src/commonlib/storage/Kconfig"
378 endmenu
380 menu "Security"
382 source "src/security/Kconfig"
384 endmenu
386 source "src/acpi/Kconfig"
388 # This option is for the current boards/chipsets where SPI flash
389 # is not the boot device. Currently nearly all boards/chipsets assume
390 # SPI flash is the boot device.
391 config BOOT_DEVICE_NOT_SPI_FLASH
392         bool
393         default n
395 config BOOT_DEVICE_SPI_FLASH
396         bool
397         default y if !BOOT_DEVICE_NOT_SPI_FLASH
398         default n
400 config BOOT_DEVICE_MEMORY_MAPPED
401         bool
402         default y if ARCH_X86 && BOOT_DEVICE_SPI_FLASH
403         default n
404         help
405           Inform system if SPI is memory-mapped or not.
407 config BOOT_DEVICE_SUPPORTS_WRITES
408         bool
409         default n
410         help
411           Indicate that the platform has writable boot device
412           support.
414 config RTC
415         bool
416         default n
418 config HEAP_SIZE
419         hex
420         default 0x4000
422 config STACK_SIZE
423         hex
424         default 0x1000 if ARCH_X86
425         default 0x0
427 config MAX_CPUS
428         int
429         default 1
431 source "src/console/Kconfig"
433 config HAVE_ACPI_RESUME
434         bool
435         default n
437 config ACPI_HUGE_LOWMEM_BACKUP
438         bool
439         default n
440         help
441           On S3 resume path, backup low memory from RAMBASE..RAMTOP in CBMEM.
443 config RESUME_PATH_SAME_AS_BOOT
444         bool
445         default y if ARCH_X86
446         depends on HAVE_ACPI_RESUME
447         help
448           This option indicates that when a system resumes it takes the
449           same path as a regular boot. e.g. an x86 system runs from the
450           reset vector at 0xfffffff0 on both resume and warm/cold boot.
452 config HAVE_HARD_RESET
453         bool
454         default n
455         help
456           This variable specifies whether a given board has a hard_reset
457           function, no matter if it's provided by board code or chipset code.
459 config HAVE_ROMSTAGE_CONSOLE_SPINLOCK
460         bool
461         depends on EARLY_CBMEM_INIT
462         default n
464 config HAVE_ROMSTAGE_NVRAM_CBFS_SPINLOCK
465         bool
466         depends on EARLY_CBMEM_INIT
467         default n
468         help
469           This should be enabled on certain plaforms, such as the AMD
470           SR565x, that cannot handle concurrent CBFS accesses from
471           multiple APs during early startup.
473 config HAVE_ROMSTAGE_MICROCODE_CBFS_SPINLOCK
474         bool
475         depends on EARLY_CBMEM_INIT
476         default n
478 config HAVE_MONOTONIC_TIMER
479         def_bool n
480         help
481          The board/chipset provides a monotonic timer.
483 config GENERIC_UDELAY
484         def_bool n
485         depends on HAVE_MONOTONIC_TIMER
486         help
487          The board/chipset uses a generic udelay function utilizing the
488          monotonic timer.
490 config TIMER_QUEUE
491         def_bool n
492         depends on HAVE_MONOTONIC_TIMER
493         help
494           Provide a timer queue for performing time-based callbacks.
496 config COOP_MULTITASKING
497         def_bool n
498         depends on TIMER_QUEUE && ARCH_X86
499         help
500           Cooperative multitasking allows callbacks to be multiplexed on the
501           main thread of ramstage. With this enabled it allows for multiple
502           execution paths to take place when they have udelay() calls within
503           their code.
505 config NUM_THREADS
506         int
507         default 4
508         depends on COOP_MULTITASKING
509         help
510           How many execution threads to cooperatively multitask with.
512 config HAVE_OPTION_TABLE
513         bool
514         default n
515         help
516           This variable specifies whether a given board has a cmos.layout
517           file containing NVRAM/CMOS bit definitions.
518           It defaults to 'n' but can be selected in mainboard/*/Kconfig.
520 config PIRQ_ROUTE
521         bool
522         default n
524 config HAVE_SMI_HANDLER
525         bool
526         default n
528 config PCI_IO_CFG_EXT
529         bool
530         default n
532 config IOAPIC
533         bool
534         default n
536 config USE_WATCHDOG_ON_BOOT
537         bool
538         default n
540 config GFXUMA
541         bool
542         default n
543         help
544           Enable Unified Memory Architecture for graphics.
546 config HAVE_ACPI_TABLES
547         bool
548         help
549           This variable specifies whether a given board has ACPI table support.
550           It is usually set in mainboard/*/Kconfig.
552 config HAVE_MP_TABLE
553         bool
554         help
555           This variable specifies whether a given board has MP table support.
556           It is usually set in mainboard/*/Kconfig.
557           Whether or not the MP table is actually generated by coreboot
558           is configurable by the user via GENERATE_MP_TABLE.
560 config HAVE_PIRQ_TABLE
561         bool
562         help
563           This variable specifies whether a given board has PIRQ table support.
564           It is usually set in mainboard/*/Kconfig.
565           Whether or not the PIRQ table is actually generated by coreboot
566           is configurable by the user via GENERATE_PIRQ_TABLE.
568 config MAX_PIRQ_LINKS
569         int
570         default 4
571         help
572           This variable specifies the number of PIRQ interrupt links which are
573           routable. On most chipsets, this is 4, INTA through INTD. Some
574           chipsets offer more than four links, commonly up to INTH. They may
575           also have a separate link for ATA or IOAPIC interrupts. When the PIRQ
576           table specifies links greater than 4, pirq_route_irqs will not
577           function properly, unless this variable is correctly set.
579 config COMMON_FADT
580         bool
581         default n
583 config ACPI_NHLT
584         bool
585         default n
586         help
587           Build support for NHLT (non HD Audio) ACPI table generation.
589 #These Options are here to avoid "undefined" warnings.
590 #The actual selection and help texts are in the following menu.
592 menu "System tables"
594 config GENERATE_MP_TABLE
595         prompt "Generate an MP table" if HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC
596         bool
597         default HAVE_MP_TABLE || DRIVERS_GENERIC_IOAPIC
598         help
599           Generate an MP table (conforming to the Intel MultiProcessor
600           specification 1.4) for this board.
602           If unsure, say Y.
604 config GENERATE_PIRQ_TABLE
605         prompt "Generate a PIRQ table" if HAVE_PIRQ_TABLE
606         bool
607         default HAVE_PIRQ_TABLE
608         help
609           Generate a PIRQ table for this board.
611           If unsure, say Y.
613 config GENERATE_SMBIOS_TABLES
614         depends on ARCH_X86
615         bool "Generate SMBIOS tables"
616         default y
617         help
618           Generate SMBIOS tables for this board.
620           If unsure, say Y.
622 config SMBIOS_PROVIDED_BY_MOBO
623         bool
624         default n
626 config MAINBOARD_SERIAL_NUMBER
627         string "SMBIOS Serial Number"
628         depends on GENERATE_SMBIOS_TABLES
629         depends on !SMBIOS_PROVIDED_BY_MOBO
630         default "123456789"
631         help
632           The Serial Number to store in SMBIOS structures.
634 config MAINBOARD_VERSION
635         string "SMBIOS Version Number"
636         depends on GENERATE_SMBIOS_TABLES
637         depends on !SMBIOS_PROVIDED_BY_MOBO
638         default "1.0"
639         help
640           The Version Number to store in SMBIOS structures.
642 config MAINBOARD_SMBIOS_MANUFACTURER
643         string "SMBIOS Manufacturer"
644         depends on GENERATE_SMBIOS_TABLES
645         depends on !SMBIOS_PROVIDED_BY_MOBO
646         default MAINBOARD_VENDOR
647         help
648           Override the default Manufacturer stored in SMBIOS structures.
650 config MAINBOARD_SMBIOS_PRODUCT_NAME
651         string "SMBIOS Product name"
652         depends on GENERATE_SMBIOS_TABLES
653         depends on !SMBIOS_PROVIDED_BY_MOBO
654         default MAINBOARD_PART_NUMBER
655         help
656           Override the default Product name stored in SMBIOS structures.
658 config SMBIOS_ENCLOSURE_TYPE
659         hex
660         depends on GENERATE_SMBIOS_TABLES
661         default 0x09 if SYSTEM_TYPE_LAPTOP
662         default 0x03
663         help
664           System Enclosure or Chassis Types as defined in SMBIOS specification.
665           The default value is SMBIOS_ENCLOSURE_DESKTOP (0x03) or
666           SMBIOS_ENCLOSURE_LAPTOP (0x09) if SYSTEM_TYPE_LAPTOP is set.
668 endmenu
670 source "payloads/Kconfig"
672 menu "Debugging"
674 # TODO: Better help text and detailed instructions.
675 config GDB_STUB
676         bool "GDB debugging support"
677         default n
678         depends on CONSOLE_SERIAL
679         help
680           If enabled, you will be able to set breakpoints for gdb debugging.
681           See src/arch/x86/lib/c_start.S for details.
683 config GDB_WAIT
684         bool "Wait for a GDB connection in the ramstage"
685         default n
686         depends on GDB_STUB
687         help
688           If enabled, coreboot will wait for a GDB connection in the ramstage.
691 config FATAL_ASSERTS
692         bool "Halt when hitting a BUG() or assertion error"
693         default n
694         help
695           If enabled, coreboot will call hlt() on a BUG() or failed ASSERT().
697 config DEBUG_CBFS
698         bool "Output verbose CBFS debug messages"
699         default n
700         help
701           This option enables additional CBFS related debug messages.
703 config HAVE_DEBUG_RAM_SETUP
704         def_bool n
706 config DEBUG_RAM_SETUP
707         bool "Output verbose RAM init debug messages"
708         default n
709         depends on HAVE_DEBUG_RAM_SETUP
710         help
711           This option enables additional RAM init related debug messages.
712           It is recommended to enable this when debugging issues on your
713           board which might be RAM init related.
715           Note: This option will increase the size of the coreboot image.
717           If unsure, say N.
719 config HAVE_DEBUG_CAR
720         def_bool n
722 config DEBUG_CAR
723         def_bool n
724         depends on HAVE_DEBUG_CAR
726 if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
727 # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
728 # printk(BIOS_DEBUG, ...) calls.
729 config DEBUG_CAR
730         bool "Output verbose Cache-as-RAM debug messages"
731         default n
732         depends on HAVE_DEBUG_CAR
733         help
734           This option enables additional CAR related debug messages.
735 endif
737 config DEBUG_PIRQ
738         bool "Check PIRQ table consistency"
739         default n
740         depends on GENERATE_PIRQ_TABLE
741         help
742           If unsure, say N.
744 config HAVE_DEBUG_SMBUS
745         def_bool n
747 config DEBUG_SMBUS
748         bool "Output verbose SMBus debug messages"
749         default n
750         depends on HAVE_DEBUG_SMBUS
751         help
752           This option enables additional SMBus (and SPD) debug messages.
754           Note: This option will increase the size of the coreboot image.
756           If unsure, say N.
758 config DEBUG_SMI
759         bool "Output verbose SMI debug messages"
760         default n
761         depends on HAVE_SMI_HANDLER
762         select SPI_FLASH_SMM if SPI_CONSOLE || CONSOLE_SPI_FLASH
763         help
764           This option enables additional SMI related debug messages.
766           Note: This option will increase the size of the coreboot image.
768           If unsure, say N.
770 config DEBUG_SMM_RELOCATION
771         bool "Debug SMM relocation code"
772         default n
773         depends on HAVE_SMI_HANDLER
774         help
775           This option enables additional SMM handler relocation related
776           debug messages.
778           Note: This option will increase the size of the coreboot image.
780           If unsure, say N.
782 # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
783 # printk(BIOS_DEBUG, ...) calls.
784 config DEBUG_MALLOC
785         prompt "Output verbose malloc debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
786         bool
787         default n
788         help
789           This option enables additional malloc related debug messages.
791           Note: This option will increase the size of the coreboot image.
793           If unsure, say N.
795 # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
796 # printk(BIOS_DEBUG, ...) calls.
797 config DEBUG_ACPI
798         prompt "Output verbose ACPI debug messages" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
799         bool
800         default n
801         help
802           This option enables additional ACPI related debug messages.
804           Note: This option will slightly increase the size of the coreboot image.
806           If unsure, say N.
808 # Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
809 # printk(BIOS_DEBUG, ...) calls.
810 config REALMODE_DEBUG
811         prompt "Enable debug messages for option ROM execution" if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
812         bool
813         default n
814         depends on PCI_OPTION_ROM_RUN_REALMODE
815         help
816           This option enables additional x86emu related debug messages.
818           Note: This option will increase the time to emulate a ROM.
820           If unsure, say N.
822 config X86EMU_DEBUG
823         bool "Output verbose x86emu debug messages"
824         default n
825         depends on PCI_OPTION_ROM_RUN_YABEL
826         help
827           This option enables additional x86emu related debug messages.
829           Note: This option will increase the size of the coreboot image.
831           If unsure, say N.
833 config X86EMU_DEBUG_JMP
834         bool "Trace JMP/RETF"
835         default n
836         depends on X86EMU_DEBUG
837         help
838           Print information about JMP and RETF opcodes from x86emu.
840           Note: This option will increase the size of the coreboot image.
842           If unsure, say N.
844 config X86EMU_DEBUG_TRACE
845         bool "Trace all opcodes"
846         default n
847         depends on X86EMU_DEBUG
848         help
849           Print _all_ opcodes that are executed by x86emu.
851           WARNING: This will produce a LOT of output and take a long time.
853           Note: This option will increase the size of the coreboot image.
855           If unsure, say N.
857 config X86EMU_DEBUG_PNP
858         bool "Log Plug&Play accesses"
859         default n
860         depends on X86EMU_DEBUG
861         help
862           Print Plug And Play accesses made by option ROMs.
864           Note: This option will increase the size of the coreboot image.
866           If unsure, say N.
868 config X86EMU_DEBUG_DISK
869         bool "Log Disk I/O"
870         default n
871         depends on X86EMU_DEBUG
872         help
873           Print Disk I/O related messages.
875           Note: This option will increase the size of the coreboot image.
877           If unsure, say N.
879 config X86EMU_DEBUG_PMM
880         bool "Log PMM"
881         default n
882         depends on X86EMU_DEBUG
883         help
884           Print messages related to POST Memory Manager (PMM).
886           Note: This option will increase the size of the coreboot image.
888           If unsure, say N.
891 config X86EMU_DEBUG_VBE
892         bool "Debug VESA BIOS Extensions"
893         default n
894         depends on X86EMU_DEBUG
895         help
896           Print messages related to VESA BIOS Extension (VBE) functions.
898           Note: This option will increase the size of the coreboot image.
900           If unsure, say N.
902 config X86EMU_DEBUG_INT10
903         bool "Redirect INT10 output to console"
904         default n
905         depends on X86EMU_DEBUG
906         help
907           Let INT10 (i.e. character output) calls print messages to debug output.
909           Note: This option will increase the size of the coreboot image.
911           If unsure, say N.
913 config X86EMU_DEBUG_INTERRUPTS
914         bool "Log intXX calls"
915         default n
916         depends on X86EMU_DEBUG
917         help
918           Print messages related to interrupt handling.
920           Note: This option will increase the size of the coreboot image.
922           If unsure, say N.
924 config X86EMU_DEBUG_CHECK_VMEM_ACCESS
925         bool "Log special memory accesses"
926         default n
927         depends on X86EMU_DEBUG
928         help
929           Print messages related to accesses to certain areas of the virtual
930           memory (e.g. BDA (BIOS Data Area) or interrupt vectors)
932           Note: This option will increase the size of the coreboot image.
934           If unsure, say N.
936 config X86EMU_DEBUG_MEM
937         bool "Log all memory accesses"
938         default n
939         depends on X86EMU_DEBUG
940         help
941           Print memory accesses made by option ROM.
942           Note: This also includes accesses to fetch instructions.
944           Note: This option will increase the size of the coreboot image.
946           If unsure, say N.
948 config X86EMU_DEBUG_IO
949         bool "Log IO accesses"
950         default n
951         depends on X86EMU_DEBUG
952         help
953           Print I/O accesses made by option ROM.
955           Note: This option will increase the size of the coreboot image.
957           If unsure, say N.
959 config X86EMU_DEBUG_TIMINGS
960         bool "Output timing information"
961         default n
962         depends on X86EMU_DEBUG && UDELAY_LAPIC && HAVE_MONOTONIC_TIMER
963         help
964           Print timing information needed by i915tool.
966           If unsure, say N.
968 config DEBUG_SPI_FLASH
969         bool "Output verbose SPI flash debug messages"
970         default n
971         depends on SPI_FLASH
972         help
973           This option enables additional SPI flash related debug messages.
975 config DEBUG_USBDEBUG
976         bool "Output verbose USB 2.0 EHCI debug dongle messages"
977         default n
978         depends on USBDEBUG
979         help
980           This option enables additional USB 2.0 debug dongle related messages.
982           Select this to debug the connection of usbdebug dongle. Note that
983           you need some other working console to receive the messages.
985 if SOUTHBRIDGE_INTEL_BD82X6X && DEFAULT_CONSOLE_LOGLEVEL_8
986 # Only visible with the right southbridge and loglevel.
987 config DEBUG_INTEL_ME
988         bool "Verbose logging for Intel Management Engine"
989         default n
990         help
991           Enable verbose logging for Intel Management Engine driver that
992           is present on Intel 6-series chipsets.
993 endif
995 config TRACE
996         bool "Trace function calls"
997         default n
998         help
999           If enabled, every function will print information to console once
1000           the function is entered. The syntax is ~0xaaaabbbb(0xccccdddd)
1001           the 0xaaaabbbb is the actual function and 0xccccdddd is EIP
1002           of calling function. Please note some printk related functions
1003           are omitted from trace to have good looking console dumps.
1005 config DEBUG_COVERAGE
1006         bool "Debug code coverage"
1007         default n
1008         depends on COVERAGE
1009         help
1010           If enabled, the code coverage hooks in coreboot will output some
1011           information about the coverage data that is dumped.
1013 config DEBUG_BOOT_STATE
1014         bool "Debug boot state machine"
1015         default n
1016         help
1017           Control debugging of the boot state machine.  When selected displays
1018           the state boundaries in ramstage.
1020 config DEBUG_ADA_CODE
1021         bool "Compile debug code in Ada sources"
1022         default n
1023         help
1024           Add the compiler switch `-gnata` to compile code guarded by
1025           `pragma Debug`.
1027 config HAVE_EM100_SUPPORT
1028         bool "Platform can support the Dediprog EM100 SPI emulator"
1029         help
1030           This is enabled by platforms which can support using the EM100.
1032 config EM100
1033         bool "Configure image for EM100 usage"
1034         depends on HAVE_EM100_SUPPORT
1035         help
1036           The Dediprog EM100 SPI emulator allows fast loading of new SPI images
1037           over USB. However it only supports a maximum SPI clock of 20MHz and
1038           single data output. Enable this option to use a 20MHz SPI clock and
1039           disable "Dual Output Fast Read" Support.
1041           On AMD platforms this changes the SPI speed at run-time if the
1042           mainboard code supports this. On supported Intel platforms this works
1043           by changing the settings in the descriptor.bin file.
1045 endmenu
1048 ###############################################################################
1049 # Set variables with no prompt - these can be set anywhere, and putting at
1050 # the end of this file gives the most flexibility.
1052 source "src/lib/Kconfig"
1054 config ENABLE_APIC_EXT_ID
1055         bool
1056         default n
1058 config WARNINGS_ARE_ERRORS
1059         bool
1060         default y
1062 # The four POWER_BUTTON_DEFAULT_ENABLE, POWER_BUTTON_DEFAULT_DISABLE,
1063 # POWER_BUTTON_FORCE_ENABLE and POWER_BUTTON_FORCE_DISABLE options are
1064 # mutually exclusive. One of these options must be selected in the
1065 # mainboard Kconfig if the chipset supports enabling and disabling of
1066 # the power button. Chipset code uses the ENABLE_POWER_BUTTON option set
1067 # in mainboard/Kconfig to know if the button should be enabled or not.
1069 config POWER_BUTTON_DEFAULT_ENABLE
1070         def_bool n
1071         help
1072           Select when the board has a power button which can optionally be
1073           disabled by the user.
1075 config POWER_BUTTON_DEFAULT_DISABLE
1076         def_bool n
1077         help
1078           Select when the board has a power button which can optionally be
1079           enabled by the user, e.g. when the board ships with a jumper over
1080           the power switch contacts.
1082 config POWER_BUTTON_FORCE_ENABLE
1083         def_bool n
1084         help
1085           Select when the board requires that the power button is always
1086           enabled.
1088 config POWER_BUTTON_FORCE_DISABLE
1089         def_bool n
1090         help
1091           Select when the board requires that the power button is always
1092           disabled, e.g. when it has been hardwired to ground.
1094 config POWER_BUTTON_IS_OPTIONAL
1095         bool
1096         default y if POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE
1097         default n if !(POWER_BUTTON_DEFAULT_ENABLE || POWER_BUTTON_DEFAULT_DISABLE)
1098         help
1099           Internal option that controls ENABLE_POWER_BUTTON visibility.
1101 config REG_SCRIPT
1102         bool
1103         default n
1104         help
1105           Internal option that controls whether we compile in register scripts.
1107 config MAX_REBOOT_CNT
1108         int
1109         default 3
1110         help
1111           Internal option that sets the maximum number of bootblock executions allowed
1112           with the normal image enabled before assuming the normal image is defective
1113           and switching to the fallback image.
1115 config CREATE_BOARD_CHECKLIST
1116         bool
1117         default n
1118         help
1119           When selected, creates a webpage showing the implementation status for
1120           the board.  Routines highlighted in green are complete, yellow are
1121           optional and red are required and must be implemented.  A table is
1122           produced for each stage of the boot process except the bootblock.  The
1123           red items may be used as an implementation checklist for the board.
1125 config MAKE_CHECKLIST_PUBLIC
1126         bool
1127         default n
1128         help
1129           When selected, build/$(CONFIG_MAINBOARD_PART_NUMBER)_checklist.html
1130           is copied into the Documentation/$(CONFIG_MAINBOARD_VENDOR)/Board
1131           directory.
1133 config CHECKLIST_DATA_FILE_LOCATION
1134         string
1135         help
1136           Location of the <stage>_complete.dat and <stage>_optional.dat files
1137           that are consumed during checklist processing.  <stage>_complete.dat
1138           contains the symbols that are expected to be in the resulting image.
1139           <stage>_optional.dat is a subset of <stage>_complete.dat and contains
1140           a list of weak symbols which the resulting image may consume.  Other
1141           symbols contained only in <stage>_complete.dat will be flagged as
1142           required and not implemented if a weak implementation is found in the
1143           resulting image.
1145 config UNCOMPRESSED_RAMSTAGE
1146         bool
1148 config 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).
1155 config EARLY_CBMEM_INIT
1156         def_bool !LATE_CBMEM_INIT
1158 config EARLY_CBMEM_LIST
1159         bool
1160         default n
1161         help
1162           Enable display of CBMEM during romstage and postcar.
1164 config 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.
1171 config NO_STAGE_CACHE
1172         bool
1173         default y if !HAVE_ACPI_RESUME
1174         help
1175           Do not save any component in stage cache for resume path. On resume,
1176           all components would be read back from CBFS again.
1178 config GENERIC_GPIO_LIB
1179         bool
1180         help
1181           If enabled, compile the generic GPIO library. A "generic" GPIO
1182           implies configurability usually found on SoCs, particularly the
1183           ability to control internal pull resistors.
1185 config GENERIC_SPD_BIN
1186         bool
1187         help
1188           If enabled, add support for adding spd.hex files in cbfs as spd.bin
1189           and locating it runtime to load SPD. Additionally provide provision to
1190           fetch SPD over SMBus.
1192 config DIMM_MAX
1193         int
1194         default 4
1195         depends on GENERIC_SPD_BIN
1196         help
1197           Total number of memory DIMM slots available on motherboard.
1198           It is multiplication of number of channel to number of DIMMs per
1199           channel
1201 config DIMM_SPD_SIZE
1202         int
1203         default 256
1204         help
1205           Total SPD size that will be used for DIMM.
1206           Ex: DDR3 256, DDR4 512.
1208 config SPD_READ_BY_WORD
1209         bool
1211 config BOOTBLOCK_CUSTOM
1212         # To be selected by arch, SoC or mainboard if it does not want use the normal
1213         # src/lib/bootblock.c#main() C entry point.
1214         bool
1216 config C_ENVIRONMENT_BOOTBLOCK
1217         # To be selected by arch or platform if a C environment is available during the
1218         # bootblock. Normally this signifies availability of RW memory (e.g. SRAM).
1219         bool
1221 ###############################################################################
1222 # Set default values for symbols created before mainboards.  This allows the
1223 # option to be displayed in the general menu, but the default to be loaded in
1224 # the mainboard if desired.
1225 config COMPRESS_RAMSTAGE
1226         default y if !UNCOMPRESSED_RAMSTAGE
1228 config COMPRESS_PRERAM_STAGES
1229         depends on !ARCH_X86
1230         default y
1232 config INCLUDE_CONFIG_FILE
1233         default y
1235 config BOOTSPLASH_FILE
1236         depends on BOOTSPLASH_IMAGE
1237         default "bootsplash.jpg"
1239 config CBFS_SIZE
1240         default ROM_SIZE