blob: e5b90bbcb081caca077d549dd5aef9ce65076f1f [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Patrick Georgi0588d192009-08-12 15:00:51 +00002
Stefan Reinauer95a63962012-11-13 17:00:01 -08003menu "Devices"
Ronald G. Minnich69efaa02013-02-26 10:07:40 -08004
Nico Huberce642f02017-05-19 15:08:21 +02005config HAVE_VGA_TEXT_FRAMEBUFFER
Vladimir Serbinenko160e9a02014-02-22 10:34:47 +01006 bool
Jeremy Compostella765e5df2022-12-01 15:45:51 -07007 depends on !(NO_GFX_INIT && NO_EARLY_GFX_INIT)
Nico Huber7971582e2017-05-20 01:07:48 +02008 help
9 Selected by graphics drivers that support legacy VGA text mode.
10
11config HAVE_VBE_LINEAR_FRAMEBUFFER
12 bool
Michael Niewöhner1513d722019-10-29 20:38:10 +010013 depends on !NO_GFX_INIT
Nico Huber7971582e2017-05-20 01:07:48 +020014 help
15 Selected by graphics drivers that can set up a VBE linear-framebuffer
16 mode.
17
18config HAVE_LINEAR_FRAMEBUFFER
19 bool
Michael Niewöhner1513d722019-10-29 20:38:10 +010020 depends on !NO_GFX_INIT
Nico Huber7971582e2017-05-20 01:07:48 +020021 help
22 Selected by graphics drivers that can set up a generic linear
23 framebuffer.
Vladimir Serbinenko160e9a02014-02-22 10:34:47 +010024
Nico Huber2e7f6cc2017-05-22 15:58:03 +020025config HAVE_FSP_GOP
26 bool
27 help
28 Selected by drivers that support to run a blob that implements
29 the Graphics Output Protocol (GOP).
30
Michael Niewöhnerd61a40e2019-10-26 10:37:42 +020031config MAINBOARD_NO_FSP_GOP
32 bool
33 help
34 Selected by mainboards that do not have any graphics ports connected to the SoC.
35
Nico Huber26ce9af2017-05-22 13:22:09 +020036config MAINBOARD_HAS_NATIVE_VGA_INIT
37 def_bool n
38 help
39 Selected by mainboards / drivers that provide native graphics
40 init within coreboot.
41
42config MAINBOARD_FORCE_NATIVE_VGA_INIT
43 def_bool n
44 depends on MAINBOARD_HAS_NATIVE_VGA_INIT || MAINBOARD_HAS_LIBGFXINIT
Nico Huber26ce9af2017-05-22 13:22:09 +020045 help
46 Selected by mainboards / chipsets whose graphics driver can't or
47 shouldn't be disabled.
48
Subrata Banikaf039362020-12-30 16:09:56 +053049config VGA_ROM_RUN_DEFAULT
50 def_bool n
51 help
52 Selected by mainboards whose graphics initialization depends on VGA OpROM.
53 coreboot needs to load/execute legacy VGA OpROM in order to initialize GFX.
54
Nico Huber542e9482016-10-05 17:47:32 +020055config MAINBOARD_HAS_LIBGFXINIT
56 def_bool n
Nico Huber542e9482016-10-05 17:47:32 +020057 help
58 Selected by mainboards that implement support for `libgfxinit`.
59 Usually this requires a list of ports to be probed for displays.
60
Jeremy Compostella765e5df2022-12-01 15:45:51 -070061config MAINBOARD_HAS_EARLY_LIBGFXINIT
62 def_bool n
63 help
64 Selected by mainboards that implement early (cache-as-ram
65 stage) support of `libgfxinit`. Usually this requires a list
66 of ports to be probed for displays.
67
Nico Huberd4ebeaf2017-05-22 13:49:22 +020068choice
69 prompt "Graphics initialization"
Subrata Banikaf039362020-12-30 16:09:56 +053070 default NO_GFX_INIT if VGA_ROM_RUN_DEFAULT && PAYLOAD_SEABIOS
71 default VGA_ROM_RUN if VGA_ROM_RUN_DEFAULT
Matt DeVillier8107c812020-03-27 03:09:21 -050072 default MAINBOARD_DO_NATIVE_VGA_INIT
73 default MAINBOARD_USE_LIBGFXINIT
Matt DeVillier175ffd82020-03-29 18:20:23 -050074 default RUN_FSP_GOP if INTEL_GMA_HAVE_VBT
Nico Huberd4ebeaf2017-05-22 13:49:22 +020075
76config MAINBOARD_DO_NATIVE_VGA_INIT
77 bool "Use native graphics init"
78 depends on MAINBOARD_HAS_NATIVE_VGA_INIT
79 help
80 Some mainboards, such as the Google Link, allow initializing the
81 display without the need of a binary only VGA OPROM. Enabling this
82 option may be faster, but also lacks flexibility in setting modes.
83
Nico Huber542e9482016-10-05 17:47:32 +020084config MAINBOARD_USE_LIBGFXINIT
Nico Huberd4ebeaf2017-05-22 13:49:22 +020085 bool "Use libgfxinit"
Nico Huber542e9482016-10-05 17:47:32 +020086 depends on MAINBOARD_HAS_LIBGFXINIT
Nico Huberce642f02017-05-19 15:08:21 +020087 select HAVE_VGA_TEXT_FRAMEBUFFER
Nico Huber7971582e2017-05-20 01:07:48 +020088 select HAVE_LINEAR_FRAMEBUFFER
Nico Huber6d8266b2017-05-20 16:46:01 +020089 select VGA if VGA_TEXT_FRAMEBUFFER
Nico Huber542e9482016-10-05 17:47:32 +020090 help
91 Use the SPARK library `libgfxinit` for the native graphics
92 initialization. This requires an Ada toolchain.
93
Uwe Hermann168b11b2009-10-07 16:15:40 +000094# TODO: Explain differences (if any) for onboard cards.
Patrick Georgi0588d192009-08-12 15:00:51 +000095config VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -070096 bool "Run VGA Option ROMs"
Jonathan Neuschäferc22ad582018-11-30 00:06:50 +010097 depends on PCI && (ARCH_X86 || ARCH_PPC64) && !MAINBOARD_FORCE_NATIVE_VGA_INIT
Nico Huberce642f02017-05-19 15:08:21 +020098 select HAVE_VGA_TEXT_FRAMEBUFFER
Patrick Georgi0588d192009-08-12 15:00:51 +000099 help
Nico Huberd4ebeaf2017-05-22 13:49:22 +0200100 Execute VGA Option ROMs in coreboot if found. This can be used
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200101 to enable PCI/AGP/PCI-E video cards when not using a SeaBIOS
102 payload.
103
104 When using a SeaBIOS payload it runs all option ROMs with much
105 more complete BIOS interrupt services available than coreboot,
106 which some option ROMs require in order to function correctly.
107
Arthur Heymans4ad1f7d2018-01-16 17:22:20 +0100108config RUN_FSP_GOP
109 bool "Run a GOP driver"
Michael Niewöhnerd61a40e2019-10-26 10:37:42 +0200110 depends on HAVE_FSP_GOP && !MAINBOARD_NO_FSP_GOP
Arthur Heymans4ad1f7d2018-01-16 17:22:20 +0100111 select HAVE_LINEAR_FRAMEBUFFER
112 help
113 Some platforms (e.g. Intel Braswell and Skylake/Kaby Lake) support
114 to run a GOP blob. This option enables graphics initialization with
115 such a blob.
116
Nico Huberd4ebeaf2017-05-22 13:49:22 +0200117config NO_GFX_INIT
118 bool "None"
119 depends on !MAINBOARD_FORCE_NATIVE_VGA_INIT
120 help
121 Select this to not perform any graphics initialization in
122 coreboot. This is useful if the payload (e.g. SeaBIOS) can
123 initialize graphics or if pre-boot graphics are not required.
124
125endchoice
Myles Watsone6804952009-08-28 14:36:12 +0000126
Jeremy Compostella765e5df2022-12-01 15:45:51 -0700127choice
128 prompt "Early (romstage) graphics initialization"
129 default MAINBOARD_USE_EARLY_LIBGFXINIT if MAINBOARD_HAS_EARLY_LIBGFXINIT
130 default NO_EARLY_GFX_INIT
131
132config NO_EARLY_GFX_INIT
133 bool "None"
134 help
135 Select this to not perform any graphics initialization at
136 romstage.
137
138config MAINBOARD_USE_EARLY_LIBGFXINIT
139 bool "Use libgfxinit"
140 depends on MAINBOARD_HAS_EARLY_LIBGFXINIT
141 select ROMSTAGE_VGA
142 help
143 Use the SPARK library `libgfxinit` for the romstage native
144 graphics initialization. This requires an Ada
145 toolchain. Graphics at romstage is limited to VGA text mode.
146
147endchoice
148
Paul Menzelc4062c72021-02-11 10:43:14 +0100149config PRE_GRAPHICS_DELAY_MS
Kyösti Mälkki0f300632020-12-19 23:43:56 +0200150 int "Graphics initialization delay in ms"
151 default 0
152 depends on VGA_ROM_RUN
153 help
154 On some systems, coreboot boots so fast that connected monitors
155 (mostly TVs) won't be able to wake up fast enough to talk to the
156 VBIOS. On those systems we need to wait for a bit before executing
157 the VBIOS.
158
Arthur Heymansb43ec472019-03-24 20:39:45 +0100159config ONBOARD_VGA_IS_PRIMARY
160 bool "Use onboard VGA as primary video device"
161 default n
162 depends on PCI
163 help
164 This option lets you select which VGA device will be used
165 to decode legacy VGA cycles. Not all chipsets implement this
166 however. If not selected, the last adapter found will be used,
167 else the onboard adapter is used.
168
Stefan Reinauer0a500842011-09-23 10:33:58 -0700169config S3_VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700170 bool "Re-run VGA Option ROMs on S3 resume"
Stefan Reinauer0a500842011-09-23 10:33:58 -0700171 default y
172 depends on VGA_ROM_RUN && HAVE_ACPI_RESUME
173 help
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200174 Execute VGA Option ROMs in coreboot when resuming from S3 suspend.
175
176 When using a SeaBIOS payload it runs all option ROMs with much
177 more complete BIOS interrupt services available than coreboot,
178 which some option ROMs require in order to function correctly.
179
180 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauer0a500842011-09-23 10:33:58 -0700181
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300182config ALWAYS_LOAD_OPROM
183 def_bool n
184 depends on VGA_ROM_RUN
185 help
Daniele Forsi53847a22014-07-22 18:00:56 +0200186 Always load option ROMs if any are found. The decision to run
187 the ROM is still determined at runtime, but the distinction
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300188 between loading and not running comes into play for CHROMEOS.
189
Daniele Forsi53847a22014-07-22 18:00:56 +0200190 An example where this is required is that VBT (Video BIOS Tables)
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300191 are needed for the kernel's display driver to know how a piece of
192 hardware is configured to be used.
193
Aaron Durbin10510252018-01-30 10:04:02 -0700194config ALWAYS_RUN_OPROM
195 def_bool n
196 depends on VGA_ROM_RUN && ALWAYS_LOAD_OPROM
197 help
Martin Roth0949e732021-10-01 14:28:22 -0600198 Always unconditionally run the option regardless of other
Aaron Durbin10510252018-01-30 10:04:02 -0700199 policies.
200
Patrick Rudolph647e34d2016-02-11 08:36:50 +0100201config ON_DEVICE_ROM_LOAD
202 bool "Load Option ROMs on PCI devices"
Peter Stugebe0ede42012-10-27 14:17:04 +0200203 default n if PAYLOAD_SEABIOS
204 default y if !PAYLOAD_SEABIOS
Nico Huber49d99fc2017-05-20 17:56:02 +0200205 depends on VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700206 help
Nico Huber49d99fc2017-05-20 17:56:02 +0200207 Load Option ROMs stored on PCI/PCIe/AGP VGA devices in coreboot.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700208
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200209 If disabled, only Option ROMs stored in CBFS will be executed by
210 coreboot. If you are concerned about security, you might want to
211 disable this option, but it might leave your system in a state of
212 degraded functionality.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700213
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200214 When using a SeaBIOS payload it runs all option ROMs with much
215 more complete BIOS interrupt services available than coreboot,
216 which some option ROMs require in order to function correctly.
217
218 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700219
Patrick Georgi0588d192009-08-12 15:00:51 +0000220choice
Uwe Hermann168b11b2009-10-07 16:15:40 +0000221 prompt "Option ROM execution type"
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000222 default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
223 default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
Arthur Heymans57f70a12018-12-20 10:27:19 +0100224 depends on VGA_ROM_RUN
Uwe Hermann168b11b2009-10-07 16:15:40 +0000225
226config PCI_OPTION_ROM_RUN_REALMODE
Stefan Reinauerd650e992010-02-22 04:33:13 +0000227 prompt "Native mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000228 bool
Arthur Heymanse095c462022-11-12 16:21:03 +0100229 depends on ARCH_X86 && !ARCH_RAMSTAGE_X86_64
Myles Watson28412f52009-09-17 16:54:46 +0000230 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700231 If you select this option, PCI Option ROMs will be executed
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000232 natively on the CPU in real mode. No CPU emulation is involved,
233 so this is the fastest, but also the least secure option.
234 (only works on x86/x64 systems)
Patrick Georgi0588d192009-08-12 15:00:51 +0000235
Stefan Reinauerd650e992010-02-22 04:33:13 +0000236config PCI_OPTION_ROM_RUN_YABEL
Uwe Hermann548dbe72010-02-22 16:41:49 +0000237 prompt "Secure mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000238 bool
239 help
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000240 If you select this option, the x86emu CPU emulator will be used to
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700241 execute PCI Option ROMs.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000242
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700243 This option prevents Option ROMs from doing dirty tricks with the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000244 system (such as installing SMM modules or hypervisors), but it is
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700245 also significantly slower than the native Option ROM initialization
Uwe Hermann548dbe72010-02-22 16:41:49 +0000246 method.
247
Stefan Reinauerd650e992010-02-22 04:33:13 +0000248 This is the default choice for non-x86 systems.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000249
Patrick Georgi0588d192009-08-12 15:00:51 +0000250endchoice
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000251
Stefan Reinauer9a358532010-02-12 09:32:17 +0000252config YABEL_PCI_ACCESS_OTHER_DEVICES
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700253 prompt "Allow Option ROMs to access other devices"
Stefan Reinauer9a358532010-02-12 09:32:17 +0000254 bool
255 depends on PCI_OPTION_ROM_RUN_YABEL
256 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700257 Per default, YABEL only allows Option ROMs to access the PCI device
Stefan Reinauer9a358532010-02-12 09:32:17 +0000258 that they are associated with. However, this causes trouble for some
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700259 onboard graphics chips whose Option ROM needs to reconfigure the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000260 north bridge.
Stefan Reinauer9a358532010-02-12 09:32:17 +0000261
Patrick Georgic4b2a1b2012-07-20 13:44:50 +0200262config YABEL_PCI_FAKE_WRITING_OTHER_DEVICES_CONFIG
263 prompt "Fake success on writing other device's config space"
264 bool
265 depends on YABEL_PCI_ACCESS_OTHER_DEVICES
266 help
267 By default, YABEL aborts when the Option ROM tries to write to other
268 devices' config spaces. With this option enabled, the write doesn't
269 follow through, but the Option ROM is allowed to go on.
270 This can create issues such as hanging Option ROMs (if it depends on
271 that other register changing to the written value), so test for
272 impact before using this option.
273
Stefan Reinauer9a358532010-02-12 09:32:17 +0000274config YABEL_VIRTMEM_LOCATION
275 prompt "Location of YABEL's virtual memory"
276 hex
Alexandru Gagniucfdbc1af2015-08-26 10:11:02 -0400277 depends on PCI_OPTION_ROM_RUN_YABEL
Stefan Reinauer9a358532010-02-12 09:32:17 +0000278 default 0x1000000
279 help
280 YABEL requires 1MB memory for its CPU emulation. This memory is
281 normally located at 16MB.
282
Stefan Reinauerd650e992010-02-22 04:33:13 +0000283config YABEL_DIRECTHW
Uwe Hermann548dbe72010-02-22 16:41:49 +0000284 prompt "Direct hardware access"
Stefan Reinauerd650e992010-02-22 04:33:13 +0000285 bool
Stefan Reinauer91f14232012-12-07 16:55:12 -0800286 depends on PCI_OPTION_ROM_RUN_YABEL && ARCH_X86
Myles Watsone6804952009-08-28 14:36:12 +0000287 help
Stefan Reinauerd650e992010-02-22 04:33:13 +0000288 YABEL consists of two parts: It uses x86emu for the CPU emulation and
Uwe Hermann548dbe72010-02-22 16:41:49 +0000289 additionally provides a PC system emulation that filters bad device
290 and memory access (such as PCI config space access to other devices
291 than the initialized one).
292
Stefan Reinauerd650e992010-02-22 04:33:13 +0000293 When choosing this option, x86emu will pass through all hardware
Uwe Hermann548dbe72010-02-22 16:41:49 +0000294 accesses to memory and I/O devices to the underlying memory and I/O
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700295 addresses. While this option prevents Option ROMs from doing dirty
Stefan Reinauerd650e992010-02-22 04:33:13 +0000296 tricks with the CPU (such as installing SMM modules or hypervisors),
297 they can still access all devices in the system.
298 Enable this option for a good compromise between security and speed.
299
Nico Hubera2cf6862017-05-20 17:57:01 +0200300menu "Display"
301 depends on HAVE_VGA_TEXT_FRAMEBUFFER || HAVE_LINEAR_FRAMEBUFFER
302
303config FRAMEBUFFER_SET_VESA_MODE
304 prompt "Set framebuffer graphics resolution"
305 bool
Nico Huber7ebb0182019-07-22 18:17:40 +0200306 default y if CHROMEOS
Nico Hubera2cf6862017-05-20 17:57:01 +0200307 depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE
308 select HAVE_VBE_LINEAR_FRAMEBUFFER
309 help
310 Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
311
312if FRAMEBUFFER_SET_VESA_MODE
313
314choice
315 prompt "framebuffer graphics resolution"
Mike Banon749fe1e2019-02-23 21:43:05 +0300316 default FRAMEBUFFER_VESA_MODE_118
Nico Hubera2cf6862017-05-20 17:57:01 +0200317 help
318 This option sets the resolution used for the coreboot framebuffer (and
319 bootsplash screen).
320
321config FRAMEBUFFER_VESA_MODE_100
322 bool "640x400 256-color"
323
324config FRAMEBUFFER_VESA_MODE_101
325 bool "640x480 256-color"
326
327config FRAMEBUFFER_VESA_MODE_102
328 bool "800x600 16-color"
329
330config FRAMEBUFFER_VESA_MODE_103
331 bool "800x600 256-color"
332
333config FRAMEBUFFER_VESA_MODE_104
334 bool "1024x768 16-color"
335
336config FRAMEBUFFER_VESA_MODE_105
337 bool "1024x768 256-color"
338
339config FRAMEBUFFER_VESA_MODE_106
340 bool "1280x1024 16-color"
341
342config FRAMEBUFFER_VESA_MODE_107
343 bool "1280x1024 256-color"
344
345config FRAMEBUFFER_VESA_MODE_108
346 bool "80x60 text"
347
348config FRAMEBUFFER_VESA_MODE_109
349 bool "132x25 text"
350
351config FRAMEBUFFER_VESA_MODE_10A
352 bool "132x43 text"
353
354config FRAMEBUFFER_VESA_MODE_10B
355 bool "132x50 text"
356
357config FRAMEBUFFER_VESA_MODE_10C
358 bool "132x60 text"
359
360config FRAMEBUFFER_VESA_MODE_10D
361 bool "320x200 32k-color (1:5:5:5)"
362
363config FRAMEBUFFER_VESA_MODE_10E
364 bool "320x200 64k-color (5:6:5)"
365
366config FRAMEBUFFER_VESA_MODE_10F
367 bool "320x200 16.8M-color (8:8:8)"
368
369config FRAMEBUFFER_VESA_MODE_110
370 bool "640x480 32k-color (1:5:5:5)"
371
372config FRAMEBUFFER_VESA_MODE_111
373 bool "640x480 64k-color (5:6:5)"
374
375config FRAMEBUFFER_VESA_MODE_112
376 bool "640x480 16.8M-color (8:8:8)"
377
378config FRAMEBUFFER_VESA_MODE_113
379 bool "800x600 32k-color (1:5:5:5)"
380
381config FRAMEBUFFER_VESA_MODE_114
382 bool "800x600 64k-color (5:6:5)"
383
384config FRAMEBUFFER_VESA_MODE_115
385 bool "800x600 16.8M-color (8:8:8)"
386
387config FRAMEBUFFER_VESA_MODE_116
388 bool "1024x768 32k-color (1:5:5:5)"
389
390config FRAMEBUFFER_VESA_MODE_117
391 bool "1024x768 64k-color (5:6:5)"
392
393config FRAMEBUFFER_VESA_MODE_118
394 bool "1024x768 16.8M-color (8:8:8)"
395
396config FRAMEBUFFER_VESA_MODE_119
397 bool "1280x1024 32k-color (1:5:5:5)"
398
399config FRAMEBUFFER_VESA_MODE_11A
400 bool "1280x1024 64k-color (5:6:5)"
401
402config FRAMEBUFFER_VESA_MODE_11B
403 bool "1280x1024 16.8M-color (8:8:8)"
404
405config FRAMEBUFFER_VESA_MODE_USER
406 bool "Manually select VESA mode"
407
408endchoice
409
410# Map the config names to an integer (KB).
411config FRAMEBUFFER_VESA_MODE
412 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
413 hex
414 default 0x100 if FRAMEBUFFER_VESA_MODE_100
415 default 0x101 if FRAMEBUFFER_VESA_MODE_101
416 default 0x102 if FRAMEBUFFER_VESA_MODE_102
417 default 0x103 if FRAMEBUFFER_VESA_MODE_103
418 default 0x104 if FRAMEBUFFER_VESA_MODE_104
419 default 0x105 if FRAMEBUFFER_VESA_MODE_105
420 default 0x106 if FRAMEBUFFER_VESA_MODE_106
421 default 0x107 if FRAMEBUFFER_VESA_MODE_107
422 default 0x108 if FRAMEBUFFER_VESA_MODE_108
423 default 0x109 if FRAMEBUFFER_VESA_MODE_109
424 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
425 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
426 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
427 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
428 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
429 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
430 default 0x110 if FRAMEBUFFER_VESA_MODE_110
431 default 0x111 if FRAMEBUFFER_VESA_MODE_111
432 default 0x112 if FRAMEBUFFER_VESA_MODE_112
433 default 0x113 if FRAMEBUFFER_VESA_MODE_113
434 default 0x114 if FRAMEBUFFER_VESA_MODE_114
435 default 0x115 if FRAMEBUFFER_VESA_MODE_115
436 default 0x116 if FRAMEBUFFER_VESA_MODE_116
437 default 0x117 if FRAMEBUFFER_VESA_MODE_117
438 default 0x118 if FRAMEBUFFER_VESA_MODE_118
439 default 0x119 if FRAMEBUFFER_VESA_MODE_119
440 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
441 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
Mike Banon749fe1e2019-02-23 21:43:05 +0300442 default 0x118 if FRAMEBUFFER_VESA_MODE_USER
Nico Hubera2cf6862017-05-20 17:57:01 +0200443endif # FRAMEBUFFER_SET_VESA_MODE
444
Angel Pons4cb2f762020-06-16 19:49:53 +0200445config WANT_LINEAR_FRAMEBUFFER
446 bool
447 default y if CHROMEOS
Sean Rhodes38c99b52022-07-13 10:11:44 +0100448 default y if PAYLOAD_EDK2
Nicholas Chin8d885572021-08-28 09:40:41 -0600449 default y if COREDOOM_SECONDARY_PAYLOAD
Angel Pons4cb2f762020-06-16 19:49:53 +0200450
Nico Hubera2cf6862017-05-20 17:57:01 +0200451choice
452 prompt "Framebuffer mode"
Angel Pons4cb2f762020-06-16 19:49:53 +0200453 default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && WANT_LINEAR_FRAMEBUFFER
454 default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && WANT_LINEAR_FRAMEBUFFER
Nico Hubera2cf6862017-05-20 17:57:01 +0200455 default VGA_TEXT_FRAMEBUFFER
456
457config VGA_TEXT_FRAMEBUFFER
458 bool "Legacy VGA text mode"
459 depends on HAVE_VGA_TEXT_FRAMEBUFFER
460 help
461 If this option is enabled, coreboot will initialize graphics in
462 legacy VGA text mode or, if a VGA BIOS is used and a VESA mode set,
463 switch to text mode before handing control to a payload.
464
465config VBE_LINEAR_FRAMEBUFFER
466 bool "VESA framebuffer"
467 depends on HAVE_VBE_LINEAR_FRAMEBUFFER
468 help
469 This option keeps the framebuffer mode set after coreboot finishes
470 execution. If this option is enabled, coreboot will pass a
471 framebuffer entry in its coreboot table and the payload will need a
472 compatible driver.
473
474config GENERIC_LINEAR_FRAMEBUFFER
475 bool "Linear \"high-resolution\" framebuffer"
476 depends on HAVE_LINEAR_FRAMEBUFFER
477 help
478 This option enables a high-resolution, linear framebuffer. If this
479 option is enabled, coreboot will pass a framebuffer entry in its
480 coreboot table and the payload will need a compatible driver.
481
482endchoice
483
484# Workaround to have LINEAR_FRAMEBUFFER set in both cases
485# VBE_LINEAR_FRAMEBUFFER and GENERIC_LINEAR_FRAMEBUFFER.
486# `kconfig_lint` doesn't let us use the same name with
487# different texts in the choice above.
488config LINEAR_FRAMEBUFFER
489 def_bool y
490 depends on VBE_LINEAR_FRAMEBUFFER || GENERIC_LINEAR_FRAMEBUFFER
491
Johanna Schanderc544a852019-07-28 09:28:33 +0200492config BOOTSPLASH
493 prompt "Show graphical bootsplash"
494 bool
495 depends on LINEAR_FRAMEBUFFER
496 help
497 This option shows a graphical bootsplash screen. The graphics are
498 loaded from the CBFS file bootsplash.jpg.
499
500 You can either specify the location and file name of the
501 image in the 'General' section or add it manually to CBFS, using,
502 for example, cbfstool.
503
Nico Huber2bc892c2019-01-01 22:28:47 +0100504config LINEAR_FRAMEBUFFER_MAX_WIDTH
505 int "Maximum width in pixels"
506 depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
Matt DeVillierd14461f2022-12-05 09:45:19 -0600507 default 2560 if SYSTEM_TYPE_LAPTOP
508 default 3840
Nico Huber2bc892c2019-01-01 22:28:47 +0100509 help
510 Set the maximum width of the framebuffer. This may help with
511 default fonts too tiny for high-resolution displays.
512
513config LINEAR_FRAMEBUFFER_MAX_HEIGHT
514 int "Maximum height in pixels"
515 depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
Matt DeVillierd14461f2022-12-05 09:45:19 -0600516 default 1600 if SYSTEM_TYPE_LAPTOP
517 default 2160
Nico Huber2bc892c2019-01-01 22:28:47 +0100518 help
519 Set the maximum height of the framebuffer. This may help with
520 default fonts too tiny for high-resolution displays.
521
Nico Hubera2cf6862017-05-20 17:57:01 +0200522endmenu # "Display"
523
Ronald G. Minnich78a16672012-11-29 16:28:21 -0800524config PCI
525 bool
526 default n
527
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200528if PCI
529
Nico Huberae814972023-05-10 18:06:27 +0200530config DOMAIN_RESOURCE_32BIT_LIMIT
531 hex
532 default 0xfe000000
533 help
534 When the default pci_domain_read_resources() is used,
535 keep 32-bit memory resources below this limit. This is
536 used as a workaround for missing/wrong reservations of
537 chipset resources that usually reside above this limit.
538
Shelley Chen4e9bb332021-10-20 15:43:45 -0700539config NO_ECAM_MMCONF_SUPPORT
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200540 bool
Kyösti Mälkki3d15e102016-11-29 16:46:56 +0200541 default n
Shelley Chen4e9bb332021-10-20 15:43:45 -0700542 help
543 Disable the use of the Enhanced Configuration
544 Access mechanism (ECAM) method for accessing PCI config
545 address space.
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200546
Shelley Chen4e9bb332021-10-20 15:43:45 -0700547config ECAM_MMCONF_SUPPORT
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200548 bool
Shelley Chen4e9bb332021-10-20 15:43:45 -0700549 default !NO_ECAM_MMCONF_SUPPORT
550 help
551 Enable the use of the Enhanced Configuration
552 Access mechanism (ECAM) method for accessing PCI config
553 address space.
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200554
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000555config PCIX_PLUGIN_SUPPORT
556 bool
Myles Watsoned035562009-09-22 21:29:32 +0000557 default y
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000558
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000559config CARDBUS_PLUGIN_SUPPORT
560 bool
Myles Watsoned035562009-09-22 21:29:32 +0000561 default y
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700562
Felix Heldbc6a6902023-11-09 14:08:53 +0100563config AZALIA_HDA_CODEC_SUPPORT
Andrew Wub7bb70d2013-08-12 20:07:47 +0800564 bool
Andrew Wub7bb70d2013-08-12 20:07:47 +0800565 default n
Felix Heldbc6a6902023-11-09 14:08:53 +0100566 help
567 Select this option to include the code to initialize Azalia HD audio
568 codec chips. This will also add the hda_verb.c file from the
569 mainboard directory to the build which contain the board-specific HD
570 audio codec configuration.
Andrew Wub7bb70d2013-08-12 20:07:47 +0800571
Angel Ponsb922cbb2021-03-22 14:21:28 +0100572config AZALIA_LOCK_DOWN_R_WO_GCAP
573 def_bool n
Felix Heldbc6a6902023-11-09 14:08:53 +0100574 depends on AZALIA_HDA_CODEC_SUPPORT
Angel Ponsb922cbb2021-03-22 14:21:28 +0100575 help
576 The GCAP register is implemented as R/WO (Read / Write Once) on some
577 HD Audio controllers, such as Intel 6-series PCHs. Select this option
578 to lock down the GCAP register after deasserting the controller reset
579 bit. Locking is done by reading GCAP and writing back the read value.
580
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200581config PCIEXP_PLUGIN_SUPPORT
582 bool
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200583 default y
584
Shelley Chen4e9bb332021-10-20 15:43:45 -0700585config ECAM_MMCONF_BASE_ADDRESS
Angel Pons7d638782021-01-28 12:51:11 +0100586 hex
Shelley Chen4e9bb332021-10-20 15:43:45 -0700587 depends on ECAM_MMCONF_SUPPORT
Angel Pons7d638782021-01-28 12:51:11 +0100588
Shelley Chen4e9bb332021-10-20 15:43:45 -0700589config ECAM_MMCONF_BUS_NUMBER
Angel Pons7d638782021-01-28 12:51:11 +0100590 int
Shelley Chen4e9bb332021-10-20 15:43:45 -0700591 depends on ECAM_MMCONF_SUPPORT
Felix Held3b5b66d2024-01-11 22:26:18 +0100592 help
593 Total number of PCI buses in the system across all segment groups.
594 The number needs to be a power of 2. For values <= 256,
595 PCI_BUSES_PER_SEGMENT_GROUP is CONFIG_ECAM_MMCONF_BUS_NUMBER and
596 PCI_SEGMENT_GROUP_COUNT is 1. For values > 256,
597 PCI_BUSES_PER_SEGMENT_GROUP is 256 and PCI_SEGMENT_GROUP_COUNT is
598 CONFIG_ECAM_MMCONF_BUS_NUMBER / 256.
Angel Pons7d638782021-01-28 12:51:11 +0100599
Shelley Chen4e9bb332021-10-20 15:43:45 -0700600config ECAM_MMCONF_LENGTH
Angel Pons50632872021-01-28 13:04:06 +0100601 hex
Shelley Chen4e9bb332021-10-20 15:43:45 -0700602 depends on ECAM_MMCONF_SUPPORT
Felix Held2c9688c2024-01-14 21:46:34 +0100603 default 0x02000000 if ECAM_MMCONF_BUS_NUMBER = 32
Shelley Chen4e9bb332021-10-20 15:43:45 -0700604 default 0x04000000 if ECAM_MMCONF_BUS_NUMBER = 64
605 default 0x08000000 if ECAM_MMCONF_BUS_NUMBER = 128
606 default 0x10000000 if ECAM_MMCONF_BUS_NUMBER = 256
Felix Held3b5b66d2024-01-11 22:26:18 +0100607 default 0x20000000 if ECAM_MMCONF_BUS_NUMBER = 512
608 default 0x80000000 if ECAM_MMCONF_BUS_NUMBER = 1024
Angel Pons50632872021-01-28 13:04:06 +0100609 default 0x0
610
Felix Singere4a7d9f2020-06-15 15:00:56 +0200611config PCI_ALLOW_BUS_MASTER
Felix Singer05b883e2020-10-13 15:12:01 +0200612 bool "Allow coreboot to set optional PCI bus master bits"
Felix Singere4a7d9f2020-06-15 15:00:56 +0200613 default y
614 help
615 For security reasons, bus mastering should be enabled as late as
616 possible. In coreboot, it's usually not necessary and payloads
617 should only enable it for devices they use. Since not all payloads
618 enable bus mastering properly yet, this option gives some sort of
619 "backwards compatibility" and is enabled by default to keep the
620 traditional behaviour for now. This is currently necessary, for
621 instance, for libpayload based payloads as the drivers don't enable
622 bus mastering for PCI bridges.
623
Felix Singer3d9fa082020-09-07 13:57:49 +0200624if PCI_ALLOW_BUS_MASTER
625
Felix Singer205b53e2020-09-07 15:21:21 +0200626config PCI_SET_BUS_MASTER_PCI_BRIDGES
627 bool "PCI bridges"
628 default y
629 help
630 Let coreboot configure bus mastering for PCI bridges. Enabling bus
631 mastering for a PCI bridge also allows it to forward requests from
632 downstream devices. Currently, payloads ignore this and only enable
633 bus mastering for the downstream device. Hence, this option is needed
634 for compatibility until payloads are fixed.
635
Felix Singer3d9fa082020-09-07 13:57:49 +0200636config PCI_ALLOW_BUS_MASTER_ANY_DEVICE
637 bool "Any devices"
638 default y
Felix Singer205b53e2020-09-07 15:21:21 +0200639 select PCI_SET_BUS_MASTER_PCI_BRIDGES
Felix Singer3d9fa082020-09-07 13:57:49 +0200640 help
641 Allow coreboot to enable PCI bus mastering for any device. The actual
642 selection of devices depends on the various PCI drivers in coreboot.
643
644endif # PCI_ALLOW_BUS_MASTER
645
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200646endif # PCI
647
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200648if PCIEXP_PLUGIN_SUPPORT
649
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700650config PCIEXP_COMMON_CLOCK
651 prompt "Enable PCIe Common Clock"
652 bool
653 default n
654 help
655 Detect and enable Common Clock on PCIe links.
656
657config PCIEXP_ASPM
658 prompt "Enable PCIe ASPM"
659 bool
660 default n
661 help
Jonathan Neuschäfer8c50e682016-12-27 16:31:28 +0100662 Detect and enable ASPM (Active State Power Management) on PCIe links.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800663
Kane Chen18cb1342014-10-01 11:13:54 +0800664config PCIEXP_CLK_PM
665 prompt "Enable PCIe Clock Power Management"
666 bool
Kane Chen18cb1342014-10-01 11:13:54 +0800667 default n
668 help
669 Detect and enable Clock Power Management on PCIe.
670
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200671config PCIEXP_L1_SUB_STATE
672 prompt "Enable PCIe ASPM L1 SubState"
673 bool
Shelley Chen4e9bb332021-10-20 15:43:45 -0700674 depends on (ECAM_MMCONF_SUPPORT || PCI_IO_CFG_EXT)
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200675 default n
676 help
677 Detect and enable ASPM on PCIe links.
678
Tim Wawrzynczak8c93fed2022-01-13 16:45:07 -0700679config PCIEXP_SUPPORT_RESIZABLE_BARS
680 prompt "Support PCIe Resizable BARs"
681 bool
682 depends on (ECAM_MMCONF_SUPPORT || PCI_IO_CFG_EXT)
683 default n
684 help
685 When enabled, this will check PCIe devices for Resizable BAR support,
686 and if found, will use this to discover the preferred BAR sizes of
687 the device in preference over the traditional moving bits method. The
688 amount of address space given out to devices in this manner (since
689 it can range up to 8 EB) can be limited with the
690 PCIEXP_DEFAULT_MAX_RESIZABLE_BAR_BITS Kconfig setting below.
691
692if PCIEXP_SUPPORT_RESIZABLE_BARS
693
694config PCIEXP_DEFAULT_MAX_RESIZABLE_BAR_BITS
695 int "Bits of address space to give to Resizable BARs"
696 range 20 63 # 1 MiB - 8 EiB
697 default 29 # 512 MiB
698 help
699 This is the maximum number of bits of address space to allocate for
700 PCIe devices with resizable BARs. For instance, if a device requests
701 30 bits of address space (1 GiB), but this field is set to 29, then
702 the device will only be allocated 29 bits worth of address space (512
703 MiB). Valid values range from 20 (1 MiB) to 63 (8 EiB); these come
704 from the Resizable BAR portion of the PCIe spec (7.8.6).
705
706endif # PCIEXP_SUPPORT_RESIZABLE_BARS
707
Wilson Chouc8a86952022-08-29 02:08:24 +0000708config PCIEXP_LANE_ERR_STAT_CLEAR
709 prompt "Enable Clear PCIe Lane Error Status"
710 bool
711 default n
712 help
713 Clear the PCIe Lane Error Status at the end of link training.
714
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600715config PCIEXP_HOTPLUG
716 prompt "Enable PCIe Hotplug Support"
717 bool
718 default n
719 help
720 Allocate resources for PCIe hotplug bridges
721
722if PCIEXP_HOTPLUG
723
724config PCIEXP_HOTPLUG_BUSES
725 int "PCI Express Hotplug Buses"
Arthur Heymanscaf27ad2023-04-26 09:41:54 +0200726 default 8
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600727 help
728 This is the number of buses allocated for hotplug PCI express
Arthur Heymanscaf27ad2023-04-26 09:41:54 +0200729 bridges, for use by hotplugged child devices. The default is 8
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600730 buses.
731
732config PCIEXP_HOTPLUG_MEM
733 hex "PCI Express Hotplug Memory"
734 default 0x800000
735 help
736 This is the amount of memory space, in bytes, to allocate to
737 hotplug PCI express bridges, for use by hotplugged child devices.
738 This size should be page-aligned. The default is 8 MiB.
739
740config PCIEXP_HOTPLUG_PREFETCH_MEM
741 hex "PCI Express Hotplug Prefetch Memory"
742 default 0x10000000
743 help
744 This is the amount of pre-fetchable memory space, in bytes, to
745 allocate to hot-plug PCI express bridges, for use by hotplugged
746 child devices. This size should be page-aligned. The default is
747 256 MiB.
748
Furquan Shaikh32f385e2020-05-15 23:35:00 -0700749config PCIEXP_HOTPLUG_PREFETCH_MEM_ABOVE_4G
750 bool
Furquan Shaikh32f385e2020-05-15 23:35:00 -0700751 default y if !PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G
752 default n
753 help
754 This enables prefetch memory allocation above 4G boundary for the
755 hotplug resources.
756
757config PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G
758 bool "PCI Express Hotplug Prefetch Memory Allocation below 4G boundary"
759 default n
760 help
761 This enables prefetch memory allocation below 4G boundary for the
762 hotplug resources.
763
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600764config PCIEXP_HOTPLUG_IO
765 hex "PCI Express Hotplug I/O Space"
Arthur Heymanscaf27ad2023-04-26 09:41:54 +0200766 default 0x800
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600767 help
768 This is the amount of I/O space to allocate to hot-plug PCI
769 express bridges, for use by hotplugged child devices. The default
Arthur Heymanscaf27ad2023-04-26 09:41:54 +0200770 is 2 KiB.
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600771
772endif # PCIEXP_HOTPLUG
773
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200774endif # PCIEXP_PLUGIN_SUPPORT
775
Martin Rothf3a67292023-01-10 09:58:46 -0700776config DEFAULT_SOFTWARE_CONNECTION_MANAGER
777 bool
778 help
779 select to default to using the Software Connection Manager
780
Sean Rhodes060df172022-05-21 10:39:27 +0100781choice
782 prompt "Connection Manager"
Martin Rothf3a67292023-01-10 09:58:46 -0700783 default SOFTWARE_CONNECTION_MANAGER if DEFAULT_SOFTWARE_CONNECTION_MANAGER
Sean Rhodes060df172022-05-21 10:39:27 +0100784 default FIRMWARE_CONNECTION_MANAGER
785 help
786 Software Connection Manager doesn't work with Linux 5.13 or later,
787 resulting in TBT ports timing out. Firmware Connection Manager works
788 correctly.
789
790 Linux patch:
791 torvalds/linux@c6da62a
792 c6da62a219d028de10f2e22e93a34c7ee2b88d03
793
794config FIRMWARE_CONNECTION_MANAGER
795 bool "Firmware Connection Manager"
796 help
797 Disable SCM so that FCM can be used
798
799config SOFTWARE_CONNECTION_MANAGER
800 bool "Software Connection Manager"
801 help
802 Enable SCM so it's used instead of FCM.
803
804endchoice
805
Kyösti Mälkki4c686f22014-02-14 12:45:09 +0200806config EARLY_PCI_BRIDGE
807 bool "Early PCI bridge"
808 depends on PCI
809 default n
810 help
811 While coreboot is executing code from ROM, the coreboot resource
812 allocator has not been running yet. Hence PCI devices living behind
813 a bridge are not yet visible to the system.
814
815 This option enables static configuration for a single pre-defined
816 PCI bridge function on bus 0.
817
818if EARLY_PCI_BRIDGE
819
820config EARLY_PCI_BRIDGE_DEVICE
821 hex "bridge device"
822 default 0x0
823
824config EARLY_PCI_BRIDGE_FUNCTION
825 hex "bridge function"
826 default 0x0
827
828config EARLY_PCI_MMIO_BASE
829 hex "MMIO window base"
830 default 0x0
831
832endif # EARLY_PCI_BRIDGE
833
Stefan Reinauer58470e32014-10-17 13:08:36 +0200834config SUBSYSTEM_VENDOR_ID
835 hex "Override PCI Subsystem Vendor ID"
836 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600837 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200838 help
839 This config option will override the devicetree settings for
840 PCI Subsystem Vendor ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800841
Michael Niewöhnere0d749c2020-09-18 03:12:00 +0200842 Note: This option is not meant for a board's Kconfig; use the
843 devicetree setting `subsystemid` instead.
844
Stefan Reinauer58470e32014-10-17 13:08:36 +0200845config SUBSYSTEM_DEVICE_ID
846 hex "Override PCI Subsystem Device ID"
847 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600848 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200849 help
850 This config option will override the devicetree settings for
851 PCI Subsystem Device ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800852
Michael Niewöhnere0d749c2020-09-18 03:12:00 +0200853 Note: This option is not meant for a board's Kconfig; use the
854 devicetree setting `subsystemid` instead.
855
Stefan Reinauer95a63962012-11-13 17:00:01 -0800856config VGA_BIOS
857 bool "Add a VGA BIOS image"
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100858 depends on ARCH_X86
Subrata Banikaf039362020-12-30 16:09:56 +0530859 select VGA_ROM_RUN_DEFAULT
Stefan Reinauer95a63962012-11-13 17:00:01 -0800860 help
861 Select this option if you have a VGA BIOS image that you would
862 like to add to your ROM.
863
864 You will be able to specify the location and file name of the
865 image later.
866
867config VGA_BIOS_FILE
868 string "VGA BIOS path and filename"
869 depends on VGA_BIOS
870 default "vgabios.bin"
871 help
872 The path and filename of the file to use as VGA BIOS.
873
874config VGA_BIOS_ID
875 string "VGA device PCI IDs"
876 depends on VGA_BIOS
877 default "1106,3230"
878 help
Martin Rotha616a4b2020-01-21 09:28:40 -0700879 The comma-separated PCI vendor and device ID with optional revision if that
880 feature is enabled that would associate your vBIOS to your video card.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800881
Martin Rotha616a4b2020-01-21 09:28:40 -0700882 Example: 1106,3230 or 1106,3230,a3
Stefan Reinauer95a63962012-11-13 17:00:01 -0800883
884 In the above example 1106 is the PCI vendor ID (in hex, but without
885 the "0x" prefix) and 3230 specifies the PCI device ID of the
Martin Rotha616a4b2020-01-21 09:28:40 -0700886 video card (also in hex, without "0x" prefix). a3 specifies the revision.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800887
Felix Held337deb62023-03-08 18:16:56 +0100888 This ID needs to match the PCI VID and DID in the VGA BIOS file's
889 header and also needs to match the value returned by map_oprom_vendev
890 or map_oprom_vendev_rev if the remapping feature is used.
891
Daniele Forsif2fb7d92014-07-17 11:59:41 +0200892 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
893
Martin Roth4cc2cac2019-12-06 19:11:08 -0700894config VGA_BIOS_SECOND
895 bool "Add a 2nd video BIOS image"
896 depends on ARCH_X86 && VGA_BIOS
897 help
898 Select this option if you have a 2nd video BIOS image that you would
899 like to add to your ROM.
900
901config VGA_BIOS_SECOND_FILE
902 string "2nd video BIOS path and filename"
903 depends on VGA_BIOS_SECOND
904 default "vbios2.bin"
905 help
906 The path and filename of the file to use as video BIOS.
907
908config VGA_BIOS_SECOND_ID
909 string "Graphics device PCI IDs"
910 depends on VGA_BIOS_SECOND
911 help
Martin Rotha616a4b2020-01-21 09:28:40 -0700912 The comma-separated PCI vendor and device ID with optional revision if that
913 feature is enabled that would associate your vBIOS to your video card.
Martin Roth4cc2cac2019-12-06 19:11:08 -0700914
Martin Rotha616a4b2020-01-21 09:28:40 -0700915 Example: 1106,3230 or 1106,3230,a3
Martin Roth4cc2cac2019-12-06 19:11:08 -0700916
917 In the above example 1106 is the PCI vendor ID (in hex, but without
918 the "0x" prefix) and 3230 specifies the PCI device ID of the
Martin Rotha616a4b2020-01-21 09:28:40 -0700919 video card (also in hex, without "0x" prefix). a3 specifies the revision.
Martin Roth4cc2cac2019-12-06 19:11:08 -0700920
921 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
922
Martin Rotha616a4b2020-01-21 09:28:40 -0700923config CHECK_REV_IN_OPROM_NAME
924 def_bool n
925 help
926 Select this in the platform BIOS or chipset if the option rom has a revision
927 that needs to be checked when searching CBFS.
928
Mike Banon0f8547e2019-02-17 19:51:53 +0300929config VGA_BIOS_DGPU
930 bool "Add a discrete VGA BIOS image"
931 depends on VGA_BIOS
932 help
933 Select this option if you have a VGA BIOS image for discrete GPU
934 that you would like to add to your ROM.
935
936 You will be able to specify the location and file name of the
937 image later.
938
939config VGA_BIOS_DGPU_FILE
940 string "Discrete VGA BIOS path and filename"
941 depends on VGA_BIOS_DGPU
942 default "vgabios_dgpu.bin"
943 help
944 The path and filename of the file to use as VGA BIOS for discrete GPU.
945
946config VGA_BIOS_DGPU_ID
947 string "Discrete VGA device PCI IDs"
948 depends on VGA_BIOS_DGPU
949 default "1002,6663"
950 help
951 The comma-separated PCI vendor and device ID that would associate
952 your VGA BIOS to your discrete video card.
953
954 Examples:
955 1002,6663 for HD 8570M
956 1002,6665 for R5 M230
957
958 In the above examples 1002 is the PCI vendor ID (in hex, but without
959 the "0x" prefix) and 6663 / 6665 specifies the PCI device ID of the
960 discrete video card (also in hex, without "0x" prefix).
961
962 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
963
Nico Huber29cc3312018-06-06 17:40:02 +0200964config INTEL_GMA_HAVE_VBT
Arthur Heymans7225a362018-05-28 21:09:21 +0200965 bool
966 help
967 Select this in the mainboard Kconfig to indicate the board has
968 a data.vbt file.
969
Nico Huber29cc3312018-06-06 17:40:02 +0200970config INTEL_GMA_ADD_VBT
Patrick Rudolph4c170982017-07-17 19:53:56 +0200971 depends on SOC_INTEL_COMMON || CPU_INTEL_COMMON
Elyes HAOUAS6dc9d032020-02-16 16:22:52 +0100972 bool "Add a Video BIOS Table (VBT) binary to CBFS"
Nico Huber29cc3312018-06-06 17:40:02 +0200973 default y if INTEL_GMA_HAVE_VBT
Patrick Rudolph4c170982017-07-17 19:53:56 +0200974 help
975 Add a VBT data file to CBFS. The VBT describes the integrated
976 GPU and connections, and is needed by the GOP driver integrated into
977 FSP and the OS driver in order to initialize the display.
978
979config INTEL_GMA_VBT_FILE
980 string "VBT binary path and filename"
Nico Huber29cc3312018-06-06 17:40:02 +0200981 depends on INTEL_GMA_ADD_VBT
Patrick Georgib8fba862020-06-17 21:06:53 +0200982 default "src/mainboard/\$(MAINBOARDDIR)/variants/\$(VARIANT_DIR)/data.vbt" \
Nico Huber29cc3312018-06-06 17:40:02 +0200983 if INTEL_GMA_HAVE_VBT && VARIANT_DIR != ""
Patrick Georgib8fba862020-06-17 21:06:53 +0200984 default "src/mainboard/\$(MAINBOARDDIR)/data.vbt" if INTEL_GMA_HAVE_VBT
985 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/vbt.bin"
Patrick Rudolph4c170982017-07-17 19:53:56 +0200986 help
987 The path and filename of the VBT binary.
988
Julius Werner37d7ac82014-05-05 18:03:46 -0700989config SOFTWARE_I2C
990 bool "Enable I2C controller emulation in software"
991 default n
992 help
993 This config option will enable code to override the i2c_transfer
994 routine with a (simple) software emulation of the protocol. This may
995 be useful for debugging or on platforms where a driver for the real
996 I2C controller is not (yet) available. The platform code needs to
997 provide bindings to manually toggle I2C lines.
Kyösti Mälkkia91e1e62014-12-31 10:36:08 +0200998
Jes Klinke19baa9d2022-02-22 16:00:09 -0800999config I2C_TRANSFER_TIMEOUT_US
1000 int "I2C transfer timeout in microseconds"
1001 default 500000
1002 help
1003 Timeout for a read/write transfers on the I2C bus, that is, the
1004 maximum time a device could stretch clock bits before the transfer
1005 is aborted and an error returned.
1006
Nico Huber526c6422020-05-25 00:03:14 +02001007config RESOURCE_ALLOCATION_TOP_DOWN
Nico Hubera959f0a2023-07-07 13:56:21 +02001008 bool "Allocate resources from top down"
1009 default n if PAYLOAD_EDK2
1010 default y
Nico Huber21ddf552022-09-04 21:58:03 +02001011 help
Nico Huber52263012020-05-23 19:15:36 +02001012 Top-down allocation is required to place resources above 4G by
1013 default (i.e. even when there is still space below). On some
1014 platforms, it might make a difference because of conflicts with
Nico Hubera959f0a2023-07-07 13:56:21 +02001015 undeclared resources. EDK2 is currently reported to also have
1016 problems on some platforms, at least with Intel's IGD.
Nico Huber526c6422020-05-25 00:03:14 +02001017
Arthur Heymanscf6d9ac2023-08-31 18:08:02 +02001018config ALWAYS_ALLOW_ABOVE_4G_ALLOCATION
1019 bool
1020 default n if ARCH_X86
1021 default y
1022 help
1023 Don't limit mem resources to 4G, but to their actual limit.
1024
Raul E Rangela5b7ddf2020-05-29 17:16:20 -06001025config XHCI_UTILS
1026 def_bool n
1027 help
1028 Provides xHCI utility functions.
1029
Sean Rhodesaa8c6a22023-04-13 12:15:38 +01001030config D3COLD_SUPPORT
1031 bool
1032 default y
1033 help
1034 Enable this option if all devices on your system support the
1035 D3Cold power management state. The D3Cold state is a low-power
1036 state where the device has been powered down and is no longer
1037 able to maintain its context. This state can help reduce
1038 overall system power consumption, which can be beneficial for
1039 energy savings and thermal management.
1040
1041 Please note that enabling D3Cold support may break system
1042 suspend-to-RAM (S3) functionality.
1043
Martin Rotha666af72022-10-29 13:27:22 -06001044source "src/device/dram/Kconfig"
1045
Stefan Reinauer95a63962012-11-13 17:00:01 -08001046endmenu