src/device: Add option to look at revision in option roms
[coreboot.git] / src / device / Kconfig
blobde33b047734d52f82d3cc61dadebc9785e73cfd2
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; version 2 of the License.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 ## GNU General Public License for more details.
14 menu "Devices"
16 config HAVE_VGA_TEXT_FRAMEBUFFER
17         bool
18         depends on !NO_GFX_INIT
19         help
20           Selected by graphics drivers that support legacy VGA text mode.
22 config HAVE_VBE_LINEAR_FRAMEBUFFER
23         bool
24         depends on !NO_GFX_INIT
25         help
26           Selected by graphics drivers that can set up a VBE linear-framebuffer
27           mode.
29 config HAVE_LINEAR_FRAMEBUFFER
30         bool
31         depends on !NO_GFX_INIT
32         help
33           Selected by graphics drivers that can set up a generic linear
34           framebuffer.
36 config HAVE_FSP_GOP
37         bool
38         help
39           Selected by drivers that support to run a blob that implements
40           the Graphics Output Protocol (GOP).
42 config MAINBOARD_NO_FSP_GOP
43         bool
44         help
45           Selected by mainboards that do not have any graphics ports connected to the SoC.
47 config MAINBOARD_HAS_NATIVE_VGA_INIT
48         def_bool n
49         help
50           Selected by mainboards / drivers that provide native graphics
51           init within coreboot.
53 config MAINBOARD_FORCE_NATIVE_VGA_INIT
54         def_bool n
55         depends on MAINBOARD_HAS_NATIVE_VGA_INIT || MAINBOARD_HAS_LIBGFXINIT
56         help
57           Selected by mainboards / chipsets whose graphics driver can't or
58           shouldn't be disabled.
60 config MAINBOARD_HAS_LIBGFXINIT
61         def_bool n
62         help
63           Selected by mainboards that implement support for `libgfxinit`.
64           Usually this requires a list of ports to be probed for displays.
66 choice
67         prompt "Graphics initialization"
68         default NO_GFX_INIT if VGA_BIOS && PAYLOAD_SEABIOS
69         default VGA_ROM_RUN if VGA_BIOS
71 config MAINBOARD_DO_NATIVE_VGA_INIT
72         bool "Use native graphics init"
73         depends on MAINBOARD_HAS_NATIVE_VGA_INIT
74         help
75           Some mainboards, such as the Google Link, allow initializing the
76           display without the need of a binary only VGA OPROM. Enabling this
77           option may be faster, but also lacks flexibility in setting modes.
79 config MAINBOARD_USE_LIBGFXINIT
80         bool "Use libgfxinit"
81         depends on MAINBOARD_HAS_LIBGFXINIT
82         select HAVE_VGA_TEXT_FRAMEBUFFER
83         select HAVE_LINEAR_FRAMEBUFFER
84         select VGA if VGA_TEXT_FRAMEBUFFER
85         help
86           Use the SPARK library `libgfxinit` for the native graphics
87           initialization. This requires an Ada toolchain.
89 # TODO: Explain differences (if any) for onboard cards.
90 config VGA_ROM_RUN
91         bool "Run VGA Option ROMs"
92         depends on PCI && (ARCH_X86 || ARCH_PPC64) && !MAINBOARD_FORCE_NATIVE_VGA_INIT
93         select HAVE_VGA_TEXT_FRAMEBUFFER
94         help
95           Execute VGA Option ROMs in coreboot if found. This can be used
96           to enable PCI/AGP/PCI-E video cards when not using a SeaBIOS
97           payload.
99           When using a SeaBIOS payload it runs all option ROMs with much
100           more complete BIOS interrupt services available than coreboot,
101           which some option ROMs require in order to function correctly.
103 config RUN_FSP_GOP
104         bool "Run a GOP driver"
105         depends on HAVE_FSP_GOP && !MAINBOARD_NO_FSP_GOP
106         select HAVE_LINEAR_FRAMEBUFFER
107         help
108           Some platforms (e.g. Intel Braswell and Skylake/Kaby Lake) support
109           to run a GOP blob. This option enables graphics initialization with
110           such a blob.
112 config NO_GFX_INIT
113         bool "None"
114         depends on !MAINBOARD_FORCE_NATIVE_VGA_INIT
115         help
116           Select this to not perform any graphics initialization in
117           coreboot. This is useful if the payload (e.g. SeaBIOS) can
118           initialize graphics or if pre-boot graphics are not required.
120 endchoice
122 config ONBOARD_VGA_IS_PRIMARY
123         bool "Use onboard VGA as primary video device"
124         default n
125         depends on PCI
126         help
127           This option lets you select which VGA device will be used
128           to decode legacy VGA cycles. Not all chipsets implement this
129           however. If not selected, the last adapter found will be used,
130           else the onboard adapter is used.
132 config S3_VGA_ROM_RUN
133         bool "Re-run VGA Option ROMs on S3 resume"
134         default y
135         depends on VGA_ROM_RUN && HAVE_ACPI_RESUME
136         help
137           Execute VGA Option ROMs in coreboot when resuming from S3 suspend.
139           When using a SeaBIOS payload it runs all option ROMs with much
140           more complete BIOS interrupt services available than coreboot,
141           which some option ROMs require in order to function correctly.
143           If unsure, say N when using SeaBIOS as payload, Y otherwise.
145 config ALWAYS_LOAD_OPROM
146         def_bool n
147         depends on VGA_ROM_RUN
148         help
149           Always load option ROMs if any are found. The decision to run
150           the ROM is still determined at runtime, but the distinction
151           between loading and not running comes into play for CHROMEOS.
153           An example where this is required is that VBT (Video BIOS Tables)
154           are needed for the kernel's display driver to know how a piece of
155           hardware is configured to be used.
157 config ALWAYS_RUN_OPROM
158         def_bool n
159         depends on VGA_ROM_RUN && ALWAYS_LOAD_OPROM
160         help
161           Always uncondtionally run the option regardless of other
162           policies.
164 config ON_DEVICE_ROM_LOAD
165         bool "Load Option ROMs on PCI devices"
166         default n if PAYLOAD_SEABIOS
167         default y if !PAYLOAD_SEABIOS
168         depends on VGA_ROM_RUN
169         help
170           Load Option ROMs stored on PCI/PCIe/AGP VGA devices in coreboot.
172           If disabled, only Option ROMs stored in CBFS will be executed by
173           coreboot. If you are concerned about security, you might want to
174           disable this option, but it might leave your system in a state of
175           degraded functionality.
177           When using a SeaBIOS payload it runs all option ROMs with much
178           more complete BIOS interrupt services available than coreboot,
179           which some option ROMs require in order to function correctly.
181           If unsure, say N when using SeaBIOS as payload, Y otherwise.
183 choice
184         prompt "Option ROM execution type"
185         default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
186         default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
187         depends on VGA_ROM_RUN
189 config PCI_OPTION_ROM_RUN_REALMODE
190         prompt "Native mode"
191         bool
192         depends on ARCH_X86
193         help
194           If you select this option, PCI Option ROMs will be executed
195           natively on the CPU in real mode. No CPU emulation is involved,
196           so this is the fastest, but also the least secure option.
197           (only works on x86/x64 systems)
199 config PCI_OPTION_ROM_RUN_YABEL
200         prompt "Secure mode"
201         bool
202         help
203           If you select this option, the x86emu CPU emulator will be used to
204           execute PCI Option ROMs.
206           This option prevents Option ROMs from doing dirty tricks with the
207           system (such as installing SMM modules or hypervisors), but it is
208           also significantly slower than the native Option ROM initialization
209           method.
211           This is the default choice for non-x86 systems.
213 endchoice
215 config YABEL_PCI_ACCESS_OTHER_DEVICES
216         prompt "Allow Option ROMs to access other devices"
217         bool
218         depends on PCI_OPTION_ROM_RUN_YABEL
219         help
220           Per default, YABEL only allows Option ROMs to access the PCI device
221           that they are associated with. However, this causes trouble for some
222           onboard graphics chips whose Option ROM needs to reconfigure the
223           north bridge.
225 config YABEL_PCI_FAKE_WRITING_OTHER_DEVICES_CONFIG
226         prompt "Fake success on writing other device's config space"
227         bool
228         depends on YABEL_PCI_ACCESS_OTHER_DEVICES
229         help
230           By default, YABEL aborts when the Option ROM tries to write to other
231           devices' config spaces. With this option enabled, the write doesn't
232           follow through, but the Option ROM is allowed to go on.
233           This can create issues such as hanging Option ROMs (if it depends on
234           that other register changing to the written value), so test for
235           impact before using this option.
237 config YABEL_VIRTMEM_LOCATION
238         prompt "Location of YABEL's virtual memory"
239         hex
240         depends on PCI_OPTION_ROM_RUN_YABEL
241         default 0x1000000
242         help
243           YABEL requires 1MB memory for its CPU emulation. This memory is
244           normally located at 16MB.
246 config YABEL_DIRECTHW
247         prompt "Direct hardware access"
248         bool
249         depends on PCI_OPTION_ROM_RUN_YABEL && ARCH_X86
250         help
251           YABEL consists of two parts: It uses x86emu for the CPU emulation and
252           additionally provides a PC system emulation that filters bad device
253           and memory access (such as PCI config space access to other devices
254           than the initialized one).
256           When choosing this option, x86emu will pass through all hardware
257           accesses to memory and I/O devices to the underlying memory and I/O
258           addresses. While this option prevents Option ROMs from doing dirty
259           tricks with the CPU (such as installing SMM modules or hypervisors),
260           they can still access all devices in the system.
261           Enable this option for a good compromise between security and speed.
263 config MULTIPLE_VGA_ADAPTERS
264         bool
265         default n
267 menu "Display"
268         depends on HAVE_VGA_TEXT_FRAMEBUFFER || HAVE_LINEAR_FRAMEBUFFER
270 config FRAMEBUFFER_SET_VESA_MODE
271         prompt "Set framebuffer graphics resolution"
272         bool
273         default y if CHROMEOS
274         depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE
275         select HAVE_VBE_LINEAR_FRAMEBUFFER
276         help
277           Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console)
279 if FRAMEBUFFER_SET_VESA_MODE
281 choice
282         prompt "framebuffer graphics resolution"
283         default FRAMEBUFFER_VESA_MODE_118
284         help
285           This option sets the resolution used for the coreboot framebuffer (and
286           bootsplash screen).
288 config FRAMEBUFFER_VESA_MODE_100
289         bool "640x400 256-color"
291 config FRAMEBUFFER_VESA_MODE_101
292         bool "640x480 256-color"
294 config FRAMEBUFFER_VESA_MODE_102
295         bool "800x600 16-color"
297 config FRAMEBUFFER_VESA_MODE_103
298         bool "800x600 256-color"
300 config FRAMEBUFFER_VESA_MODE_104
301         bool "1024x768 16-color"
303 config FRAMEBUFFER_VESA_MODE_105
304         bool "1024x768 256-color"
306 config FRAMEBUFFER_VESA_MODE_106
307         bool "1280x1024 16-color"
309 config FRAMEBUFFER_VESA_MODE_107
310         bool "1280x1024 256-color"
312 config FRAMEBUFFER_VESA_MODE_108
313         bool "80x60 text"
315 config FRAMEBUFFER_VESA_MODE_109
316         bool "132x25 text"
318 config FRAMEBUFFER_VESA_MODE_10A
319         bool "132x43 text"
321 config FRAMEBUFFER_VESA_MODE_10B
322         bool "132x50 text"
324 config FRAMEBUFFER_VESA_MODE_10C
325         bool "132x60 text"
327 config FRAMEBUFFER_VESA_MODE_10D
328         bool "320x200 32k-color (1:5:5:5)"
330 config FRAMEBUFFER_VESA_MODE_10E
331         bool "320x200 64k-color (5:6:5)"
333 config FRAMEBUFFER_VESA_MODE_10F
334         bool "320x200 16.8M-color (8:8:8)"
336 config FRAMEBUFFER_VESA_MODE_110
337         bool "640x480 32k-color (1:5:5:5)"
339 config FRAMEBUFFER_VESA_MODE_111
340         bool "640x480 64k-color (5:6:5)"
342 config FRAMEBUFFER_VESA_MODE_112
343         bool "640x480 16.8M-color (8:8:8)"
345 config FRAMEBUFFER_VESA_MODE_113
346         bool "800x600 32k-color (1:5:5:5)"
348 config FRAMEBUFFER_VESA_MODE_114
349         bool "800x600 64k-color (5:6:5)"
351 config FRAMEBUFFER_VESA_MODE_115
352         bool "800x600 16.8M-color (8:8:8)"
354 config FRAMEBUFFER_VESA_MODE_116
355         bool "1024x768 32k-color (1:5:5:5)"
357 config FRAMEBUFFER_VESA_MODE_117
358         bool "1024x768 64k-color (5:6:5)"
360 config FRAMEBUFFER_VESA_MODE_118
361         bool "1024x768 16.8M-color (8:8:8)"
363 config FRAMEBUFFER_VESA_MODE_119
364         bool "1280x1024 32k-color (1:5:5:5)"
366 config FRAMEBUFFER_VESA_MODE_11A
367         bool "1280x1024 64k-color (5:6:5)"
369 config FRAMEBUFFER_VESA_MODE_11B
370         bool "1280x1024 16.8M-color (8:8:8)"
372 config FRAMEBUFFER_VESA_MODE_USER
373         bool "Manually select VESA mode"
375 endchoice
377 # Map the config names to an integer (KB).
378 config FRAMEBUFFER_VESA_MODE
379         prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER
380         hex
381         default 0x100 if FRAMEBUFFER_VESA_MODE_100
382         default 0x101 if FRAMEBUFFER_VESA_MODE_101
383         default 0x102 if FRAMEBUFFER_VESA_MODE_102
384         default 0x103 if FRAMEBUFFER_VESA_MODE_103
385         default 0x104 if FRAMEBUFFER_VESA_MODE_104
386         default 0x105 if FRAMEBUFFER_VESA_MODE_105
387         default 0x106 if FRAMEBUFFER_VESA_MODE_106
388         default 0x107 if FRAMEBUFFER_VESA_MODE_107
389         default 0x108 if FRAMEBUFFER_VESA_MODE_108
390         default 0x109 if FRAMEBUFFER_VESA_MODE_109
391         default 0x10A if FRAMEBUFFER_VESA_MODE_10A
392         default 0x10B if FRAMEBUFFER_VESA_MODE_10B
393         default 0x10C if FRAMEBUFFER_VESA_MODE_10C
394         default 0x10D if FRAMEBUFFER_VESA_MODE_10D
395         default 0x10E if FRAMEBUFFER_VESA_MODE_10E
396         default 0x10F if FRAMEBUFFER_VESA_MODE_10F
397         default 0x110 if FRAMEBUFFER_VESA_MODE_110
398         default 0x111 if FRAMEBUFFER_VESA_MODE_111
399         default 0x112 if FRAMEBUFFER_VESA_MODE_112
400         default 0x113 if FRAMEBUFFER_VESA_MODE_113
401         default 0x114 if FRAMEBUFFER_VESA_MODE_114
402         default 0x115 if FRAMEBUFFER_VESA_MODE_115
403         default 0x116 if FRAMEBUFFER_VESA_MODE_116
404         default 0x117 if FRAMEBUFFER_VESA_MODE_117
405         default 0x118 if FRAMEBUFFER_VESA_MODE_118
406         default 0x119 if FRAMEBUFFER_VESA_MODE_119
407         default 0x11A if FRAMEBUFFER_VESA_MODE_11A
408         default 0x11B if FRAMEBUFFER_VESA_MODE_11B
409         default 0x118 if FRAMEBUFFER_VESA_MODE_USER
410 endif # FRAMEBUFFER_SET_VESA_MODE
412 choice
413         prompt "Framebuffer mode"
414         default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && CHROMEOS
415         default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && CHROMEOS
416         default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && PAYLOAD_TIANOCORE
417         default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && PAYLOAD_TIANOCORE
418         default VGA_TEXT_FRAMEBUFFER
420 config VGA_TEXT_FRAMEBUFFER
421         bool "Legacy VGA text mode"
422         depends on HAVE_VGA_TEXT_FRAMEBUFFER
423         help
424           If this option is enabled, coreboot will initialize graphics in
425           legacy VGA text mode or, if a VGA BIOS is used and a VESA mode set,
426           switch to text mode before handing control to a payload.
428 config VBE_LINEAR_FRAMEBUFFER
429         bool "VESA framebuffer"
430         depends on HAVE_VBE_LINEAR_FRAMEBUFFER
431         help
432           This option keeps the framebuffer mode set after coreboot finishes
433           execution. If this option is enabled, coreboot will pass a
434           framebuffer entry in its coreboot table and the payload will need a
435           compatible driver.
437 config GENERIC_LINEAR_FRAMEBUFFER
438         bool "Linear \"high-resolution\" framebuffer"
439         depends on HAVE_LINEAR_FRAMEBUFFER
440         help
441           This option enables a high-resolution, linear framebuffer. If this
442           option is enabled, coreboot will pass a framebuffer entry in its
443           coreboot table and the payload will need a compatible driver.
445 endchoice
447 # Workaround to have LINEAR_FRAMEBUFFER set in both cases
448 # VBE_LINEAR_FRAMEBUFFER and GENERIC_LINEAR_FRAMEBUFFER.
449 # `kconfig_lint` doesn't let us use the same name with
450 # different texts in the choice above.
451 config LINEAR_FRAMEBUFFER
452         def_bool y
453         depends on VBE_LINEAR_FRAMEBUFFER || GENERIC_LINEAR_FRAMEBUFFER
455 config BOOTSPLASH
456         prompt "Show graphical bootsplash"
457         bool
458         depends on LINEAR_FRAMEBUFFER
459         help
460           This option shows a graphical bootsplash screen. The graphics are
461           loaded from the CBFS file bootsplash.jpg.
463           You can either specify the location and file name of the
464           image in the 'General' section or add it manually to CBFS, using,
465           for example, cbfstool.
467 config LINEAR_FRAMEBUFFER_MAX_WIDTH
468         int "Maximum width in pixels"
469         depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
470         default 2560
471         help
472           Set the maximum width of the framebuffer. This may help with
473           default fonts too tiny for high-resolution displays.
475 config LINEAR_FRAMEBUFFER_MAX_HEIGHT
476         int "Maximum height in pixels"
477         depends on LINEAR_FRAMEBUFFER && MAINBOARD_USE_LIBGFXINIT
478         default 1600
479         help
480           Set the maximum height of the framebuffer. This may help with
481           default fonts too tiny for high-resolution displays.
483 endmenu # "Display"
485 config PCI
486         bool
487         default n
489 if PCI
491 config NO_MMCONF_SUPPORT
492         bool
493         default n
495 config MMCONF_SUPPORT
496         bool
497         default !NO_MMCONF_SUPPORT
499 config HYPERTRANSPORT_PLUGIN_SUPPORT
500         bool
501         default n
503 config HT_CHAIN_UNITID_BASE
504         int
505         default 0
507 config HT_CHAIN_END_UNITID_BASE
508         int
509         default 0
511 config PCIX_PLUGIN_SUPPORT
512         bool
513         default y
515 config CARDBUS_PLUGIN_SUPPORT
516         bool
517         default y
519 config AZALIA_PLUGIN_SUPPORT
520         bool
521         default n
523 config PCIEXP_PLUGIN_SUPPORT
524         bool
525         default y
527 endif # PCI
529 if PCIEXP_PLUGIN_SUPPORT
531 config PCIEXP_COMMON_CLOCK
532         prompt "Enable PCIe Common Clock"
533         bool
534         default n
535         help
536           Detect and enable Common Clock on PCIe links.
538 config PCIEXP_ASPM
539         prompt "Enable PCIe ASPM"
540         bool
541         default n
542         help
543           Detect and enable ASPM (Active State Power Management) on PCIe links.
545 config PCIEXP_CLK_PM
546         prompt "Enable PCIe Clock Power Management"
547         bool
548         default n
549         help
550           Detect and enable Clock Power Management on PCIe.
552 config PCIEXP_L1_SUB_STATE
553         prompt "Enable PCIe ASPM L1 SubState"
554         bool
555         depends on (MMCONF_SUPPORT || PCI_IO_CFG_EXT)
556         default n
557         help
558           Detect and enable ASPM on PCIe links.
560 config PCIEXP_HOTPLUG
561         prompt "Enable PCIe Hotplug Support"
562         bool
563         default n
564         help
565           Allocate resources for PCIe hotplug bridges
567 if PCIEXP_HOTPLUG
569 config PCIEXP_HOTPLUG_BUSES
570         int "PCI Express Hotplug Buses"
571         default 32
572         help
573           This is the number of buses allocated for hotplug PCI express
574           bridges, for use by hotplugged child devices. The default is 32
575           buses.
577 config PCIEXP_HOTPLUG_MEM
578         hex "PCI Express Hotplug Memory"
579         default 0x800000
580         help
581           This is the amount of memory space, in bytes, to allocate to
582           hotplug PCI express bridges, for use by hotplugged child devices.
583           This size should be page-aligned. The default is 8 MiB.
585 config PCIEXP_HOTPLUG_PREFETCH_MEM
586         hex "PCI Express Hotplug Prefetch Memory"
587         default 0x10000000
588         help
589           This is the amount of pre-fetchable memory space, in bytes, to
590           allocate to hot-plug PCI express bridges, for use by hotplugged
591           child devices. This size should be page-aligned. The default is
592           256 MiB.
594 config PCIEXP_HOTPLUG_IO
595         hex "PCI Express Hotplug I/O Space"
596         default 0x2000
597         help
598           This is the amount of I/O space to allocate to hot-plug PCI
599           express bridges, for use by hotplugged child devices. The default
600           is 8 KiB.
602 endif # PCIEXP_HOTPLUG
604 endif # PCIEXP_PLUGIN_SUPPORT
606 config EARLY_PCI_BRIDGE
607         bool "Early PCI bridge"
608         depends on PCI
609         default n
610         help
611           While coreboot is executing code from ROM, the coreboot resource
612           allocator has not been running yet. Hence PCI devices living behind
613           a bridge are not yet visible to the system.
615           This option enables static configuration for a single pre-defined
616           PCI bridge function on bus 0.
618 if EARLY_PCI_BRIDGE
620 config EARLY_PCI_BRIDGE_DEVICE
621         hex "bridge device"
622         default 0x0
624 config EARLY_PCI_BRIDGE_FUNCTION
625         hex "bridge function"
626         default 0x0
628 config EARLY_PCI_MMIO_BASE
629         hex "MMIO window base"
630         default 0x0
632 endif # EARLY_PCI_BRIDGE
634 config SUBSYSTEM_VENDOR_ID
635         hex "Override PCI Subsystem Vendor ID"
636         depends on PCI
637         default 0x0000
638         help
639           This config option will override the devicetree settings for
640           PCI Subsystem Vendor ID.
642 config SUBSYSTEM_DEVICE_ID
643         hex "Override PCI Subsystem Device ID"
644         depends on PCI
645         default 0x0000
646         help
647           This config option will override the devicetree settings for
648           PCI Subsystem Device ID.
650 config VGA_BIOS
651         bool "Add a VGA BIOS image"
652         depends on ARCH_X86
653         help
654           Select this option if you have a VGA BIOS image that you would
655           like to add to your ROM.
657           You will be able to specify the location and file name of the
658           image later.
660 config VGA_BIOS_FILE
661         string "VGA BIOS path and filename"
662         depends on VGA_BIOS
663         default "vgabios.bin"
664         help
665           The path and filename of the file to use as VGA BIOS.
667 config VGA_BIOS_ID
668         string "VGA device PCI IDs"
669         depends on VGA_BIOS
670         default "1106,3230"
671         help
672           The comma-separated PCI vendor and device ID with optional revision if that
673           feature is enabled that would associate your vBIOS to your video card.
675           Example: 1106,3230 or 1106,3230,a3
677           In the above example 1106 is the PCI vendor ID (in hex, but without
678           the "0x" prefix) and 3230 specifies the PCI device ID of the
679           video card (also in hex, without "0x" prefix). a3 specifies the revision.
681           Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
683 config VGA_BIOS_SECOND
684         bool "Add a 2nd video BIOS image"
685         depends on ARCH_X86 && VGA_BIOS
686         help
687           Select this option if you have a 2nd video BIOS image that you would
688           like to add to your ROM.
690 config VGA_BIOS_SECOND_FILE
691         string "2nd video BIOS path and filename"
692         depends on VGA_BIOS_SECOND
693         default "vbios2.bin"
694         help
695           The path and filename of the file to use as video BIOS.
697 config VGA_BIOS_SECOND_ID
698         string "Graphics device PCI IDs"
699         depends on VGA_BIOS_SECOND
700         help
701           The comma-separated PCI vendor and device ID with optional revision if that
702           feature is enabled that would associate your vBIOS to your video card.
704           Example: 1106,3230 or 1106,3230,a3
706           In the above example 1106 is the PCI vendor ID (in hex, but without
707           the "0x" prefix) and 3230 specifies the PCI device ID of the
708           video card (also in hex, without "0x" prefix). a3 specifies the revision.
710           Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
712 config CHECK_REV_IN_OPROM_NAME
713         def_bool n
714         help
715           Select this in the platform BIOS or chipset if the option rom has a revision
716           that needs to be checked when searching CBFS.
718 config VGA_BIOS_DGPU
719         bool "Add a discrete VGA BIOS image"
720         depends on VGA_BIOS
721         help
722           Select this option if you have a VGA BIOS image for discrete GPU
723           that you would like to add to your ROM.
725           You will be able to specify the location and file name of the
726           image later.
728 config VGA_BIOS_DGPU_FILE
729         string "Discrete VGA BIOS path and filename"
730         depends on VGA_BIOS_DGPU
731         default "vgabios_dgpu.bin"
732         help
733           The path and filename of the file to use as VGA BIOS for discrete GPU.
735 config VGA_BIOS_DGPU_ID
736         string "Discrete VGA device PCI IDs"
737         depends on VGA_BIOS_DGPU
738         default "1002,6663"
739         help
740           The comma-separated PCI vendor and device ID that would associate
741           your VGA BIOS to your discrete video card.
743           Examples:
744               1002,6663 for HD 8570M
745               1002,6665 for R5 M230
747           In the above examples 1002 is the PCI vendor ID (in hex, but without
748           the "0x" prefix) and 6663 / 6665 specifies the PCI device ID of the
749           discrete video card (also in hex, without "0x" prefix).
751           Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
753 config INTEL_GMA_HAVE_VBT
754         bool
755         help
756           Select this in the mainboard Kconfig to indicate the board has
757           a data.vbt file.
759 config INTEL_GMA_ADD_VBT
760         depends on SOC_INTEL_COMMON || CPU_INTEL_COMMON
761         bool "Add a Video BIOS Table (VBT) binary to CBFS"
762         default y if INTEL_GMA_HAVE_VBT
763         help
764           Add a VBT data file to CBFS. The VBT describes the integrated
765           GPU and connections, and is needed by the GOP driver integrated into
766           FSP and the OS driver in order to initialize the display.
768 config INTEL_GMA_VBT_FILE
769         string "VBT binary path and filename"
770         depends on INTEL_GMA_ADD_VBT
771         default "src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/data.vbt" \
772                 if INTEL_GMA_HAVE_VBT && VARIANT_DIR != ""
773         default "src/mainboard/$(MAINBOARDDIR)/data.vbt" if INTEL_GMA_HAVE_VBT
774         default "3rdparty/blobs/mainboard/$(MAINBOARDDIR)/vbt.bin"
775         help
776           The path and filename of the VBT binary.
778 config SOFTWARE_I2C
779         bool "Enable I2C controller emulation in software"
780         default n
781         help
782           This config option will enable code to override the i2c_transfer
783           routine with a (simple) software emulation of the protocol. This may
784           be useful for debugging or on platforms where a driver for the real
785           I2C controller is not (yet) available. The platform code needs to
786           provide bindings to manually toggle I2C lines.
788 endmenu