blob: 97eae506a389c3172af236287abd80e11e95a210 [file] [log] [blame]
Patrick Georgi0588d192009-08-12 15:00:51 +00001##
2## This file is part of the coreboot project.
3##
Patrick Georgic49d7a32020-05-08 22:50:46 +02004## SPDX-License-Identifier: GPL-2.0-only
Patrick Georgi0588d192009-08-12 15:00:51 +00005
Stefan Reinauer95a63962012-11-13 17:00:01 -08006menu "Devices"
Ronald G. Minnich69efaa02013-02-26 10:07:40 -08007
Nico Huberce642f02017-05-19 15:08:21 +02008config HAVE_VGA_TEXT_FRAMEBUFFER
Vladimir Serbinenko160e9a02014-02-22 10:34:47 +01009 bool
Michael Niewöhner1513d722019-10-29 20:38:10 +010010 depends on !NO_GFX_INIT
Nico Huber7971582e2017-05-20 01:07:48 +020011 help
12 Selected by graphics drivers that support legacy VGA text mode.
13
14config HAVE_VBE_LINEAR_FRAMEBUFFER
15 bool
Michael Niewöhner1513d722019-10-29 20:38:10 +010016 depends on !NO_GFX_INIT
Nico Huber7971582e2017-05-20 01:07:48 +020017 help
18 Selected by graphics drivers that can set up a VBE linear-framebuffer
19 mode.
20
21config HAVE_LINEAR_FRAMEBUFFER
22 bool
Michael Niewöhner1513d722019-10-29 20:38:10 +010023 depends on !NO_GFX_INIT
Nico Huber7971582e2017-05-20 01:07:48 +020024 help
25 Selected by graphics drivers that can set up a generic linear
26 framebuffer.
Vladimir Serbinenko160e9a02014-02-22 10:34:47 +010027
Nico Huber2e7f6cc2017-05-22 15:58:03 +020028config HAVE_FSP_GOP
29 bool
30 help
31 Selected by drivers that support to run a blob that implements
32 the Graphics Output Protocol (GOP).
33
Michael Niewöhnerd61a40e2019-10-26 10:37:42 +020034config MAINBOARD_NO_FSP_GOP
35 bool
36 help
37 Selected by mainboards that do not have any graphics ports connected to the SoC.
38
Nico Huber26ce9af2017-05-22 13:22:09 +020039config MAINBOARD_HAS_NATIVE_VGA_INIT
40 def_bool n
41 help
42 Selected by mainboards / drivers that provide native graphics
43 init within coreboot.
44
45config MAINBOARD_FORCE_NATIVE_VGA_INIT
46 def_bool n
47 depends on MAINBOARD_HAS_NATIVE_VGA_INIT || MAINBOARD_HAS_LIBGFXINIT
Nico Huber26ce9af2017-05-22 13:22:09 +020048 help
49 Selected by mainboards / chipsets whose graphics driver can't or
50 shouldn't be disabled.
51
Nico Huber542e9482016-10-05 17:47:32 +020052config MAINBOARD_HAS_LIBGFXINIT
53 def_bool n
Nico Huber542e9482016-10-05 17:47:32 +020054 help
55 Selected by mainboards that implement support for `libgfxinit`.
56 Usually this requires a list of ports to be probed for displays.
57
Nico Huberd4ebeaf2017-05-22 13:49:22 +020058choice
59 prompt "Graphics initialization"
60 default NO_GFX_INIT if VGA_BIOS && PAYLOAD_SEABIOS
61 default VGA_ROM_RUN if VGA_BIOS
Matt DeVillier8107c812020-03-27 03:09:21 -050062 default MAINBOARD_DO_NATIVE_VGA_INIT
63 default MAINBOARD_USE_LIBGFXINIT
Matt DeVillier175ffd82020-03-29 18:20:23 -050064 default RUN_FSP_GOP if INTEL_GMA_HAVE_VBT
Nico Huberd4ebeaf2017-05-22 13:49:22 +020065
66config MAINBOARD_DO_NATIVE_VGA_INIT
67 bool "Use native graphics init"
68 depends on MAINBOARD_HAS_NATIVE_VGA_INIT
69 help
70 Some mainboards, such as the Google Link, allow initializing the
71 display without the need of a binary only VGA OPROM. Enabling this
72 option may be faster, but also lacks flexibility in setting modes.
73
Nico Huber542e9482016-10-05 17:47:32 +020074config MAINBOARD_USE_LIBGFXINIT
Nico Huberd4ebeaf2017-05-22 13:49:22 +020075 bool "Use libgfxinit"
Nico Huber542e9482016-10-05 17:47:32 +020076 depends on MAINBOARD_HAS_LIBGFXINIT
Nico Huberce642f02017-05-19 15:08:21 +020077 select HAVE_VGA_TEXT_FRAMEBUFFER
Nico Huber7971582e2017-05-20 01:07:48 +020078 select HAVE_LINEAR_FRAMEBUFFER
Nico Huber6d8266b2017-05-20 16:46:01 +020079 select VGA if VGA_TEXT_FRAMEBUFFER
Nico Huber542e9482016-10-05 17:47:32 +020080 help
81 Use the SPARK library `libgfxinit` for the native graphics
82 initialization. This requires an Ada toolchain.
83
Uwe Hermann168b11b2009-10-07 16:15:40 +000084# TODO: Explain differences (if any) for onboard cards.
Patrick Georgi0588d192009-08-12 15:00:51 +000085config VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -070086 bool "Run VGA Option ROMs"
Jonathan Neuschäferc22ad582018-11-30 00:06:50 +010087 depends on PCI && (ARCH_X86 || ARCH_PPC64) && !MAINBOARD_FORCE_NATIVE_VGA_INIT
Nico Huberce642f02017-05-19 15:08:21 +020088 select HAVE_VGA_TEXT_FRAMEBUFFER
Patrick Georgi0588d192009-08-12 15:00:51 +000089 help
Nico Huberd4ebeaf2017-05-22 13:49:22 +020090 Execute VGA Option ROMs in coreboot if found. This can be used
Peter Stugeb6fa47c2012-10-27 13:45:51 +020091 to enable PCI/AGP/PCI-E video cards when not using a SeaBIOS
92 payload.
93
94 When using a SeaBIOS payload it runs all option ROMs with much
95 more complete BIOS interrupt services available than coreboot,
96 which some option ROMs require in order to function correctly.
97
Arthur Heymans4ad1f7d2018-01-16 17:22:20 +010098config RUN_FSP_GOP
99 bool "Run a GOP driver"
Michael Niewöhnerd61a40e2019-10-26 10:37:42 +0200100 depends on HAVE_FSP_GOP && !MAINBOARD_NO_FSP_GOP
Arthur Heymans4ad1f7d2018-01-16 17:22:20 +0100101 select HAVE_LINEAR_FRAMEBUFFER
102 help
103 Some platforms (e.g. Intel Braswell and Skylake/Kaby Lake) support
104 to run a GOP blob. This option enables graphics initialization with
105 such a blob.
106
Nico Huberd4ebeaf2017-05-22 13:49:22 +0200107config NO_GFX_INIT
108 bool "None"
109 depends on !MAINBOARD_FORCE_NATIVE_VGA_INIT
110 help
111 Select this to not perform any graphics initialization in
112 coreboot. This is useful if the payload (e.g. SeaBIOS) can
113 initialize graphics or if pre-boot graphics are not required.
114
115endchoice
Myles Watsone6804952009-08-28 14:36:12 +0000116
Arthur Heymansb43ec472019-03-24 20:39:45 +0100117config ONBOARD_VGA_IS_PRIMARY
118 bool "Use onboard VGA as primary video device"
119 default n
120 depends on PCI
121 help
122 This option lets you select which VGA device will be used
123 to decode legacy VGA cycles. Not all chipsets implement this
124 however. If not selected, the last adapter found will be used,
125 else the onboard adapter is used.
126
Stefan Reinauer0a500842011-09-23 10:33:58 -0700127config S3_VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700128 bool "Re-run VGA Option ROMs on S3 resume"
Stefan Reinauer0a500842011-09-23 10:33:58 -0700129 default y
130 depends on VGA_ROM_RUN && HAVE_ACPI_RESUME
131 help
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200132 Execute VGA Option ROMs in coreboot when resuming from S3 suspend.
133
134 When using a SeaBIOS payload it runs all option ROMs with much
135 more complete BIOS interrupt services available than coreboot,
136 which some option ROMs require in order to function correctly.
137
138 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauer0a500842011-09-23 10:33:58 -0700139
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300140config ALWAYS_LOAD_OPROM
141 def_bool n
142 depends on VGA_ROM_RUN
143 help
Daniele Forsi53847a22014-07-22 18:00:56 +0200144 Always load option ROMs if any are found. The decision to run
145 the ROM is still determined at runtime, but the distinction
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300146 between loading and not running comes into play for CHROMEOS.
147
Daniele Forsi53847a22014-07-22 18:00:56 +0200148 An example where this is required is that VBT (Video BIOS Tables)
Kyösti Mälkki580e5642014-05-01 16:31:34 +0300149 are needed for the kernel's display driver to know how a piece of
150 hardware is configured to be used.
151
Aaron Durbin10510252018-01-30 10:04:02 -0700152config ALWAYS_RUN_OPROM
153 def_bool n
154 depends on VGA_ROM_RUN && ALWAYS_LOAD_OPROM
155 help
156 Always uncondtionally run the option regardless of other
157 policies.
158
Patrick Rudolph647e34d2016-02-11 08:36:50 +0100159config ON_DEVICE_ROM_LOAD
160 bool "Load Option ROMs on PCI devices"
Peter Stugebe0ede42012-10-27 14:17:04 +0200161 default n if PAYLOAD_SEABIOS
162 default y if !PAYLOAD_SEABIOS
Nico Huber49d99fc2017-05-20 17:56:02 +0200163 depends on VGA_ROM_RUN
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700164 help
Nico Huber49d99fc2017-05-20 17:56:02 +0200165 Load Option ROMs stored on PCI/PCIe/AGP VGA devices in coreboot.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700166
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200167 If disabled, only Option ROMs stored in CBFS will be executed by
168 coreboot. If you are concerned about security, you might want to
169 disable this option, but it might leave your system in a state of
170 degraded functionality.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700171
Peter Stugeb6fa47c2012-10-27 13:45:51 +0200172 When using a SeaBIOS payload it runs all option ROMs with much
173 more complete BIOS interrupt services available than coreboot,
174 which some option ROMs require in order to function correctly.
175
176 If unsure, say N when using SeaBIOS as payload, Y otherwise.
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700177
Patrick Georgi0588d192009-08-12 15:00:51 +0000178choice
Uwe Hermann168b11b2009-10-07 16:15:40 +0000179 prompt "Option ROM execution type"
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000180 default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
181 default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
Arthur Heymans57f70a12018-12-20 10:27:19 +0100182 depends on VGA_ROM_RUN
Uwe Hermann168b11b2009-10-07 16:15:40 +0000183
184config PCI_OPTION_ROM_RUN_REALMODE
Stefan Reinauerd650e992010-02-22 04:33:13 +0000185 prompt "Native mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000186 bool
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000187 depends on ARCH_X86
Myles Watson28412f52009-09-17 16:54:46 +0000188 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700189 If you select this option, PCI Option ROMs will be executed
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000190 natively on the CPU in real mode. No CPU emulation is involved,
191 so this is the fastest, but also the least secure option.
192 (only works on x86/x64 systems)
Patrick Georgi0588d192009-08-12 15:00:51 +0000193
Stefan Reinauerd650e992010-02-22 04:33:13 +0000194config PCI_OPTION_ROM_RUN_YABEL
Uwe Hermann548dbe72010-02-22 16:41:49 +0000195 prompt "Secure mode"
Uwe Hermann168b11b2009-10-07 16:15:40 +0000196 bool
197 help
Stefan Reinauer14be4d02010-01-31 21:46:12 +0000198 If you select this option, the x86emu CPU emulator will be used to
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700199 execute PCI Option ROMs.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000200
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700201 This option prevents Option ROMs from doing dirty tricks with the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000202 system (such as installing SMM modules or hypervisors), but it is
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700203 also significantly slower than the native Option ROM initialization
Uwe Hermann548dbe72010-02-22 16:41:49 +0000204 method.
205
Stefan Reinauerd650e992010-02-22 04:33:13 +0000206 This is the default choice for non-x86 systems.
Uwe Hermann548dbe72010-02-22 16:41:49 +0000207
Patrick Georgi0588d192009-08-12 15:00:51 +0000208endchoice
Uwe Hermann5ec2c2b2009-08-25 00:53:22 +0000209
Stefan Reinauer9a358532010-02-12 09:32:17 +0000210config YABEL_PCI_ACCESS_OTHER_DEVICES
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700211 prompt "Allow Option ROMs to access other devices"
Stefan Reinauer9a358532010-02-12 09:32:17 +0000212 bool
213 depends on PCI_OPTION_ROM_RUN_YABEL
214 help
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700215 Per default, YABEL only allows Option ROMs to access the PCI device
Stefan Reinauer9a358532010-02-12 09:32:17 +0000216 that they are associated with. However, this causes trouble for some
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700217 onboard graphics chips whose Option ROM needs to reconfigure the
Uwe Hermann548dbe72010-02-22 16:41:49 +0000218 north bridge.
Stefan Reinauer9a358532010-02-12 09:32:17 +0000219
Patrick Georgic4b2a1b2012-07-20 13:44:50 +0200220config YABEL_PCI_FAKE_WRITING_OTHER_DEVICES_CONFIG
221 prompt "Fake success on writing other device's config space"
222 bool
223 depends on YABEL_PCI_ACCESS_OTHER_DEVICES
224 help
225 By default, YABEL aborts when the Option ROM tries to write to other
226 devices' config spaces. With this option enabled, the write doesn't
227 follow through, but the Option ROM is allowed to go on.
228 This can create issues such as hanging Option ROMs (if it depends on
229 that other register changing to the written value), so test for
230 impact before using this option.
231
Stefan Reinauer9a358532010-02-12 09:32:17 +0000232config YABEL_VIRTMEM_LOCATION
233 prompt "Location of YABEL's virtual memory"
234 hex
Alexandru Gagniucfdbc1af2015-08-26 10:11:02 -0400235 depends on PCI_OPTION_ROM_RUN_YABEL
Stefan Reinauer9a358532010-02-12 09:32:17 +0000236 default 0x1000000
237 help
238 YABEL requires 1MB memory for its CPU emulation. This memory is
239 normally located at 16MB.
240
Stefan Reinauerd650e992010-02-22 04:33:13 +0000241config YABEL_DIRECTHW
Uwe Hermann548dbe72010-02-22 16:41:49 +0000242 prompt "Direct hardware access"
Stefan Reinauerd650e992010-02-22 04:33:13 +0000243 bool
Stefan Reinauer91f14232012-12-07 16:55:12 -0800244 depends on PCI_OPTION_ROM_RUN_YABEL && ARCH_X86
Myles Watsone6804952009-08-28 14:36:12 +0000245 help
Stefan Reinauerd650e992010-02-22 04:33:13 +0000246 YABEL consists of two parts: It uses x86emu for the CPU emulation and
Uwe Hermann548dbe72010-02-22 16:41:49 +0000247 additionally provides a PC system emulation that filters bad device
248 and memory access (such as PCI config space access to other devices
249 than the initialized one).
250
Stefan Reinauerd650e992010-02-22 04:33:13 +0000251 When choosing this option, x86emu will pass through all hardware
Uwe Hermann548dbe72010-02-22 16:41:49 +0000252 accesses to memory and I/O devices to the underlying memory and I/O
Stefan Reinauerafaa2572011-10-06 16:47:51 -0700253 addresses. While this option prevents Option ROMs from doing dirty
Stefan Reinauerd650e992010-02-22 04:33:13 +0000254 tricks with the CPU (such as installing SMM modules or hypervisors),
255 they can still access all devices in the system.
256 Enable this option for a good compromise between security and speed.
257
Stefan Reinauerabc0c852010-11-22 08:09:50 +0000258config MULTIPLE_VGA_ADAPTERS
Myles Watson28412f52009-09-17 16:54:46 +0000259 bool
260 default n
261
Nico Hubera2cf6862017-05-20 17:57:01 +0200262menu "Display"
263 depends on HAVE_VGA_TEXT_FRAMEBUFFER || HAVE_LINEAR_FRAMEBUFFER
264
265config FRAMEBUFFER_SET_VESA_MODE
266 prompt "Set framebuffer graphics resolution"
267 bool
Nico Huber7ebb0182019-07-22 18:17:40 +0200268 default y if CHROMEOS
Nico Hubera2cf6862017-05-20 17:57:01 +0200269 depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE
270 select HAVE_VBE_LINEAR_FRAMEBUFFER
271 help
272 Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
273
274if FRAMEBUFFER_SET_VESA_MODE
275
276choice
277 prompt "framebuffer graphics resolution"
Mike Banon749fe1e2019-02-23 21:43:05 +0300278 default FRAMEBUFFER_VESA_MODE_118
Nico Hubera2cf6862017-05-20 17:57:01 +0200279 help
280 This option sets the resolution used for the coreboot framebuffer (and
281 bootsplash screen).
282
283config FRAMEBUFFER_VESA_MODE_100
284 bool "640x400 256-color"
285
286config FRAMEBUFFER_VESA_MODE_101
287 bool "640x480 256-color"
288
289config FRAMEBUFFER_VESA_MODE_102
290 bool "800x600 16-color"
291
292config FRAMEBUFFER_VESA_MODE_103
293 bool "800x600 256-color"
294
295config FRAMEBUFFER_VESA_MODE_104
296 bool "1024x768 16-color"
297
298config FRAMEBUFFER_VESA_MODE_105
299 bool "1024x768 256-color"
300
301config FRAMEBUFFER_VESA_MODE_106
302 bool "1280x1024 16-color"
303
304config FRAMEBUFFER_VESA_MODE_107
305 bool "1280x1024 256-color"
306
307config FRAMEBUFFER_VESA_MODE_108
308 bool "80x60 text"
309
310config FRAMEBUFFER_VESA_MODE_109
311 bool "132x25 text"
312
313config FRAMEBUFFER_VESA_MODE_10A
314 bool "132x43 text"
315
316config FRAMEBUFFER_VESA_MODE_10B
317 bool "132x50 text"
318
319config FRAMEBUFFER_VESA_MODE_10C
320 bool "132x60 text"
321
322config FRAMEBUFFER_VESA_MODE_10D
323 bool "320x200 32k-color (1:5:5:5)"
324
325config FRAMEBUFFER_VESA_MODE_10E
326 bool "320x200 64k-color (5:6:5)"
327
328config FRAMEBUFFER_VESA_MODE_10F
329 bool "320x200 16.8M-color (8:8:8)"
330
331config FRAMEBUFFER_VESA_MODE_110
332 bool "640x480 32k-color (1:5:5:5)"
333
334config FRAMEBUFFER_VESA_MODE_111
335 bool "640x480 64k-color (5:6:5)"
336
337config FRAMEBUFFER_VESA_MODE_112
338 bool "640x480 16.8M-color (8:8:8)"
339
340config FRAMEBUFFER_VESA_MODE_113
341 bool "800x600 32k-color (1:5:5:5)"
342
343config FRAMEBUFFER_VESA_MODE_114
344 bool "800x600 64k-color (5:6:5)"
345
346config FRAMEBUFFER_VESA_MODE_115
347 bool "800x600 16.8M-color (8:8:8)"
348
349config FRAMEBUFFER_VESA_MODE_116
350 bool "1024x768 32k-color (1:5:5:5)"
351
352config FRAMEBUFFER_VESA_MODE_117
353 bool "1024x768 64k-color (5:6:5)"
354
355config FRAMEBUFFER_VESA_MODE_118
356 bool "1024x768 16.8M-color (8:8:8)"
357
358config FRAMEBUFFER_VESA_MODE_119
359 bool "1280x1024 32k-color (1:5:5:5)"
360
361config FRAMEBUFFER_VESA_MODE_11A
362 bool "1280x1024 64k-color (5:6:5)"
363
364config FRAMEBUFFER_VESA_MODE_11B
365 bool "1280x1024 16.8M-color (8:8:8)"
366
367config FRAMEBUFFER_VESA_MODE_USER
368 bool "Manually select VESA mode"
369
370endchoice
371
372# Map the config names to an integer (KB).
373config FRAMEBUFFER_VESA_MODE
374 prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
375 hex
376 default 0x100 if FRAMEBUFFER_VESA_MODE_100
377 default 0x101 if FRAMEBUFFER_VESA_MODE_101
378 default 0x102 if FRAMEBUFFER_VESA_MODE_102
379 default 0x103 if FRAMEBUFFER_VESA_MODE_103
380 default 0x104 if FRAMEBUFFER_VESA_MODE_104
381 default 0x105 if FRAMEBUFFER_VESA_MODE_105
382 default 0x106 if FRAMEBUFFER_VESA_MODE_106
383 default 0x107 if FRAMEBUFFER_VESA_MODE_107
384 default 0x108 if FRAMEBUFFER_VESA_MODE_108
385 default 0x109 if FRAMEBUFFER_VESA_MODE_109
386 default 0x10A if FRAMEBUFFER_VESA_MODE_10A
387 default 0x10B if FRAMEBUFFER_VESA_MODE_10B
388 default 0x10C if FRAMEBUFFER_VESA_MODE_10C
389 default 0x10D if FRAMEBUFFER_VESA_MODE_10D
390 default 0x10E if FRAMEBUFFER_VESA_MODE_10E
391 default 0x10F if FRAMEBUFFER_VESA_MODE_10F
392 default 0x110 if FRAMEBUFFER_VESA_MODE_110
393 default 0x111 if FRAMEBUFFER_VESA_MODE_111
394 default 0x112 if FRAMEBUFFER_VESA_MODE_112
395 default 0x113 if FRAMEBUFFER_VESA_MODE_113
396 default 0x114 if FRAMEBUFFER_VESA_MODE_114
397 default 0x115 if FRAMEBUFFER_VESA_MODE_115
398 default 0x116 if FRAMEBUFFER_VESA_MODE_116
399 default 0x117 if FRAMEBUFFER_VESA_MODE_117
400 default 0x118 if FRAMEBUFFER_VESA_MODE_118
401 default 0x119 if FRAMEBUFFER_VESA_MODE_119
402 default 0x11A if FRAMEBUFFER_VESA_MODE_11A
403 default 0x11B if FRAMEBUFFER_VESA_MODE_11B
Mike Banon749fe1e2019-02-23 21:43:05 +0300404 default 0x118 if FRAMEBUFFER_VESA_MODE_USER
Nico Hubera2cf6862017-05-20 17:57:01 +0200405endif # FRAMEBUFFER_SET_VESA_MODE
406
407choice
408 prompt "Framebuffer mode"
Nico Huber7ebb0182019-07-22 18:17:40 +0200409 default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && CHROMEOS
410 default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && CHROMEOS
Matt DeVillier672a4fe2020-02-21 14:11:29 -0600411 default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && PAYLOAD_TIANOCORE
412 default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && PAYLOAD_TIANOCORE
Nico Hubera2cf6862017-05-20 17:57:01 +0200413 default VGA_TEXT_FRAMEBUFFER
414
415config VGA_TEXT_FRAMEBUFFER
416 bool "Legacy VGA text mode"
417 depends on HAVE_VGA_TEXT_FRAMEBUFFER
418 help
419 If this option is enabled, coreboot will initialize graphics in
420 legacy VGA text mode or, if a VGA BIOS is used and a VESA mode set,
421 switch to text mode before handing control to a payload.
422
423config VBE_LINEAR_FRAMEBUFFER
424 bool "VESA framebuffer"
425 depends on HAVE_VBE_LINEAR_FRAMEBUFFER
426 help
427 This option keeps the framebuffer mode set after coreboot finishes
428 execution. If this option is enabled, coreboot will pass a
429 framebuffer entry in its coreboot table and the payload will need a
430 compatible driver.
431
432config GENERIC_LINEAR_FRAMEBUFFER
433 bool "Linear \"high-resolution\" framebuffer"
434 depends on HAVE_LINEAR_FRAMEBUFFER
435 help
436 This option enables a high-resolution, linear framebuffer. If this
437 option is enabled, coreboot will pass a framebuffer entry in its
438 coreboot table and the payload will need a compatible driver.
439
440endchoice
441
442# Workaround to have LINEAR_FRAMEBUFFER set in both cases
443# VBE_LINEAR_FRAMEBUFFER and GENERIC_LINEAR_FRAMEBUFFER.
444# `kconfig_lint` doesn't let us use the same name with
445# different texts in the choice above.
446config LINEAR_FRAMEBUFFER
447 def_bool y
448 depends on VBE_LINEAR_FRAMEBUFFER || GENERIC_LINEAR_FRAMEBUFFER
449
Johanna Schanderc544a852019-07-28 09:28:33 +0200450config BOOTSPLASH
451 prompt "Show graphical bootsplash"
452 bool
453 depends on LINEAR_FRAMEBUFFER
454 help
455 This option shows a graphical bootsplash screen. The graphics are
456 loaded from the CBFS file bootsplash.jpg.
457
458 You can either specify the location and file name of the
459 image in the 'General' section or add it manually to CBFS, using,
460 for example, cbfstool.
461
Nico Huber2bc892c2019-01-01 22:28:47 +0100462config LINEAR_FRAMEBUFFER_MAX_WIDTH
463 int "Maximum width in pixels"
464 depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
465 default 2560
466 help
467 Set the maximum width of the framebuffer. This may help with
468 default fonts too tiny for high-resolution displays.
469
470config LINEAR_FRAMEBUFFER_MAX_HEIGHT
471 int "Maximum height in pixels"
472 depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
473 default 1600
474 help
475 Set the maximum height of the framebuffer. This may help with
476 default fonts too tiny for high-resolution displays.
477
Nico Hubera2cf6862017-05-20 17:57:01 +0200478endmenu # "Display"
479
Ronald G. Minnich78a16672012-11-29 16:28:21 -0800480config PCI
481 bool
482 default n
483
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200484if PCI
485
486config NO_MMCONF_SUPPORT
487 bool
Kyösti Mälkki3d15e102016-11-29 16:46:56 +0200488 default n
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200489
490config MMCONF_SUPPORT
491 bool
Kyösti Mälkki3d15e102016-11-29 16:46:56 +0200492 default !NO_MMCONF_SUPPORT
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200493
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000494config HYPERTRANSPORT_PLUGIN_SUPPORT
495 bool
Myles Watson74fb8f22009-09-24 15:09:11 +0000496 default n
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000497
Kyösti Mälkkibc29bd02019-11-20 22:26:54 +0200498config HT_CHAIN_UNITID_BASE
499 int
500 default 0
501
502config HT_CHAIN_END_UNITID_BASE
503 int
504 default 0
505
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000506config PCIX_PLUGIN_SUPPORT
507 bool
Myles Watsoned035562009-09-22 21:29:32 +0000508 default y
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000509
Ronald G. Minnich876d7e92009-08-28 14:23:38 +0000510config CARDBUS_PLUGIN_SUPPORT
511 bool
Myles Watsoned035562009-09-22 21:29:32 +0000512 default y
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700513
Andrew Wub7bb70d2013-08-12 20:07:47 +0800514config AZALIA_PLUGIN_SUPPORT
515 bool
Andrew Wub7bb70d2013-08-12 20:07:47 +0800516 default n
517
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200518config PCIEXP_PLUGIN_SUPPORT
519 bool
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200520 default y
521
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200522endif # PCI
523
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200524if PCIEXP_PLUGIN_SUPPORT
525
Duncan Laurie90dcdd42011-10-25 14:15:11 -0700526config PCIEXP_COMMON_CLOCK
527 prompt "Enable PCIe Common Clock"
528 bool
529 default n
530 help
531 Detect and enable Common Clock on PCIe links.
532
533config PCIEXP_ASPM
534 prompt "Enable PCIe ASPM"
535 bool
536 default n
537 help
Jonathan Neuschäfer8c50e682016-12-27 16:31:28 +0100538 Detect and enable ASPM (Active State Power Management) on PCIe links.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800539
Kane Chen18cb1342014-10-01 11:13:54 +0800540config PCIEXP_CLK_PM
541 prompt "Enable PCIe Clock Power Management"
542 bool
Kane Chen18cb1342014-10-01 11:13:54 +0800543 default n
544 help
545 Detect and enable Clock Power Management on PCIe.
546
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200547config PCIEXP_L1_SUB_STATE
548 prompt "Enable PCIe ASPM L1 SubState"
549 bool
Kyösti Mälkki6f66f412016-12-01 22:08:18 +0200550 depends on (MMCONF_SUPPORT || PCI_IO_CFG_EXT)
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200551 default n
552 help
553 Detect and enable ASPM on PCIe links.
554
Jeremy Sollercf2ac542019-10-09 21:40:36 -0600555config PCIEXP_HOTPLUG
556 prompt "Enable PCIe Hotplug Support"
557 bool
558 default n
559 help
560 Allocate resources for PCIe hotplug bridges
561
562if PCIEXP_HOTPLUG
563
564config PCIEXP_HOTPLUG_BUSES
565 int "PCI Express Hotplug Buses"
566 default 32
567 help
568 This is the number of buses allocated for hotplug PCI express
569 bridges, for use by hotplugged child devices. The default is 32
570 buses.
571
572config PCIEXP_HOTPLUG_MEM
573 hex "PCI Express Hotplug Memory"
574 default 0x800000
575 help
576 This is the amount of memory space, in bytes, to allocate to
577 hotplug PCI express bridges, for use by hotplugged child devices.
578 This size should be page-aligned. The default is 8 MiB.
579
580config PCIEXP_HOTPLUG_PREFETCH_MEM
581 hex "PCI Express Hotplug Prefetch Memory"
582 default 0x10000000
583 help
584 This is the amount of pre-fetchable memory space, in bytes, to
585 allocate to hot-plug PCI express bridges, for use by hotplugged
586 child devices. This size should be page-aligned. The default is
587 256 MiB.
588
589config PCIEXP_HOTPLUG_IO
590 hex "PCI Express Hotplug I/O Space"
591 default 0x2000
592 help
593 This is the amount of I/O space to allocate to hot-plug PCI
594 express bridges, for use by hotplugged child devices. The default
595 is 8 KiB.
596
597endif # PCIEXP_HOTPLUG
598
Kyösti Mälkki91bfa8e2016-11-20 20:39:56 +0200599endif # PCIEXP_PLUGIN_SUPPORT
600
Kyösti Mälkki4c686f22014-02-14 12:45:09 +0200601config EARLY_PCI_BRIDGE
602 bool "Early PCI bridge"
603 depends on PCI
604 default n
605 help
606 While coreboot is executing code from ROM, the coreboot resource
607 allocator has not been running yet. Hence PCI devices living behind
608 a bridge are not yet visible to the system.
609
610 This option enables static configuration for a single pre-defined
611 PCI bridge function on bus 0.
612
613if EARLY_PCI_BRIDGE
614
615config EARLY_PCI_BRIDGE_DEVICE
616 hex "bridge device"
617 default 0x0
618
619config EARLY_PCI_BRIDGE_FUNCTION
620 hex "bridge function"
621 default 0x0
622
623config EARLY_PCI_MMIO_BASE
624 hex "MMIO window base"
625 default 0x0
626
627endif # EARLY_PCI_BRIDGE
628
Stefan Reinauer58470e32014-10-17 13:08:36 +0200629config SUBSYSTEM_VENDOR_ID
630 hex "Override PCI Subsystem Vendor ID"
631 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600632 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200633 help
634 This config option will override the devicetree settings for
635 PCI Subsystem Vendor ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800636
Stefan Reinauer58470e32014-10-17 13:08:36 +0200637config SUBSYSTEM_DEVICE_ID
638 hex "Override PCI Subsystem Device ID"
639 depends on PCI
Martin Roth3b878122016-09-30 14:43:01 -0600640 default 0x0000
Stefan Reinauer58470e32014-10-17 13:08:36 +0200641 help
642 This config option will override the devicetree settings for
643 PCI Subsystem Device ID.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800644
645config VGA_BIOS
646 bool "Add a VGA BIOS image"
Vladimir Serbinenkod51a0892016-03-04 09:20:20 +0100647 depends on ARCH_X86
Stefan Reinauer95a63962012-11-13 17:00:01 -0800648 help
649 Select this option if you have a VGA BIOS image that you would
650 like to add to your ROM.
651
652 You will be able to specify the location and file name of the
653 image later.
654
655config VGA_BIOS_FILE
656 string "VGA BIOS path and filename"
657 depends on VGA_BIOS
658 default "vgabios.bin"
659 help
660 The path and filename of the file to use as VGA BIOS.
661
662config VGA_BIOS_ID
663 string "VGA device PCI IDs"
664 depends on VGA_BIOS
665 default "1106,3230"
666 help
Martin Rotha616a4b2020-01-21 09:28:40 -0700667 The comma-separated PCI vendor and device ID with optional revision if that
668 feature is enabled that would associate your vBIOS to your video card.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800669
Martin Rotha616a4b2020-01-21 09:28:40 -0700670 Example: 1106,3230 or 1106,3230,a3
Stefan Reinauer95a63962012-11-13 17:00:01 -0800671
672 In the above example 1106 is the PCI vendor ID (in hex, but without
673 the "0x" prefix) and 3230 specifies the PCI device ID of the
Martin Rotha616a4b2020-01-21 09:28:40 -0700674 video card (also in hex, without "0x" prefix). a3 specifies the revision.
Stefan Reinauer95a63962012-11-13 17:00:01 -0800675
Daniele Forsif2fb7d92014-07-17 11:59:41 +0200676 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
677
Martin Roth4cc2cac2019-12-06 19:11:08 -0700678config VGA_BIOS_SECOND
679 bool "Add a 2nd video BIOS image"
680 depends on ARCH_X86 && VGA_BIOS
681 help
682 Select this option if you have a 2nd video BIOS image that you would
683 like to add to your ROM.
684
685config VGA_BIOS_SECOND_FILE
686 string "2nd video BIOS path and filename"
687 depends on VGA_BIOS_SECOND
688 default "vbios2.bin"
689 help
690 The path and filename of the file to use as video BIOS.
691
692config VGA_BIOS_SECOND_ID
693 string "Graphics device PCI IDs"
694 depends on VGA_BIOS_SECOND
695 help
Martin Rotha616a4b2020-01-21 09:28:40 -0700696 The comma-separated PCI vendor and device ID with optional revision if that
697 feature is enabled that would associate your vBIOS to your video card.
Martin Roth4cc2cac2019-12-06 19:11:08 -0700698
Martin Rotha616a4b2020-01-21 09:28:40 -0700699 Example: 1106,3230 or 1106,3230,a3
Martin Roth4cc2cac2019-12-06 19:11:08 -0700700
701 In the above example 1106 is the PCI vendor ID (in hex, but without
702 the "0x" prefix) and 3230 specifies the PCI device ID of the
Martin Rotha616a4b2020-01-21 09:28:40 -0700703 video card (also in hex, without "0x" prefix). a3 specifies the revision.
Martin Roth4cc2cac2019-12-06 19:11:08 -0700704
705 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
706
Martin Rotha616a4b2020-01-21 09:28:40 -0700707config CHECK_REV_IN_OPROM_NAME
708 def_bool n
709 help
710 Select this in the platform BIOS or chipset if the option rom has a revision
711 that needs to be checked when searching CBFS.
712
Mike Banon0f8547e2019-02-17 19:51:53 +0300713config VGA_BIOS_DGPU
714 bool "Add a discrete VGA BIOS image"
715 depends on VGA_BIOS
716 help
717 Select this option if you have a VGA BIOS image for discrete GPU
718 that you would like to add to your ROM.
719
720 You will be able to specify the location and file name of the
721 image later.
722
723config VGA_BIOS_DGPU_FILE
724 string "Discrete VGA BIOS path and filename"
725 depends on VGA_BIOS_DGPU
726 default "vgabios_dgpu.bin"
727 help
728 The path and filename of the file to use as VGA BIOS for discrete GPU.
729
730config VGA_BIOS_DGPU_ID
731 string "Discrete VGA device PCI IDs"
732 depends on VGA_BIOS_DGPU
733 default "1002,6663"
734 help
735 The comma-separated PCI vendor and device ID that would associate
736 your VGA BIOS to your discrete video card.
737
738 Examples:
739 1002,6663 for HD 8570M
740 1002,6665 for R5 M230
741
742 In the above examples 1002 is the PCI vendor ID (in hex, but without
743 the "0x" prefix) and 6663 / 6665 specifies the PCI device ID of the
744 discrete video card (also in hex, without "0x" prefix).
745
746 Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
747
Nico Huber29cc3312018-06-06 17:40:02 +0200748config INTEL_GMA_HAVE_VBT
Arthur Heymans7225a362018-05-28 21:09:21 +0200749 bool
750 help
751 Select this in the mainboard Kconfig to indicate the board has
752 a data.vbt file.
753
Nico Huber29cc3312018-06-06 17:40:02 +0200754config INTEL_GMA_ADD_VBT
Patrick Rudolph4c170982017-07-17 19:53:56 +0200755 depends on SOC_INTEL_COMMON || CPU_INTEL_COMMON
Elyes HAOUAS6dc9d032020-02-16 16:22:52 +0100756 bool "Add a Video BIOS Table (VBT) binary to CBFS"
Nico Huber29cc3312018-06-06 17:40:02 +0200757 default y if INTEL_GMA_HAVE_VBT
Patrick Rudolph4c170982017-07-17 19:53:56 +0200758 help
759 Add a VBT data file to CBFS. The VBT describes the integrated
760 GPU and connections, and is needed by the GOP driver integrated into
761 FSP and the OS driver in order to initialize the display.
762
763config INTEL_GMA_VBT_FILE
764 string "VBT binary path and filename"
Nico Huber29cc3312018-06-06 17:40:02 +0200765 depends on INTEL_GMA_ADD_VBT
Arthur Heymans7225a362018-05-28 21:09:21 +0200766 default "src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/data.vbt" \
Nico Huber29cc3312018-06-06 17:40:02 +0200767 if INTEL_GMA_HAVE_VBT && VARIANT_DIR != ""
768 default "src/mainboard/$(MAINBOARDDIR)/data.vbt" if INTEL_GMA_HAVE_VBT
Arthur Heymans4ad1f7d2018-01-16 17:22:20 +0100769 default "3rdparty/blobs/mainboard/$(MAINBOARDDIR)/vbt.bin"
Patrick Rudolph4c170982017-07-17 19:53:56 +0200770 help
771 The path and filename of the VBT binary.
772
Julius Werner37d7ac82014-05-05 18:03:46 -0700773config SOFTWARE_I2C
774 bool "Enable I2C controller emulation in software"
775 default n
776 help
777 This config option will enable code to override the i2c_transfer
778 routine with a (simple) software emulation of the protocol. This may
779 be useful for debugging or on platforms where a driver for the real
780 I2C controller is not (yet) available. The platform code needs to
781 provide bindings to manually toggle I2C lines.
Kyösti Mälkkia91e1e62014-12-31 10:36:08 +0200782
Stefan Reinauer95a63962012-11-13 17:00:01 -0800783endmenu