blob: bb4e913f3582a5facb5bceb7417d5ebf78060036 [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
Arthur Heymansb43ec472019-03-24 20:39:45 +0100120config ONBOARD_VGA_IS_PRIMARY
121 bool "Use onboard VGA as primary video device"
122 default n
123 depends on PCI
124 help
125 This option lets you select which VGA device will be used
126 to decode legacy VGA cycles. Not all chipsets implement this
127 however. If not selected, the last adapter found will be used,
128 else the onboard adapter is used.
129
Stefan Reinauer0a500842011-09-23 10:33:58 -0700130config S3_VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700131 bool "Re-run VGA Option ROMs on S3 resume"
Stefan Reinauer0a500842011-09-23 10:33:58 -0700132 default y
133 depends on VGA_ROM_RUN && HAVE_ACPI_RESUME
134 help
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200135 Execute VGA Option ROMs in coreboot when resuming from S3 suspend.
136
137 When using a SeaBIOS payload it runs all option ROMs with much
138 more complete BIOS interrupt services available than coreboot,
139 which some option ROMs require in order to function correctly.
140
141 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauer0a500842011-09-23 10:33:58 -0700142
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300143config ALWAYS_LOAD_OPROM
144 def_bool n
145 depends on VGA_ROM_RUN
146 help
Daniele Forsi53847a22014-07-22 18:00:56 +0200147 Always load option ROMs if any are found. The decision to run
148 the ROM is still determined at runtime, but the distinction
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300149 between loading and not running comes into play for CHROMEOS.
150
Daniele Forsi53847a22014-07-22 18:00:56 +0200151 An example where this is required is that VBT (Video BIOS Tables)
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300152 are needed for the kernel's display driver to know how a piece of
153 hardware is configured to be used.
154
Aaron Durbin10510252018-01-30 10:04:02 -0700155config ALWAYS_RUN_OPROM
156 def_bool n
157 depends on VGA_ROM_RUN && ALWAYS_LOAD_OPROM
158 help
159 Always uncondtionally run the option regardless of other
160 policies.
161
Patrick Rudolph647e34d2016-02-11 08:36:50 +0100162config ON_DEVICE_ROM_LOAD
163 bool "Load Option ROMs on PCI devices"
Peter Stugebe0ede42012-10-27 14:17:04 +0200164 default n if PAYLOAD_SEABIOS
165 default y if !PAYLOAD_SEABIOS
Nico Huber49d99fc2017-05-20 17:56:02 +0200166 depends on VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700167 help
Nico Huber49d99fc2017-05-20 17:56:02 +0200168 Load Option ROMs stored on PCI/PCIe/AGP VGA devices in coreboot.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700169
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200170 If disabled, only Option ROMs stored in CBFS will be executed by
171 coreboot. If you are concerned about security, you might want to
172 disable this option, but it might leave your system in a state of
173 degraded functionality.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700174
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200175 When using a SeaBIOS payload it runs all option ROMs with much
176 more complete BIOS interrupt services available than coreboot,
177 which some option ROMs require in order to function correctly.
178
179 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700180
Patrick Georgi0588d192009-08-12 15:00:51 +0000181choice
Uwe Hermann168b11b2009-10-07 16:15:40 +0000182 prompt "Option ROM execution type"
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000183 default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
184 default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
Arthur Heymans57f70a12018-12-20 10:27:19 +0100185 depends on VGA_ROM_RUN
Uwe Hermann168b11b2009-10-07 16:15:40 +0000186
187config PCI_OPTION_ROM_RUN_REALMODE
Stefan Reinauerd650e992010-02-22 04:33:13 +0000188 prompt "Native mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000189 bool
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000190 depends on ARCH_X86
Myles Watson28412f52009-09-17 16:54:46 +0000191 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700192 If you select this option, PCI Option ROMs will be executed
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000193 natively on the CPU in real mode. No CPU emulation is involved,
194 so this is the fastest, but also the least secure option.
195 (only works on x86/x64 systems)
Patrick Georgi0588d192009-08-12 15:00:51 +0000196
Stefan Reinauerd650e992010-02-22 04:33:13 +0000197config PCI_OPTION_ROM_RUN_YABEL
Uwe Hermann548dbe72010-02-22 16:41:49 +0000198 prompt "Secure mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000199 bool
200 help
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000201 If you select this option, the x86emu CPU emulator will be used to
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700202 execute PCI Option ROMs.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000203
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700204 This option prevents Option ROMs from doing dirty tricks with the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000205 system (such as installing SMM modules or hypervisors), but it is
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700206 also significantly slower than the native Option ROM initialization
Uwe Hermann548dbe72010-02-22 16:41:49 +0000207 method.
208
Stefan Reinauerd650e992010-02-22 04:33:13 +0000209 This is the default choice for non-x86 systems.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000210
Patrick Georgi0588d192009-08-12 15:00:51 +0000211endchoice
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000212
Stefan Reinauer9a358532010-02-12 09:32:17 +0000213config YABEL_PCI_ACCESS_OTHER_DEVICES
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700214 prompt "Allow Option ROMs to access other devices"
Stefan Reinauer9a358532010-02-12 09:32:17 +0000215 bool
216 depends on PCI_OPTION_ROM_RUN_YABEL
217 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700218 Per default, YABEL only allows Option ROMs to access the PCI device
Stefan Reinauer9a358532010-02-12 09:32:17 +0000219 that they are associated with. However, this causes trouble for some
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700220 onboard graphics chips whose Option ROM needs to reconfigure the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000221 north bridge.
Stefan Reinauer9a358532010-02-12 09:32:17 +0000222
Patrick Georgic4b2a1b2012-07-20 13:44:50 +0200223config YABEL_PCI_FAKE_WRITING_OTHER_DEVICES_CONFIG
224 prompt "Fake success on writing other device's config space"
225 bool
226 depends on YABEL_PCI_ACCESS_OTHER_DEVICES
227 help
228 By default, YABEL aborts when the Option ROM tries to write to other
229 devices' config spaces. With this option enabled, the write doesn't
230 follow through, but the Option ROM is allowed to go on.
231 This can create issues such as hanging Option ROMs (if it depends on
232 that other register changing to the written value), so test for
233 impact before using this option.
234
Stefan Reinauer9a358532010-02-12 09:32:17 +0000235config YABEL_VIRTMEM_LOCATION
236 prompt "Location of YABEL's virtual memory"
237 hex
Alexandru Gagniucfdbc1af2015-08-26 10:11:02 -0400238 depends on PCI_OPTION_ROM_RUN_YABEL
Stefan Reinauer9a358532010-02-12 09:32:17 +0000239 default 0x1000000
240 help
241 YABEL requires 1MB memory for its CPU emulation. This memory is
242 normally located at 16MB.
243
Stefan Reinauerd650e992010-02-22 04:33:13 +0000244config YABEL_DIRECTHW
Uwe Hermann548dbe72010-02-22 16:41:49 +0000245 prompt "Direct hardware access"
Stefan Reinauerd650e992010-02-22 04:33:13 +0000246 bool
Stefan Reinauer91f14232012-12-07 16:55:12 -0800247 depends on PCI_OPTION_ROM_RUN_YABEL && ARCH_X86
Myles Watsone6804952009-08-28 14:36:12 +0000248 help
Stefan Reinauerd650e992010-02-22 04:33:13 +0000249 YABEL consists of two parts: It uses x86emu for the CPU emulation and
Uwe Hermann548dbe72010-02-22 16:41:49 +0000250 additionally provides a PC system emulation that filters bad device
251 and memory access (such as PCI config space access to other devices
252 than the initialized one).
253
Stefan Reinauerd650e992010-02-22 04:33:13 +0000254 When choosing this option, x86emu will pass through all hardware
Uwe Hermann548dbe72010-02-22 16:41:49 +0000255 accesses to memory and I/O devices to the underlying memory and I/O
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700256 addresses. While this option prevents Option ROMs from doing dirty
Stefan Reinauerd650e992010-02-22 04:33:13 +0000257 tricks with the CPU (such as installing SMM modules or hypervisors),
258 they can still access all devices in the system.
259 Enable this option for a good compromise between security and speed.
260
Stefan Reinauerabc0c852010-11-22 08:09:50 +0000261config MULTIPLE_VGA_ADAPTERS
Myles Watson28412f52009-09-17 16:54:46 +0000262 bool
263 default n
264
Nico Hubera2cf6862017-05-20 17:57:01 +0200265menu "Display"
266 depends on HAVE_VGA_TEXT_FRAMEBUFFER || HAVE_LINEAR_FRAMEBUFFER
267
268config FRAMEBUFFER_SET_VESA_MODE
269 prompt "Set framebuffer graphics resolution"
270 bool
Nico Huber7ebb0182019-07-22 18:17:40 +0200271 default y if CHROMEOS
Nico Hubera2cf6862017-05-20 17:57:01 +0200272 depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE
273 select HAVE_VBE_LINEAR_FRAMEBUFFER
274 help
275 Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
276
277if FRAMEBUFFER_SET_VESA_MODE
278
279choice
280 prompt "framebuffer graphics resolution"
Mike Banon749fe1e2019-02-23 21:43:05 +0300281 default FRAMEBUFFER_VESA_MODE_118
Nico Hubera2cf6862017-05-20 17:57:01 +0200282 help
283 This option sets the resolution used for the coreboot framebuffer (and
284 bootsplash screen).
285
286config FRAMEBUFFER_VESA_MODE_100
287 bool "640x400 256-color"
288
289config FRAMEBUFFER_VESA_MODE_101
290 bool "640x480 256-color"
291
292config FRAMEBUFFER_VESA_MODE_102
293 bool "800x600 16-color"
294
295config FRAMEBUFFER_VESA_MODE_103
296 bool "800x600 256-color"
297
298config FRAMEBUFFER_VESA_MODE_104
299 bool "1024x768 16-color"
300
301config FRAMEBUFFER_VESA_MODE_105
302 bool "1024x768 256-color"
303
304config FRAMEBUFFER_VESA_MODE_106
305 bool "1280x1024 16-color"
306
307config FRAMEBUFFER_VESA_MODE_107
308 bool "1280x1024 256-color"
309
310config FRAMEBUFFER_VESA_MODE_108
311 bool "80x60 text"
312
313config FRAMEBUFFER_VESA_MODE_109
314 bool "132x25 text"
315
316config FRAMEBUFFER_VESA_MODE_10A
317 bool "132x43 text"
318
319config FRAMEBUFFER_VESA_MODE_10B
320 bool "132x50 text"
321
322config FRAMEBUFFER_VESA_MODE_10C
323 bool "132x60 text"
324
325config FRAMEBUFFER_VESA_MODE_10D
326 bool "320x200 32k-color (1:5:5:5)"
327
328config FRAMEBUFFER_VESA_MODE_10E
329 bool "320x200 64k-color (5:6:5)"
330
331config FRAMEBUFFER_VESA_MODE_10F
332 bool "320x200 16.8M-color (8:8:8)"
333
334config FRAMEBUFFER_VESA_MODE_110
335 bool "640x480 32k-color (1:5:5:5)"
336
337config FRAMEBUFFER_VESA_MODE_111
338 bool "640x480 64k-color (5:6:5)"
339
340config FRAMEBUFFER_VESA_MODE_112
341 bool "640x480 16.8M-color (8:8:8)"
342
343config FRAMEBUFFER_VESA_MODE_113
344 bool "800x600 32k-color (1:5:5:5)"
345
346config FRAMEBUFFER_VESA_MODE_114
347 bool "800x600 64k-color (5:6:5)"
348
349config FRAMEBUFFER_VESA_MODE_115
350 bool "800x600 16.8M-color (8:8:8)"
351
352config FRAMEBUFFER_VESA_MODE_116
353 bool "1024x768 32k-color (1:5:5:5)"
354
355config FRAMEBUFFER_VESA_MODE_117
356 bool "1024x768 64k-color (5:6:5)"
357
358config FRAMEBUFFER_VESA_MODE_118
359 bool "1024x768 16.8M-color (8:8:8)"
360
361config FRAMEBUFFER_VESA_MODE_119
362 bool "1280x1024 32k-color (1:5:5:5)"
363
364config FRAMEBUFFER_VESA_MODE_11A
365 bool "1280x1024 64k-color (5:6:5)"
366
367config FRAMEBUFFER_VESA_MODE_11B
368 bool "1280x1024 16.8M-color (8:8:8)"
369
370config FRAMEBUFFER_VESA_MODE_USER
371 bool "Manually select VESA mode"
372
373endchoice
374
375# Map the config names to an integer (KB).
376config FRAMEBUFFER_VESA_MODE
377 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
378 hex
379 default 0x100 if FRAMEBUFFER_VESA_MODE_100
380 default 0x101 if FRAMEBUFFER_VESA_MODE_101
381 default 0x102 if FRAMEBUFFER_VESA_MODE_102
382 default 0x103 if FRAMEBUFFER_VESA_MODE_103
383 default 0x104 if FRAMEBUFFER_VESA_MODE_104
384 default 0x105 if FRAMEBUFFER_VESA_MODE_105
385 default 0x106 if FRAMEBUFFER_VESA_MODE_106
386 default 0x107 if FRAMEBUFFER_VESA_MODE_107
387 default 0x108 if FRAMEBUFFER_VESA_MODE_108
388 default 0x109 if FRAMEBUFFER_VESA_MODE_109
389 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
390 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
391 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
392 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
393 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
394 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
395 default 0x110 if FRAMEBUFFER_VESA_MODE_110
396 default 0x111 if FRAMEBUFFER_VESA_MODE_111
397 default 0x112 if FRAMEBUFFER_VESA_MODE_112
398 default 0x113 if FRAMEBUFFER_VESA_MODE_113
399 default 0x114 if FRAMEBUFFER_VESA_MODE_114
400 default 0x115 if FRAMEBUFFER_VESA_MODE_115
401 default 0x116 if FRAMEBUFFER_VESA_MODE_116
402 default 0x117 if FRAMEBUFFER_VESA_MODE_117
403 default 0x118 if FRAMEBUFFER_VESA_MODE_118
404 default 0x119 if FRAMEBUFFER_VESA_MODE_119
405 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
406 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
Mike Banon749fe1e2019-02-23 21:43:05 +0300407 default 0x118 if FRAMEBUFFER_VESA_MODE_USER
Nico Hubera2cf6862017-05-20 17:57:01 +0200408endif # FRAMEBUFFER_SET_VESA_MODE
409
Angel Pons4cb2f762020-06-16 19:49:53 +0200410config WANT_LINEAR_FRAMEBUFFER
411 bool
412 default y if CHROMEOS
413 default y if PAYLOAD_TIANOCORE
414
Nico Hubera2cf6862017-05-20 17:57:01 +0200415choice
416 prompt "Framebuffer mode"
Angel Pons4cb2f762020-06-16 19:49:53 +0200417 default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && WANT_LINEAR_FRAMEBUFFER
418 default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && WANT_LINEAR_FRAMEBUFFER
Nico Hubera2cf6862017-05-20 17:57:01 +0200419 default VGA_TEXT_FRAMEBUFFER
420
421config VGA_TEXT_FRAMEBUFFER
422 bool "Legacy VGA text mode"
423 depends on HAVE_VGA_TEXT_FRAMEBUFFER
424 help
425 If this option is enabled, coreboot will initialize graphics in
426 legacy VGA text mode or, if a VGA BIOS is used and a VESA mode set,
427 switch to text mode before handing control to a payload.
428
429config VBE_LINEAR_FRAMEBUFFER
430 bool "VESA framebuffer"
431 depends on HAVE_VBE_LINEAR_FRAMEBUFFER
432 help
433 This option keeps the framebuffer mode set after coreboot finishes
434 execution. If this option is enabled, coreboot will pass a
435 framebuffer entry in its coreboot table and the payload will need a
436 compatible driver.
437
438config GENERIC_LINEAR_FRAMEBUFFER
439 bool "Linear \"high-resolution\" framebuffer"
440 depends on HAVE_LINEAR_FRAMEBUFFER
441 help
442 This option enables a high-resolution, linear framebuffer. If this
443 option is enabled, coreboot will pass a framebuffer entry in its
444 coreboot table and the payload will need a compatible driver.
445
446endchoice
447
448# Workaround to have LINEAR_FRAMEBUFFER set in both cases
449# VBE_LINEAR_FRAMEBUFFER and GENERIC_LINEAR_FRAMEBUFFER.
450# `kconfig_lint` doesn't let us use the same name with
451# different texts in the choice above.
452config LINEAR_FRAMEBUFFER
453 def_bool y
454 depends on VBE_LINEAR_FRAMEBUFFER || GENERIC_LINEAR_FRAMEBUFFER
455
Johanna Schanderc544a852019-07-28 09:28:33 +0200456config BOOTSPLASH
457 prompt "Show graphical bootsplash"
458 bool
459 depends on LINEAR_FRAMEBUFFER
460 help
461 This option shows a graphical bootsplash screen. The graphics are
462 loaded from the CBFS file bootsplash.jpg.
463
464 You can either specify the location and file name of the
465 image in the 'General' section or add it manually to CBFS, using,
466 for example, cbfstool.
467
Nico Huber2bc892c2019-01-01 22:28:47 +0100468config LINEAR_FRAMEBUFFER_MAX_WIDTH
469 int "Maximum width in pixels"
470 depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
471 default 2560
472 help
473 Set the maximum width of the framebuffer. This may help with
474 default fonts too tiny for high-resolution displays.
475
476config LINEAR_FRAMEBUFFER_MAX_HEIGHT
477 int "Maximum height in pixels"
478 depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
479 default 1600
480 help
481 Set the maximum height of the framebuffer. This may help with
482 default fonts too tiny for high-resolution displays.
483
Nico Hubera2cf6862017-05-20 17:57:01 +0200484endmenu # "Display"
485
Ronald G. Minnich78a16672012-11-29 16:28:21 -0800486config PCI
487 bool
488 default n
489
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200490if PCI
491
492config NO_MMCONF_SUPPORT
493 bool
Kyösti Mälkki3d15e102016-11-29 16:46:56 +0200494 default n
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200495
496config MMCONF_SUPPORT
497 bool
Kyösti Mälkki3d15e102016-11-29 16:46:56 +0200498 default !NO_MMCONF_SUPPORT
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200499
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000500config PCIX_PLUGIN_SUPPORT
501 bool
Myles Watsoned035562009-09-22 21:29:32 +0000502 default y
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000503
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000504config CARDBUS_PLUGIN_SUPPORT
505 bool
Myles Watsoned035562009-09-22 21:29:32 +0000506 default y
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700507
Andrew Wub7bb70d2013-08-12 20:07:47 +0800508config AZALIA_PLUGIN_SUPPORT
509 bool
Andrew Wub7bb70d2013-08-12 20:07:47 +0800510 default n
511
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200512config PCIEXP_PLUGIN_SUPPORT
513 bool
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200514 default y
515
Felix Singere4a7d9f2020-06-15 15:00:56 +0200516config PCI_ALLOW_BUS_MASTER
Felix Singer05b883e2020-10-13 15:12:01 +0200517 bool "Allow coreboot to set optional PCI bus master bits"
Felix Singere4a7d9f2020-06-15 15:00:56 +0200518 default y
519 help
520 For security reasons, bus mastering should be enabled as late as
521 possible. In coreboot, it's usually not necessary and payloads
522 should only enable it for devices they use. Since not all payloads
523 enable bus mastering properly yet, this option gives some sort of
524 "backwards compatibility" and is enabled by default to keep the
525 traditional behaviour for now. This is currently necessary, for
526 instance, for libpayload based payloads as the drivers don't enable
527 bus mastering for PCI bridges.
528
Felix Singer3d9fa082020-09-07 13:57:49 +0200529if PCI_ALLOW_BUS_MASTER
530
Felix Singer205b53e2020-09-07 15:21:21 +0200531config PCI_SET_BUS_MASTER_PCI_BRIDGES
532 bool "PCI bridges"
533 default y
534 help
535 Let coreboot configure bus mastering for PCI bridges. Enabling bus
536 mastering for a PCI bridge also allows it to forward requests from
537 downstream devices. Currently, payloads ignore this and only enable
538 bus mastering for the downstream device. Hence, this option is needed
539 for compatibility until payloads are fixed.
540
Felix Singer3d9fa082020-09-07 13:57:49 +0200541config PCI_ALLOW_BUS_MASTER_ANY_DEVICE
542 bool "Any devices"
543 default y
Felix Singer205b53e2020-09-07 15:21:21 +0200544 select PCI_SET_BUS_MASTER_PCI_BRIDGES
Felix Singer3d9fa082020-09-07 13:57:49 +0200545 help
546 Allow coreboot to enable PCI bus mastering for any device. The actual
547 selection of devices depends on the various PCI drivers in coreboot.
548
549endif # PCI_ALLOW_BUS_MASTER
550
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200551endif # PCI
552
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200553if PCIEXP_PLUGIN_SUPPORT
554
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700555config PCIEXP_COMMON_CLOCK
556 prompt "Enable PCIe Common Clock"
557 bool
558 default n
559 help
560 Detect and enable Common Clock on PCIe links.
561
562config PCIEXP_ASPM
563 prompt "Enable PCIe ASPM"
564 bool
565 default n
566 help
Jonathan Neuschäfer8c50e682016-12-27 16:31:28 +0100567 Detect and enable ASPM (Active State Power Management) on PCIe links.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800568
Kane Chen18cb1342014-10-01 11:13:54 +0800569config PCIEXP_CLK_PM
570 prompt "Enable PCIe Clock Power Management"
571 bool
Kane Chen18cb1342014-10-01 11:13:54 +0800572 default n
573 help
574 Detect and enable Clock Power Management on PCIe.
575
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200576config PCIEXP_L1_SUB_STATE
577 prompt "Enable PCIe ASPM L1 SubState"
578 bool
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200579 depends on (MMCONF_SUPPORT || PCI_IO_CFG_EXT)
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200580 default n
581 help
582 Detect and enable ASPM on PCIe links.
583
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600584config PCIEXP_HOTPLUG
585 prompt "Enable PCIe Hotplug Support"
586 bool
587 default n
588 help
589 Allocate resources for PCIe hotplug bridges
590
591if PCIEXP_HOTPLUG
592
593config PCIEXP_HOTPLUG_BUSES
594 int "PCI Express Hotplug Buses"
595 default 32
596 help
597 This is the number of buses allocated for hotplug PCI express
598 bridges, for use by hotplugged child devices. The default is 32
599 buses.
600
601config PCIEXP_HOTPLUG_MEM
602 hex "PCI Express Hotplug Memory"
603 default 0x800000
604 help
605 This is the amount of memory space, in bytes, to allocate to
606 hotplug PCI express bridges, for use by hotplugged child devices.
607 This size should be page-aligned. The default is 8 MiB.
608
609config PCIEXP_HOTPLUG_PREFETCH_MEM
610 hex "PCI Express Hotplug Prefetch Memory"
611 default 0x10000000
612 help
613 This is the amount of pre-fetchable memory space, in bytes, to
614 allocate to hot-plug PCI express bridges, for use by hotplugged
615 child devices. This size should be page-aligned. The default is
616 256 MiB.
617
Furquan Shaikh32f385e2020-05-15 23:35:00 -0700618config PCIEXP_HOTPLUG_PREFETCH_MEM_ABOVE_4G
619 bool
620 depends on RESOURCE_ALLOCATOR_V4
621 default y if !PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G
622 default n
623 help
624 This enables prefetch memory allocation above 4G boundary for the
625 hotplug resources.
626
627config PCIEXP_HOTPLUG_PREFETCH_MEM_BELOW_4G
628 bool "PCI Express Hotplug Prefetch Memory Allocation below 4G boundary"
629 default n
630 help
631 This enables prefetch memory allocation below 4G boundary for the
632 hotplug resources.
633
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600634config PCIEXP_HOTPLUG_IO
635 hex "PCI Express Hotplug I/O Space"
636 default 0x2000
637 help
638 This is the amount of I/O space to allocate to hot-plug PCI
639 express bridges, for use by hotplugged child devices. The default
640 is 8 KiB.
641
642endif # PCIEXP_HOTPLUG
643
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200644endif # PCIEXP_PLUGIN_SUPPORT
645
Kyösti Mälkki4c686f22014-02-14 12:45:09 +0200646config EARLY_PCI_BRIDGE
647 bool "Early PCI bridge"
648 depends on PCI
649 default n
650 help
651 While coreboot is executing code from ROM, the coreboot resource
652 allocator has not been running yet. Hence PCI devices living behind
653 a bridge are not yet visible to the system.
654
655 This option enables static configuration for a single pre-defined
656 PCI bridge function on bus 0.
657
658if EARLY_PCI_BRIDGE
659
660config EARLY_PCI_BRIDGE_DEVICE
661 hex "bridge device"
662 default 0x0
663
664config EARLY_PCI_BRIDGE_FUNCTION
665 hex "bridge function"
666 default 0x0
667
668config EARLY_PCI_MMIO_BASE
669 hex "MMIO window base"
670 default 0x0
671
672endif # EARLY_PCI_BRIDGE
673
Stefan Reinauer58470e32014-10-17 13:08:36 +0200674config SUBSYSTEM_VENDOR_ID
675 hex "Override PCI Subsystem Vendor ID"
676 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600677 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200678 help
679 This config option will override the devicetree settings for
680 PCI Subsystem Vendor ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800681
Michael Niewöhnere0d749c2020-09-18 03:12:00 +0200682 Note: This option is not meant for a board's Kconfig; use the
683 devicetree setting `subsystemid` instead.
684
Stefan Reinauer58470e32014-10-17 13:08:36 +0200685config SUBSYSTEM_DEVICE_ID
686 hex "Override PCI Subsystem Device ID"
687 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600688 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200689 help
690 This config option will override the devicetree settings for
691 PCI Subsystem Device ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800692
Michael Niewöhnere0d749c2020-09-18 03:12:00 +0200693 Note: This option is not meant for a board's Kconfig; use the
694 devicetree setting `subsystemid` instead.
695
Stefan Reinauer95a63962012-11-13 17:00:01 -0800696config VGA_BIOS
697 bool "Add a VGA BIOS image"
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100698 depends on ARCH_X86
Subrata Banikaf039362020-12-30 16:09:56 +0530699 select VGA_ROM_RUN_DEFAULT
Stefan Reinauer95a63962012-11-13 17:00:01 -0800700 help
701 Select this option if you have a VGA BIOS image that you would
702 like to add to your ROM.
703
704 You will be able to specify the location and file name of the
705 image later.
706
707config VGA_BIOS_FILE
708 string "VGA BIOS path and filename"
709 depends on VGA_BIOS
710 default "vgabios.bin"
711 help
712 The path and filename of the file to use as VGA BIOS.
713
714config VGA_BIOS_ID
715 string "VGA device PCI IDs"
716 depends on VGA_BIOS
717 default "1106,3230"
718 help
Martin Rotha616a4b2020-01-21 09:28:40 -0700719 The comma-separated PCI vendor and device ID with optional revision if that
720 feature is enabled that would associate your vBIOS to your video card.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800721
Martin Rotha616a4b2020-01-21 09:28:40 -0700722 Example: 1106,3230 or 1106,3230,a3
Stefan Reinauer95a63962012-11-13 17:00:01 -0800723
724 In the above example 1106 is the PCI vendor ID (in hex, but without
725 the "0x" prefix) and 3230 specifies the PCI device ID of the
Martin Rotha616a4b2020-01-21 09:28:40 -0700726 video card (also in hex, without "0x" prefix). a3 specifies the revision.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800727
Daniele Forsif2fb7d92014-07-17 11:59:41 +0200728 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
729
Martin Roth4cc2cac2019-12-06 19:11:08 -0700730config VGA_BIOS_SECOND
731 bool "Add a 2nd video BIOS image"
732 depends on ARCH_X86 && VGA_BIOS
733 help
734 Select this option if you have a 2nd video BIOS image that you would
735 like to add to your ROM.
736
737config VGA_BIOS_SECOND_FILE
738 string "2nd video BIOS path and filename"
739 depends on VGA_BIOS_SECOND
740 default "vbios2.bin"
741 help
742 The path and filename of the file to use as video BIOS.
743
744config VGA_BIOS_SECOND_ID
745 string "Graphics device PCI IDs"
746 depends on VGA_BIOS_SECOND
747 help
Martin Rotha616a4b2020-01-21 09:28:40 -0700748 The comma-separated PCI vendor and device ID with optional revision if that
749 feature is enabled that would associate your vBIOS to your video card.
Martin Roth4cc2cac2019-12-06 19:11:08 -0700750
Martin Rotha616a4b2020-01-21 09:28:40 -0700751 Example: 1106,3230 or 1106,3230,a3
Martin Roth4cc2cac2019-12-06 19:11:08 -0700752
753 In the above example 1106 is the PCI vendor ID (in hex, but without
754 the "0x" prefix) and 3230 specifies the PCI device ID of the
Martin Rotha616a4b2020-01-21 09:28:40 -0700755 video card (also in hex, without "0x" prefix). a3 specifies the revision.
Martin Roth4cc2cac2019-12-06 19:11:08 -0700756
757 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
758
Martin Rotha616a4b2020-01-21 09:28:40 -0700759config CHECK_REV_IN_OPROM_NAME
760 def_bool n
761 help
762 Select this in the platform BIOS or chipset if the option rom has a revision
763 that needs to be checked when searching CBFS.
764
Mike Banon0f8547e2019-02-17 19:51:53 +0300765config VGA_BIOS_DGPU
766 bool "Add a discrete VGA BIOS image"
767 depends on VGA_BIOS
768 help
769 Select this option if you have a VGA BIOS image for discrete GPU
770 that you would like to add to your ROM.
771
772 You will be able to specify the location and file name of the
773 image later.
774
775config VGA_BIOS_DGPU_FILE
776 string "Discrete VGA BIOS path and filename"
777 depends on VGA_BIOS_DGPU
778 default "vgabios_dgpu.bin"
779 help
780 The path and filename of the file to use as VGA BIOS for discrete GPU.
781
782config VGA_BIOS_DGPU_ID
783 string "Discrete VGA device PCI IDs"
784 depends on VGA_BIOS_DGPU
785 default "1002,6663"
786 help
787 The comma-separated PCI vendor and device ID that would associate
788 your VGA BIOS to your discrete video card.
789
790 Examples:
791 1002,6663 for HD 8570M
792 1002,6665 for R5 M230
793
794 In the above examples 1002 is the PCI vendor ID (in hex, but without
795 the "0x" prefix) and 6663 / 6665 specifies the PCI device ID of the
796 discrete video card (also in hex, without "0x" prefix).
797
798 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
799
Nico Huber29cc3312018-06-06 17:40:02 +0200800config INTEL_GMA_HAVE_VBT
Arthur Heymans7225a362018-05-28 21:09:21 +0200801 bool
802 help
803 Select this in the mainboard Kconfig to indicate the board has
804 a data.vbt file.
805
Nico Huber29cc3312018-06-06 17:40:02 +0200806config INTEL_GMA_ADD_VBT
Patrick Rudolph4c170982017-07-17 19:53:56 +0200807 depends on SOC_INTEL_COMMON || CPU_INTEL_COMMON
Elyes HAOUAS6dc9d032020-02-16 16:22:52 +0100808 bool "Add a Video BIOS Table (VBT) binary to CBFS"
Nico Huber29cc3312018-06-06 17:40:02 +0200809 default y if INTEL_GMA_HAVE_VBT
Patrick Rudolph4c170982017-07-17 19:53:56 +0200810 help
811 Add a VBT data file to CBFS. The VBT describes the integrated
812 GPU and connections, and is needed by the GOP driver integrated into
813 FSP and the OS driver in order to initialize the display.
814
815config INTEL_GMA_VBT_FILE
816 string "VBT binary path and filename"
Nico Huber29cc3312018-06-06 17:40:02 +0200817 depends on INTEL_GMA_ADD_VBT
Patrick Georgib8fba862020-06-17 21:06:53 +0200818 default "src/mainboard/\$(MAINBOARDDIR)/variants/\$(VARIANT_DIR)/data.vbt" \
Nico Huber29cc3312018-06-06 17:40:02 +0200819 if INTEL_GMA_HAVE_VBT && VARIANT_DIR != ""
Patrick Georgib8fba862020-06-17 21:06:53 +0200820 default "src/mainboard/\$(MAINBOARDDIR)/data.vbt" if INTEL_GMA_HAVE_VBT
821 default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/vbt.bin"
Patrick Rudolph4c170982017-07-17 19:53:56 +0200822 help
823 The path and filename of the VBT binary.
824
Julius Werner37d7ac82014-05-05 18:03:46 -0700825config SOFTWARE_I2C
826 bool "Enable I2C controller emulation in software"
827 default n
828 help
829 This config option will enable code to override the i2c_transfer
830 routine with a (simple) software emulation of the protocol. This may
831 be useful for debugging or on platforms where a driver for the real
832 I2C controller is not (yet) available. The platform code needs to
833 provide bindings to manually toggle I2C lines.
Kyösti Mälkkia91e1e62014-12-31 10:36:08 +0200834
Furquan Shaikh69395742020-05-15 15:43:15 -0700835config RESOURCE_ALLOCATOR_V3
836 bool
Furquan Shaikh23b874a2020-05-15 16:25:47 -0700837 default n
Furquan Shaikh69395742020-05-15 15:43:15 -0700838 help
839 This config option enables resource allocator v3 which performs
Furquan Shaikh23b874a2020-05-15 16:25:47 -0700840 top down allocation of resources in a single MMIO window. This is the
841 old resource allocator meant to be used only until the broken AMD
842 chipsets are fixed. DO NOT USE THIS FOR ANY NEW CHIPSETS!
Furquan Shaikh69395742020-05-15 15:43:15 -0700843
Furquan Shaikhf4bc9eb2020-05-15 16:04:28 -0700844config RESOURCE_ALLOCATOR_V4
845 bool
846 default n if RESOURCE_ALLOCATOR_V3
847 default y if !RESOURCE_ALLOCATOR_V3
848 help
849 This config option enables resource allocator v4 which uses multiple
850 ranges for allocating resources. This allows allocation of resources
851 above 4G boundary as well.
852
Raul E Rangela5b7ddf2020-05-29 17:16:20 -0600853config XHCI_UTILS
854 def_bool n
855 help
856 Provides xHCI utility functions.
857
Stefan Reinauer95a63962012-11-13 17:00:01 -0800858endmenu