blob: d0cce77731f38aacdd522aa3d4bd7294d1bf266c [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
Michael Niewöhner1513d722019-10-29 20:38:10 +01007 depends on !NO_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
Nico Huberd4ebeaf2017-05-22 13:49:22 +020061choice
62 prompt "Graphics initialization"
Subrata Banikaf039362020-12-30 16:09:56 +053063 default NO_GFX_INIT if VGA_ROM_RUN_DEFAULT && PAYLOAD_SEABIOS
64 default VGA_ROM_RUN if VGA_ROM_RUN_DEFAULT
Matt DeVillier8107c812020-03-27 03:09:21 -050065 default MAINBOARD_DO_NATIVE_VGA_INIT
66 default MAINBOARD_USE_LIBGFXINIT
Matt DeVillier175ffd82020-03-29 18:20:23 -050067 default RUN_FSP_GOP if INTEL_GMA_HAVE_VBT
Nico Huberd4ebeaf2017-05-22 13:49:22 +020068
69config MAINBOARD_DO_NATIVE_VGA_INIT
70 bool "Use native graphics init"
71 depends on MAINBOARD_HAS_NATIVE_VGA_INIT
72 help
73 Some mainboards, such as the Google Link, allow initializing the
74 display without the need of a binary only VGA OPROM. Enabling this
75 option may be faster, but also lacks flexibility in setting modes.
76
Nico Huber542e9482016-10-05 17:47:32 +020077config MAINBOARD_USE_LIBGFXINIT
Nico Huberd4ebeaf2017-05-22 13:49:22 +020078 bool "Use libgfxinit"
Nico Huber542e9482016-10-05 17:47:32 +020079 depends on MAINBOARD_HAS_LIBGFXINIT
Nico Huberce642f02017-05-19 15:08:21 +020080 select HAVE_VGA_TEXT_FRAMEBUFFER
Nico Huber7971582e2017-05-20 01:07:48 +020081 select HAVE_LINEAR_FRAMEBUFFER
Nico Huber6d8266b2017-05-20 16:46:01 +020082 select VGA if VGA_TEXT_FRAMEBUFFER
Nico Huber542e9482016-10-05 17:47:32 +020083 help
84 Use the SPARK library `libgfxinit` for the native graphics
85 initialization. This requires an Ada toolchain.
86
Uwe Hermann168b11b2009-10-07 16:15:40 +000087# TODO: Explain differences (if any) for onboard cards.
Patrick Georgi0588d192009-08-12 15:00:51 +000088config VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -070089 bool "Run VGA Option ROMs"
Jonathan Neuschäferc22ad582018-11-30 00:06:50 +010090 depends on PCI && (ARCH_X86 || ARCH_PPC64) && !MAINBOARD_FORCE_NATIVE_VGA_INIT
Nico Huberce642f02017-05-19 15:08:21 +020091 select HAVE_VGA_TEXT_FRAMEBUFFER
Patrick Georgi0588d192009-08-12 15:00:51 +000092 help
Nico Huberd4ebeaf2017-05-22 13:49:22 +020093 Execute VGA Option ROMs in coreboot if found. This can be used
Peter Stugeb6fa47c2012-10-27 13:45:51 +020094 to enable PCI/AGP/PCI-E video cards when not using a SeaBIOS
95 payload.
96
97 When using a SeaBIOS payload it runs all option ROMs with much
98 more complete BIOS interrupt services available than coreboot,
99 which some option ROMs require in order to function correctly.
100
Arthur Heymans4ad1f7d2018-01-16 17:22:20 +0100101config RUN_FSP_GOP
102 bool "Run a GOP driver"
Michael Niewöhnerd61a40e2019-10-26 10:37:42 +0200103 depends on HAVE_FSP_GOP && !MAINBOARD_NO_FSP_GOP
Arthur Heymans4ad1f7d2018-01-16 17:22:20 +0100104 select HAVE_LINEAR_FRAMEBUFFER
105 help
106 Some platforms (e.g. Intel Braswell and Skylake/Kaby Lake) support
107 to run a GOP blob. This option enables graphics initialization with
108 such a blob.
109
Nico Huberd4ebeaf2017-05-22 13:49:22 +0200110config NO_GFX_INIT
111 bool "None"
112 depends on !MAINBOARD_FORCE_NATIVE_VGA_INIT
113 help
114 Select this to not perform any graphics initialization in
115 coreboot. This is useful if the payload (e.g. SeaBIOS) can
116 initialize graphics or if pre-boot graphics are not required.
117
118endchoice
Myles Watsone6804952009-08-28 14:36:12 +0000119
Paul Menzelc4062c72021-02-11 10:43:14 +0100120config PRE_GRAPHICS_DELAY_MS
Kyösti Mälkki0f300632020-12-19 23:43:56 +0200121 int "Graphics initialization delay in ms"
122 default 0
123 depends on VGA_ROM_RUN
124 help
125 On some systems, coreboot boots so fast that connected monitors
126 (mostly TVs) won't be able to wake up fast enough to talk to the
127 VBIOS. On those systems we need to wait for a bit before executing
128 the VBIOS.
129
Arthur Heymansb43ec472019-03-24 20:39:45 +0100130config ONBOARD_VGA_IS_PRIMARY
131 bool "Use onboard VGA as primary video device"
132 default n
133 depends on PCI
134 help
135 This option lets you select which VGA device will be used
136 to decode legacy VGA cycles. Not all chipsets implement this
137 however. If not selected, the last adapter found will be used,
138 else the onboard adapter is used.
139
Stefan Reinauer0a500842011-09-23 10:33:58 -0700140config S3_VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700141 bool "Re-run VGA Option ROMs on S3 resume"
Stefan Reinauer0a500842011-09-23 10:33:58 -0700142 default y
143 depends on VGA_ROM_RUN && HAVE_ACPI_RESUME
144 help
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200145 Execute VGA Option ROMs in coreboot when resuming from S3 suspend.
146
147 When using a SeaBIOS payload it runs all option ROMs with much
148 more complete BIOS interrupt services available than coreboot,
149 which some option ROMs require in order to function correctly.
150
151 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauer0a500842011-09-23 10:33:58 -0700152
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300153config ALWAYS_LOAD_OPROM
154 def_bool n
155 depends on VGA_ROM_RUN
156 help
Daniele Forsi53847a22014-07-22 18:00:56 +0200157 Always load option ROMs if any are found. The decision to run
158 the ROM is still determined at runtime, but the distinction
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300159 between loading and not running comes into play for CHROMEOS.
160
Daniele Forsi53847a22014-07-22 18:00:56 +0200161 An example where this is required is that VBT (Video BIOS Tables)
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300162 are needed for the kernel's display driver to know how a piece of
163 hardware is configured to be used.
164
Aaron Durbin10510252018-01-30 10:04:02 -0700165config ALWAYS_RUN_OPROM
166 def_bool n
167 depends on VGA_ROM_RUN && ALWAYS_LOAD_OPROM
168 help
Martin Roth0949e732021-10-01 14:28:22 -0600169 Always unconditionally run the option regardless of other
Aaron Durbin10510252018-01-30 10:04:02 -0700170 policies.
171
Patrick Rudolph647e34d2016-02-11 08:36:50 +0100172config ON_DEVICE_ROM_LOAD
173 bool "Load Option ROMs on PCI devices"
Peter Stugebe0ede42012-10-27 14:17:04 +0200174 default n if PAYLOAD_SEABIOS
175 default y if !PAYLOAD_SEABIOS
Nico Huber49d99fc2017-05-20 17:56:02 +0200176 depends on VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700177 help
Nico Huber49d99fc2017-05-20 17:56:02 +0200178 Load Option ROMs stored on PCI/PCIe/AGP VGA devices in coreboot.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700179
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200180 If disabled, only Option ROMs stored in CBFS will be executed by
181 coreboot. If you are concerned about security, you might want to
182 disable this option, but it might leave your system in a state of
183 degraded functionality.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700184
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200185 When using a SeaBIOS payload it runs all option ROMs with much
186 more complete BIOS interrupt services available than coreboot,
187 which some option ROMs require in order to function correctly.
188
189 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700190
Patrick Georgi0588d192009-08-12 15:00:51 +0000191choice
Uwe Hermann168b11b2009-10-07 16:15:40 +0000192 prompt "Option ROM execution type"
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000193 default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
194 default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
Arthur Heymans57f70a12018-12-20 10:27:19 +0100195 depends on VGA_ROM_RUN
Uwe Hermann168b11b2009-10-07 16:15:40 +0000196
197config PCI_OPTION_ROM_RUN_REALMODE
Stefan Reinauerd650e992010-02-22 04:33:13 +0000198 prompt "Native mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000199 bool
Arthur Heymanse095c462022-11-12 16:21:03 +0100200 depends on ARCH_X86 && !ARCH_RAMSTAGE_X86_64
Myles Watson28412f52009-09-17 16:54:46 +0000201 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700202 If you select this option, PCI Option ROMs will be executed
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000203 natively on the CPU in real mode. No CPU emulation is involved,
204 so this is the fastest, but also the least secure option.
205 (only works on x86/x64 systems)
Patrick Georgi0588d192009-08-12 15:00:51 +0000206
Stefan Reinauerd650e992010-02-22 04:33:13 +0000207config PCI_OPTION_ROM_RUN_YABEL
Uwe Hermann548dbe72010-02-22 16:41:49 +0000208 prompt "Secure mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000209 bool
210 help
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000211 If you select this option, the x86emu CPU emulator will be used to
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700212 execute PCI Option ROMs.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000213
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700214 This option prevents Option ROMs from doing dirty tricks with the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000215 system (such as installing SMM modules or hypervisors), but it is
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700216 also significantly slower than the native Option ROM initialization
Uwe Hermann548dbe72010-02-22 16:41:49 +0000217 method.
218
Stefan Reinauerd650e992010-02-22 04:33:13 +0000219 This is the default choice for non-x86 systems.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000220
Patrick Georgi0588d192009-08-12 15:00:51 +0000221endchoice
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000222
Stefan Reinauer9a358532010-02-12 09:32:17 +0000223config YABEL_PCI_ACCESS_OTHER_DEVICES
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700224 prompt "Allow Option ROMs to access other devices"
Stefan Reinauer9a358532010-02-12 09:32:17 +0000225 bool
226 depends on PCI_OPTION_ROM_RUN_YABEL
227 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700228 Per default, YABEL only allows Option ROMs to access the PCI device
Stefan Reinauer9a358532010-02-12 09:32:17 +0000229 that they are associated with. However, this causes trouble for some
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700230 onboard graphics chips whose Option ROM needs to reconfigure the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000231 north bridge.
Stefan Reinauer9a358532010-02-12 09:32:17 +0000232
Patrick Georgic4b2a1b2012-07-20 13:44:50 +0200233config YABEL_PCI_FAKE_WRITING_OTHER_DEVICES_CONFIG
234 prompt "Fake success on writing other device's config space"
235 bool
236 depends on YABEL_PCI_ACCESS_OTHER_DEVICES
237 help
238 By default, YABEL aborts when the Option ROM tries to write to other
239 devices' config spaces. With this option enabled, the write doesn't
240 follow through, but the Option ROM is allowed to go on.
241 This can create issues such as hanging Option ROMs (if it depends on
242 that other register changing to the written value), so test for
243 impact before using this option.
244
Stefan Reinauer9a358532010-02-12 09:32:17 +0000245config YABEL_VIRTMEM_LOCATION
246 prompt "Location of YABEL's virtual memory"
247 hex
Alexandru Gagniucfdbc1af2015-08-26 10:11:02 -0400248 depends on PCI_OPTION_ROM_RUN_YABEL
Stefan Reinauer9a358532010-02-12 09:32:17 +0000249 default 0x1000000
250 help
251 YABEL requires 1MB memory for its CPU emulation. This memory is
252 normally located at 16MB.
253
Stefan Reinauerd650e992010-02-22 04:33:13 +0000254config YABEL_DIRECTHW
Uwe Hermann548dbe72010-02-22 16:41:49 +0000255 prompt "Direct hardware access"
Stefan Reinauerd650e992010-02-22 04:33:13 +0000256 bool
Stefan Reinauer91f14232012-12-07 16:55:12 -0800257 depends on PCI_OPTION_ROM_RUN_YABEL && ARCH_X86
Myles Watsone6804952009-08-28 14:36:12 +0000258 help
Stefan Reinauerd650e992010-02-22 04:33:13 +0000259 YABEL consists of two parts: It uses x86emu for the CPU emulation and
Uwe Hermann548dbe72010-02-22 16:41:49 +0000260 additionally provides a PC system emulation that filters bad device
261 and memory access (such as PCI config space access to other devices
262 than the initialized one).
263
Stefan Reinauerd650e992010-02-22 04:33:13 +0000264 When choosing this option, x86emu will pass through all hardware
Uwe Hermann548dbe72010-02-22 16:41:49 +0000265 accesses to memory and I/O devices to the underlying memory and I/O
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700266 addresses. While this option prevents Option ROMs from doing dirty
Stefan Reinauerd650e992010-02-22 04:33:13 +0000267 tricks with the CPU (such as installing SMM modules or hypervisors),
268 they can still access all devices in the system.
269 Enable this option for a good compromise between security and speed.
270
Stefan Reinauerabc0c852010-11-22 08:09:50 +0000271config MULTIPLE_VGA_ADAPTERS
Myles Watson28412f52009-09-17 16:54:46 +0000272 bool
273 default n
274
Nico Hubera2cf6862017-05-20 17:57:01 +0200275menu "Display"
276 depends on HAVE_VGA_TEXT_FRAMEBUFFER || HAVE_LINEAR_FRAMEBUFFER
277
278config FRAMEBUFFER_SET_VESA_MODE
279 prompt "Set framebuffer graphics resolution"
280 bool
Nico Huber7ebb0182019-07-22 18:17:40 +0200281 default y if CHROMEOS
Nico Hubera2cf6862017-05-20 17:57:01 +0200282 depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE
283 select HAVE_VBE_LINEAR_FRAMEBUFFER
284 help
285 Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
286
287if FRAMEBUFFER_SET_VESA_MODE
288
289choice
290 prompt "framebuffer graphics resolution"
Mike Banon749fe1e2019-02-23 21:43:05 +0300291 default FRAMEBUFFER_VESA_MODE_118
Nico Hubera2cf6862017-05-20 17:57:01 +0200292 help
293 This option sets the resolution used for the coreboot framebuffer (and
294 bootsplash screen).
295
296config FRAMEBUFFER_VESA_MODE_100
297 bool "640x400 256-color"
298
299config FRAMEBUFFER_VESA_MODE_101
300 bool "640x480 256-color"
301
302config FRAMEBUFFER_VESA_MODE_102
303 bool "800x600 16-color"
304
305config FRAMEBUFFER_VESA_MODE_103
306 bool "800x600 256-color"
307
308config FRAMEBUFFER_VESA_MODE_104
309 bool "1024x768 16-color"
310
311config FRAMEBUFFER_VESA_MODE_105
312 bool "1024x768 256-color"
313
314config FRAMEBUFFER_VESA_MODE_106
315 bool "1280x1024 16-color"
316
317config FRAMEBUFFER_VESA_MODE_107
318 bool "1280x1024 256-color"
319
320config FRAMEBUFFER_VESA_MODE_108
321 bool "80x60 text"
322
323config FRAMEBUFFER_VESA_MODE_109
324 bool "132x25 text"
325
326config FRAMEBUFFER_VESA_MODE_10A
327 bool "132x43 text"
328
329config FRAMEBUFFER_VESA_MODE_10B
330 bool "132x50 text"
331
332config FRAMEBUFFER_VESA_MODE_10C
333 bool "132x60 text"
334
335config FRAMEBUFFER_VESA_MODE_10D
336 bool "320x200 32k-color (1:5:5:5)"
337
338config FRAMEBUFFER_VESA_MODE_10E
339 bool "320x200 64k-color (5:6:5)"
340
341config FRAMEBUFFER_VESA_MODE_10F
342 bool "320x200 16.8M-color (8:8:8)"
343
344config FRAMEBUFFER_VESA_MODE_110
345 bool "640x480 32k-color (1:5:5:5)"
346
347config FRAMEBUFFER_VESA_MODE_111
348 bool "640x480 64k-color (5:6:5)"
349
350config FRAMEBUFFER_VESA_MODE_112
351 bool "640x480 16.8M-color (8:8:8)"
352
353config FRAMEBUFFER_VESA_MODE_113
354 bool "800x600 32k-color (1:5:5:5)"
355
356config FRAMEBUFFER_VESA_MODE_114
357 bool "800x600 64k-color (5:6:5)"
358
359config FRAMEBUFFER_VESA_MODE_115
360 bool "800x600 16.8M-color (8:8:8)"
361
362config FRAMEBUFFER_VESA_MODE_116
363 bool "1024x768 32k-color (1:5:5:5)"
364
365config FRAMEBUFFER_VESA_MODE_117
366 bool "1024x768 64k-color (5:6:5)"
367
368config FRAMEBUFFER_VESA_MODE_118
369 bool "1024x768 16.8M-color (8:8:8)"
370
371config FRAMEBUFFER_VESA_MODE_119
372 bool "1280x1024 32k-color (1:5:5:5)"
373
374config FRAMEBUFFER_VESA_MODE_11A
375 bool "1280x1024 64k-color (5:6:5)"
376
377config FRAMEBUFFER_VESA_MODE_11B
378 bool "1280x1024 16.8M-color (8:8:8)"
379
380config FRAMEBUFFER_VESA_MODE_USER
381 bool "Manually select VESA mode"
382
383endchoice
384
385# Map the config names to an integer (KB).
386config FRAMEBUFFER_VESA_MODE
387 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
388 hex
389 default 0x100 if FRAMEBUFFER_VESA_MODE_100
390 default 0x101 if FRAMEBUFFER_VESA_MODE_101
391 default 0x102 if FRAMEBUFFER_VESA_MODE_102
392 default 0x103 if FRAMEBUFFER_VESA_MODE_103
393 default 0x104 if FRAMEBUFFER_VESA_MODE_104
394 default 0x105 if FRAMEBUFFER_VESA_MODE_105
395 default 0x106 if FRAMEBUFFER_VESA_MODE_106
396 default 0x107 if FRAMEBUFFER_VESA_MODE_107
397 default 0x108 if FRAMEBUFFER_VESA_MODE_108
398 default 0x109 if FRAMEBUFFER_VESA_MODE_109
399 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
400 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
401 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
402 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
403 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
404 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
405 default 0x110 if FRAMEBUFFER_VESA_MODE_110
406 default 0x111 if FRAMEBUFFER_VESA_MODE_111
407 default 0x112 if FRAMEBUFFER_VESA_MODE_112
408 default 0x113 if FRAMEBUFFER_VESA_MODE_113
409 default 0x114 if FRAMEBUFFER_VESA_MODE_114
410 default 0x115 if FRAMEBUFFER_VESA_MODE_115
411 default 0x116 if FRAMEBUFFER_VESA_MODE_116
412 default 0x117 if FRAMEBUFFER_VESA_MODE_117
413 default 0x118 if FRAMEBUFFER_VESA_MODE_118
414 default 0x119 if FRAMEBUFFER_VESA_MODE_119
415 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
416 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
Mike Banon749fe1e2019-02-23 21:43:05 +0300417 default 0x118 if FRAMEBUFFER_VESA_MODE_USER
Nico Hubera2cf6862017-05-20 17:57:01 +0200418endif # FRAMEBUFFER_SET_VESA_MODE
419
Angel Pons4cb2f762020-06-16 19:49:53 +0200420config WANT_LINEAR_FRAMEBUFFER
421 bool
422 default y if CHROMEOS
Sean Rhodes38c99b52022-07-13 10:11:44 +0100423 default y if PAYLOAD_EDK2
Nicholas Chin8d885572021-08-28 09:40:41 -0600424 default y if COREDOOM_SECONDARY_PAYLOAD
Angel Pons4cb2f762020-06-16 19:49:53 +0200425
Nico Hubera2cf6862017-05-20 17:57:01 +0200426choice
427 prompt "Framebuffer mode"
Angel Pons4cb2f762020-06-16 19:49:53 +0200428 default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && WANT_LINEAR_FRAMEBUFFER
429 default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && WANT_LINEAR_FRAMEBUFFER
Nico Hubera2cf6862017-05-20 17:57:01 +0200430 default VGA_TEXT_FRAMEBUFFER
431
432config VGA_TEXT_FRAMEBUFFER
433 bool "Legacy VGA text mode"
434 depends on HAVE_VGA_TEXT_FRAMEBUFFER
435 help
436 If this option is enabled, coreboot will initialize graphics in
437 legacy VGA text mode or, if a VGA BIOS is used and a VESA mode set,
438 switch to text mode before handing control to a payload.
439
440config VBE_LINEAR_FRAMEBUFFER
441 bool "VESA framebuffer"
442 depends on HAVE_VBE_LINEAR_FRAMEBUFFER
443 help
444 This option keeps the framebuffer mode set after coreboot finishes
445 execution. If this option is enabled, coreboot will pass a
446 framebuffer entry in its coreboot table and the payload will need a
447 compatible driver.
448
449config GENERIC_LINEAR_FRAMEBUFFER
450 bool "Linear \"high-resolution\" framebuffer"
451 depends on HAVE_LINEAR_FRAMEBUFFER
452 help
453 This option enables a high-resolution, linear framebuffer. If this
454 option is enabled, coreboot will pass a framebuffer entry in its
455 coreboot table and the payload will need a compatible driver.
456
457endchoice
458
459# Workaround to have LINEAR_FRAMEBUFFER set in both cases
460# VBE_LINEAR_FRAMEBUFFER and GENERIC_LINEAR_FRAMEBUFFER.
461# `kconfig_lint` doesn't let us use the same name with
462# different texts in the choice above.
463config LINEAR_FRAMEBUFFER
464 def_bool y
465 depends on VBE_LINEAR_FRAMEBUFFER || GENERIC_LINEAR_FRAMEBUFFER
466
Johanna Schanderc544a852019-07-28 09:28:33 +0200467config BOOTSPLASH
468 prompt "Show graphical bootsplash"
469 bool
470 depends on LINEAR_FRAMEBUFFER
471 help
472 This option shows a graphical bootsplash screen. The graphics are
473 loaded from the CBFS file bootsplash.jpg.
474
475 You can either specify the location and file name of the
476 image in the 'General' section or add it manually to CBFS, using,
477 for example, cbfstool.
478
Nico Huber2bc892c2019-01-01 22:28:47 +0100479config LINEAR_FRAMEBUFFER_MAX_WIDTH
480 int "Maximum width in pixels"
481 depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
Matt DeVillierd14461f2022-12-05 09:45:19 -0600482 default 2560 if SYSTEM_TYPE_LAPTOP
483 default 3840
Nico Huber2bc892c2019-01-01 22:28:47 +0100484 help
485 Set the maximum width of the framebuffer. This may help with
486 default fonts too tiny for high-resolution displays.
487
488config LINEAR_FRAMEBUFFER_MAX_HEIGHT
489 int "Maximum height in pixels"
490 depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
Matt DeVillierd14461f2022-12-05 09:45:19 -0600491 default 1600 if SYSTEM_TYPE_LAPTOP
492 default 2160
Nico Huber2bc892c2019-01-01 22:28:47 +0100493 help
494 Set the maximum height of the framebuffer. This may help with
495 default fonts too tiny for high-resolution displays.
496
Nico Hubera2cf6862017-05-20 17:57:01 +0200497endmenu # "Display"
498
Ronald G. Minnich78a16672012-11-29 16:28:21 -0800499config PCI
500 bool
501 default n
502
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200503if PCI
504
Shelley Chen4e9bb332021-10-20 15:43:45 -0700505config NO_ECAM_MMCONF_SUPPORT
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200506 bool
Kyösti Mälkki3d15e102016-11-29 16:46:56 +0200507 default n
Shelley Chen4e9bb332021-10-20 15:43:45 -0700508 help
509 Disable the use of the Enhanced Configuration
510 Access mechanism (ECAM) method for accessing PCI config
511 address space.
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200512
Shelley Chen4e9bb332021-10-20 15:43:45 -0700513config ECAM_MMCONF_SUPPORT
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200514 bool
Shelley Chen4e9bb332021-10-20 15:43:45 -0700515 default !NO_ECAM_MMCONF_SUPPORT
516 help
517 Enable the use of the Enhanced Configuration
518 Access mechanism (ECAM) method for accessing PCI config
519 address space.
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200520
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000521config PCIX_PLUGIN_SUPPORT
522 bool
Myles Watsoned035562009-09-22 21:29:32 +0000523 default y
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000524
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000525config CARDBUS_PLUGIN_SUPPORT
526 bool
Myles Watsoned035562009-09-22 21:29:32 +0000527 default y
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700528
Andrew Wub7bb70d2013-08-12 20:07:47 +0800529config AZALIA_PLUGIN_SUPPORT
530 bool
Andrew Wub7bb70d2013-08-12 20:07:47 +0800531 default n
532
Angel Ponsb922cbb2021-03-22 14:21:28 +0100533config AZALIA_LOCK_DOWN_R_WO_GCAP
534 def_bool n
535 depends on AZALIA_PLUGIN_SUPPORT
536 help
537 The GCAP register is implemented as R/WO (Read / Write Once) on some
538 HD Audio controllers, such as Intel 6-series PCHs. Select this option
539 to lock down the GCAP register after deasserting the controller reset
540 bit. Locking is done by reading GCAP and writing back the read value.
541
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200542config PCIEXP_PLUGIN_SUPPORT
543 bool
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200544 default y
545
Shelley Chen4e9bb332021-10-20 15:43:45 -0700546config ECAM_MMCONF_BASE_ADDRESS
Angel Pons7d638782021-01-28 12:51:11 +0100547 hex
Shelley Chen4e9bb332021-10-20 15:43:45 -0700548 depends on ECAM_MMCONF_SUPPORT
Angel Pons7d638782021-01-28 12:51:11 +0100549
Shelley Chen4e9bb332021-10-20 15:43:45 -0700550config ECAM_MMCONF_BUS_NUMBER
Angel Pons7d638782021-01-28 12:51:11 +0100551 int
Shelley Chen4e9bb332021-10-20 15:43:45 -0700552 depends on ECAM_MMCONF_SUPPORT
Angel Pons7d638782021-01-28 12:51:11 +0100553
Shelley Chen4e9bb332021-10-20 15:43:45 -0700554config ECAM_MMCONF_LENGTH
Angel Pons50632872021-01-28 13:04:06 +0100555 hex
Shelley Chen4e9bb332021-10-20 15:43:45 -0700556 depends on ECAM_MMCONF_SUPPORT
557 default 0x04000000 if ECAM_MMCONF_BUS_NUMBER = 64
558 default 0x08000000 if ECAM_MMCONF_BUS_NUMBER = 128
559 default 0x10000000 if ECAM_MMCONF_BUS_NUMBER = 256
Angel Pons50632872021-01-28 13:04:06 +0100560 default 0x0
561
Felix Singere4a7d9f2020-06-15 15:00:56 +0200562config PCI_ALLOW_BUS_MASTER
Felix Singer05b883e2020-10-13 15:12:01 +0200563 bool "Allow coreboot to set optional PCI bus master bits"
Felix Singere4a7d9f2020-06-15 15:00:56 +0200564 default y
565 help
566 For security reasons, bus mastering should be enabled as late as
567 possible. In coreboot, it's usually not necessary and payloads
568 should only enable it for devices they use. Since not all payloads
569 enable bus mastering properly yet, this option gives some sort of
570 "backwards compatibility" and is enabled by default to keep the
571 traditional behaviour for now. This is currently necessary, for
572 instance, for libpayload based payloads as the drivers don't enable
573 bus mastering for PCI bridges.
574
Felix Singer3d9fa082020-09-07 13:57:49 +0200575if PCI_ALLOW_BUS_MASTER
576
Felix Singer205b53e2020-09-07 15:21:21 +0200577config PCI_SET_BUS_MASTER_PCI_BRIDGES
578 bool "PCI bridges"
579 default y
580 help
581 Let coreboot configure bus mastering for PCI bridges. Enabling bus
582 mastering for a PCI bridge also allows it to forward requests from
583 downstream devices. Currently, payloads ignore this and only enable
584 bus mastering for the downstream device. Hence, this option is needed
585 for compatibility until payloads are fixed.
586
Felix Singer3d9fa082020-09-07 13:57:49 +0200587config PCI_ALLOW_BUS_MASTER_ANY_DEVICE
588 bool "Any devices"
589 default y
Felix Singer205b53e2020-09-07 15:21:21 +0200590 select PCI_SET_BUS_MASTER_PCI_BRIDGES
Felix Singer3d9fa082020-09-07 13:57:49 +0200591 help
592 Allow coreboot to enable PCI bus mastering for any device. The actual
593 selection of devices depends on the various PCI drivers in coreboot.
594
595endif # PCI_ALLOW_BUS_MASTER
596
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200597endif # PCI
598
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200599if PCIEXP_PLUGIN_SUPPORT
600
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700601config PCIEXP_COMMON_CLOCK
602 prompt "Enable PCIe Common Clock"
603 bool
604 default n
605 help
606 Detect and enable Common Clock on PCIe links.
607
608config PCIEXP_ASPM
609 prompt "Enable PCIe ASPM"
610 bool
611 default n
612 help
Jonathan Neuschäfer8c50e682016-12-27 16:31:28 +0100613 Detect and enable ASPM (Active State Power Management) on PCIe links.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800614
Kane Chen18cb1342014-10-01 11:13:54 +0800615config PCIEXP_CLK_PM
616 prompt "Enable PCIe Clock Power Management"
617 bool
Kane Chen18cb1342014-10-01 11:13:54 +0800618 default n
619 help
620 Detect and enable Clock Power Management on PCIe.
621
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200622config PCIEXP_L1_SUB_STATE
623 prompt "Enable PCIe ASPM L1 SubState"
624 bool
Shelley Chen4e9bb332021-10-20 15:43:45 -0700625 depends on (ECAM_MMCONF_SUPPORT || PCI_IO_CFG_EXT)
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200626 default n
627 help
628 Detect and enable ASPM on PCIe links.
629
Tim Wawrzynczak8c93fed2022-01-13 16:45:07 -0700630config PCIEXP_SUPPORT_RESIZABLE_BARS
631 prompt "Support PCIe Resizable BARs"
632 bool
633 depends on (ECAM_MMCONF_SUPPORT || PCI_IO_CFG_EXT)
634 default n
635 help
636 When enabled, this will check PCIe devices for Resizable BAR support,
637 and if found, will use this to discover the preferred BAR sizes of
638 the device in preference over the traditional moving bits method. The
639 amount of address space given out to devices in this manner (since
640 it can range up to 8 EB) can be limited with the
641 PCIEXP_DEFAULT_MAX_RESIZABLE_BAR_BITS Kconfig setting below.
642
643if PCIEXP_SUPPORT_RESIZABLE_BARS
644
645config PCIEXP_DEFAULT_MAX_RESIZABLE_BAR_BITS
646 int "Bits of address space to give to Resizable BARs"
647 range 20 63 # 1 MiB - 8 EiB
648 default 29 # 512 MiB
649 help
650 This is the maximum number of bits of address space to allocate for
651 PCIe devices with resizable BARs. For instance, if a device requests
652 30 bits of address space (1 GiB), but this field is set to 29, then
653 the device will only be allocated 29 bits worth of address space (512
654 MiB). Valid values range from 20 (1 MiB) to 63 (8 EiB); these come
655 from the Resizable BAR portion of the PCIe spec (7.8.6).
656
657endif # PCIEXP_SUPPORT_RESIZABLE_BARS
658
Wilson Chouc8a86952022-08-29 02:08:24 +0000659config PCIEXP_LANE_ERR_STAT_CLEAR
660 prompt "Enable Clear PCIe Lane Error Status"
661 bool
662 default n
663 help
664 Clear the PCIe Lane Error Status at the end of link training.
665
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600666config PCIEXP_HOTPLUG
667 prompt "Enable PCIe Hotplug Support"
668 bool
669 default n
670 help
671 Allocate resources for PCIe hotplug bridges
672
673if PCIEXP_HOTPLUG
674
675config PCIEXP_HOTPLUG_BUSES
676 int "PCI Express Hotplug Buses"
Shelley Chen4e9bb332021-10-20 15:43:45 -0700677 default 8 if ECAM_MMCONF_SUPPORT && ECAM_MMCONF_BUS_NUMBER <= 64
678 default 16 if ECAM_MMCONF_SUPPORT && ECAM_MMCONF_BUS_NUMBER <= 128
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600679 default 32
680 help
681 This is the number of buses allocated for hotplug PCI express
682 bridges, for use by hotplugged child devices. The default is 32
683 buses.
684
685config PCIEXP_HOTPLUG_MEM
686 hex "PCI Express Hotplug Memory"
687 default 0x800000
688 help
689 This is the amount of memory space, in bytes, to allocate to
690 hotplug PCI express bridges, for use by hotplugged child devices.
691 This size should be page-aligned. The default is 8 MiB.
692
693config PCIEXP_HOTPLUG_PREFETCH_MEM
694 hex "PCI Express Hotplug Prefetch Memory"
695 default 0x10000000
696 help
697 This is the amount of pre-fetchable memory space, in bytes, to
698 allocate to hot-plug PCI express bridges, for use by hotplugged
699 child devices. This size should be page-aligned. The default is
700 256 MiB.
701
Furquan Shaikh32f385e2020-05-15 23:35:00 -0700702config PCIEXP_HOTPLUG_PREFETCH_MEM_ABOVE_4G
703 bool
Furquan Shaikh32f385e2020-05-15 23:35:00 -0700704 default y if !PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G
705 default n
706 help
707 This enables prefetch memory allocation above 4G boundary for the
708 hotplug resources.
709
710config PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G
711 bool "PCI Express Hotplug Prefetch Memory Allocation below 4G boundary"
712 default n
713 help
714 This enables prefetch memory allocation below 4G boundary for the
715 hotplug resources.
716
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600717config PCIEXP_HOTPLUG_IO
718 hex "PCI Express Hotplug I/O Space"
719 default 0x2000
720 help
721 This is the amount of I/O space to allocate to hot-plug PCI
722 express bridges, for use by hotplugged child devices. The default
723 is 8 KiB.
724
725endif # PCIEXP_HOTPLUG
726
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200727endif # PCIEXP_PLUGIN_SUPPORT
728
Kyösti Mälkki4c686f22014-02-14 12:45:09 +0200729config EARLY_PCI_BRIDGE
730 bool "Early PCI bridge"
731 depends on PCI
732 default n
733 help
734 While coreboot is executing code from ROM, the coreboot resource
735 allocator has not been running yet. Hence PCI devices living behind
736 a bridge are not yet visible to the system.
737
738 This option enables static configuration for a single pre-defined
739 PCI bridge function on bus 0.
740
741if EARLY_PCI_BRIDGE
742
743config EARLY_PCI_BRIDGE_DEVICE
744 hex "bridge device"
745 default 0x0
746
747config EARLY_PCI_BRIDGE_FUNCTION
748 hex "bridge function"
749 default 0x0
750
751config EARLY_PCI_MMIO_BASE
752 hex "MMIO window base"
753 default 0x0
754
755endif # EARLY_PCI_BRIDGE
756
Stefan Reinauer58470e32014-10-17 13:08:36 +0200757config SUBSYSTEM_VENDOR_ID
758 hex "Override PCI Subsystem Vendor ID"
759 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600760 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200761 help
762 This config option will override the devicetree settings for
763 PCI Subsystem Vendor ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800764
Michael Niewöhnere0d749c2020-09-18 03:12:00 +0200765 Note: This option is not meant for a board's Kconfig; use the
766 devicetree setting `subsystemid` instead.
767
Stefan Reinauer58470e32014-10-17 13:08:36 +0200768config SUBSYSTEM_DEVICE_ID
769 hex "Override PCI Subsystem Device ID"
770 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600771 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200772 help
773 This config option will override the devicetree settings for
774 PCI Subsystem Device ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800775
Michael Niewöhnere0d749c2020-09-18 03:12:00 +0200776 Note: This option is not meant for a board's Kconfig; use the
777 devicetree setting `subsystemid` instead.
778
Stefan Reinauer95a63962012-11-13 17:00:01 -0800779config VGA_BIOS
780 bool "Add a VGA BIOS image"
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100781 depends on ARCH_X86
Subrata Banikaf039362020-12-30 16:09:56 +0530782 select VGA_ROM_RUN_DEFAULT
Stefan Reinauer95a63962012-11-13 17:00:01 -0800783 help
784 Select this option if you have a VGA BIOS image that you would
785 like to add to your ROM.
786
787 You will be able to specify the location and file name of the
788 image later.
789
790config VGA_BIOS_FILE
791 string "VGA BIOS path and filename"
792 depends on VGA_BIOS
793 default "vgabios.bin"
794 help
795 The path and filename of the file to use as VGA BIOS.
796
797config VGA_BIOS_ID
798 string "VGA device PCI IDs"
799 depends on VGA_BIOS
800 default "1106,3230"
801 help
Martin Rotha616a4b2020-01-21 09:28:40 -0700802 The comma-separated PCI vendor and device ID with optional revision if that
803 feature is enabled that would associate your vBIOS to your video card.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800804
Martin Rotha616a4b2020-01-21 09:28:40 -0700805 Example: 1106,3230 or 1106,3230,a3
Stefan Reinauer95a63962012-11-13 17:00:01 -0800806
807 In the above example 1106 is the PCI vendor ID (in hex, but without
808 the "0x" prefix) and 3230 specifies the PCI device ID of the
Martin Rotha616a4b2020-01-21 09:28:40 -0700809 video card (also in hex, without "0x" prefix). a3 specifies the revision.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800810
Daniele Forsif2fb7d92014-07-17 11:59:41 +0200811 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
812
Martin Roth4cc2cac2019-12-06 19:11:08 -0700813config VGA_BIOS_SECOND
814 bool "Add a 2nd video BIOS image"
815 depends on ARCH_X86 && VGA_BIOS
816 help
817 Select this option if you have a 2nd video BIOS image that you would
818 like to add to your ROM.
819
820config VGA_BIOS_SECOND_FILE
821 string "2nd video BIOS path and filename"
822 depends on VGA_BIOS_SECOND
823 default "vbios2.bin"
824 help
825 The path and filename of the file to use as video BIOS.
826
827config VGA_BIOS_SECOND_ID
828 string "Graphics device PCI IDs"
829 depends on VGA_BIOS_SECOND
830 help
Martin Rotha616a4b2020-01-21 09:28:40 -0700831 The comma-separated PCI vendor and device ID with optional revision if that
832 feature is enabled that would associate your vBIOS to your video card.
Martin Roth4cc2cac2019-12-06 19:11:08 -0700833
Martin Rotha616a4b2020-01-21 09:28:40 -0700834 Example: 1106,3230 or 1106,3230,a3
Martin Roth4cc2cac2019-12-06 19:11:08 -0700835
836 In the above example 1106 is the PCI vendor ID (in hex, but without
837 the "0x" prefix) and 3230 specifies the PCI device ID of the
Martin Rotha616a4b2020-01-21 09:28:40 -0700838 video card (also in hex, without "0x" prefix). a3 specifies the revision.
Martin Roth4cc2cac2019-12-06 19:11:08 -0700839
840 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
841
Martin Rotha616a4b2020-01-21 09:28:40 -0700842config CHECK_REV_IN_OPROM_NAME
843 def_bool n
844 help
845 Select this in the platform BIOS or chipset if the option rom has a revision
846 that needs to be checked when searching CBFS.
847
Mike Banon0f8547e2019-02-17 19:51:53 +0300848config VGA_BIOS_DGPU
849 bool "Add a discrete VGA BIOS image"
850 depends on VGA_BIOS
851 help
852 Select this option if you have a VGA BIOS image for discrete GPU
853 that you would like to add to your ROM.
854
855 You will be able to specify the location and file name of the
856 image later.
857
858config VGA_BIOS_DGPU_FILE
859 string "Discrete VGA BIOS path and filename"
860 depends on VGA_BIOS_DGPU
861 default "vgabios_dgpu.bin"
862 help
863 The path and filename of the file to use as VGA BIOS for discrete GPU.
864
865config VGA_BIOS_DGPU_ID
866 string "Discrete VGA device PCI IDs"
867 depends on VGA_BIOS_DGPU
868 default "1002,6663"
869 help
870 The comma-separated PCI vendor and device ID that would associate
871 your VGA BIOS to your discrete video card.
872
873 Examples:
874 1002,6663 for HD 8570M
875 1002,6665 for R5 M230
876
877 In the above examples 1002 is the PCI vendor ID (in hex, but without
878 the "0x" prefix) and 6663 / 6665 specifies the PCI device ID of the
879 discrete video card (also in hex, without "0x" prefix).
880
881 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
882
Nico Huber29cc3312018-06-06 17:40:02 +0200883config INTEL_GMA_HAVE_VBT
Arthur Heymans7225a362018-05-28 21:09:21 +0200884 bool
885 help
886 Select this in the mainboard Kconfig to indicate the board has
887 a data.vbt file.
888
Nico Huber29cc3312018-06-06 17:40:02 +0200889config INTEL_GMA_ADD_VBT
Patrick Rudolph4c170982017-07-17 19:53:56 +0200890 depends on SOC_INTEL_COMMON || CPU_INTEL_COMMON
Elyes HAOUAS6dc9d032020-02-16 16:22:52 +0100891 bool "Add a Video BIOS Table (VBT) binary to CBFS"
Nico Huber29cc3312018-06-06 17:40:02 +0200892 default y if INTEL_GMA_HAVE_VBT
Patrick Rudolph4c170982017-07-17 19:53:56 +0200893 help
894 Add a VBT data file to CBFS. The VBT describes the integrated
895 GPU and connections, and is needed by the GOP driver integrated into
896 FSP and the OS driver in order to initialize the display.
897
898config INTEL_GMA_VBT_FILE
899 string "VBT binary path and filename"
Nico Huber29cc3312018-06-06 17:40:02 +0200900 depends on INTEL_GMA_ADD_VBT
Patrick Georgib8fba862020-06-17 21:06:53 +0200901 default "src/mainboard/\$(MAINBOARDDIR)/variants/\$(VARIANT_DIR)/data.vbt" \
Nico Huber29cc3312018-06-06 17:40:02 +0200902 if INTEL_GMA_HAVE_VBT && VARIANT_DIR != ""
Patrick Georgib8fba862020-06-17 21:06:53 +0200903 default "src/mainboard/\$(MAINBOARDDIR)/data.vbt" if INTEL_GMA_HAVE_VBT
904 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/vbt.bin"
Patrick Rudolph4c170982017-07-17 19:53:56 +0200905 help
906 The path and filename of the VBT binary.
907
Julius Werner37d7ac82014-05-05 18:03:46 -0700908config SOFTWARE_I2C
909 bool "Enable I2C controller emulation in software"
910 default n
911 help
912 This config option will enable code to override the i2c_transfer
913 routine with a (simple) software emulation of the protocol. This may
914 be useful for debugging or on platforms where a driver for the real
915 I2C controller is not (yet) available. The platform code needs to
916 provide bindings to manually toggle I2C lines.
Kyösti Mälkkia91e1e62014-12-31 10:36:08 +0200917
Jes Klinke19baa9d2022-02-22 16:00:09 -0800918config I2C_TRANSFER_TIMEOUT_US
919 int "I2C transfer timeout in microseconds"
920 default 500000
921 help
922 Timeout for a read/write transfers on the I2C bus, that is, the
923 maximum time a device could stretch clock bits before the transfer
924 is aborted and an error returned.
925
Nico Huber526c6422020-05-25 00:03:14 +0200926config RESOURCE_ALLOCATION_TOP_DOWN
Nico Huber38aafa32022-09-04 22:20:21 +0200927 bool "Allocate resources from top down"
Nico Huber21ddf552022-09-04 21:58:03 +0200928 default n
Nico Huber21ddf552022-09-04 21:58:03 +0200929 help
930 Should be the default, but many platforms don't report resources
931 correctly. Hence, the allocator might cause conflicts.
Nico Huber526c6422020-05-25 00:03:14 +0200932
Raul E Rangela5b7ddf2020-05-29 17:16:20 -0600933config XHCI_UTILS
934 def_bool n
935 help
936 Provides xHCI utility functions.
937
Martin Rotha666af72022-10-29 13:27:22 -0600938source "src/device/dram/Kconfig"
939
Stefan Reinauer95a63962012-11-13 17:00:01 -0800940endmenu