Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 4 | ## Copyright (C) 2007-2010 coresystems GmbH |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 5 | ## (Written by Stefan Reinauer <stepan@coresystems.de> for coresystems GmbH) |
| 6 | ## |
| 7 | ## This program is free software; you can redistribute it and/or modify |
| 8 | ## it under the terms of the GNU General Public License as published by |
Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame] | 9 | ## the Free Software Foundation; version 2 of the License. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 10 | ## |
| 11 | ## This program is distributed in the hope that it will be useful, |
| 12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ## GNU General Public License for more details. |
| 15 | ## |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 16 | |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 17 | menu "Devices" |
Ronald G. Minnich | 69efaa0 | 2013-02-26 10:07:40 -0800 | [diff] [blame] | 18 | |
| 19 | # Only set this in the mainboard |
| 20 | config MAINBOARD_HAS_NATIVE_VGA_INIT |
| 21 | bool |
| 22 | default n |
| 23 | |
Timothy Pearson | c522fc8 | 2015-02-02 18:25:34 -0600 | [diff] [blame] | 24 | # FIXME Ugly hack to allow Z9s driver native framebuffer configuration |
| 25 | config NATIVE_VGA_INIT_USE_EDID |
| 26 | bool |
| 27 | default n if DRIVERS_XGI_Z9S |
| 28 | default y if !DRIVERS_XGI_Z9S |
| 29 | |
Vladimir Serbinenko | 160e9a0 | 2014-02-22 10:34:47 +0100 | [diff] [blame] | 30 | config MAINBOARD_HAS_NATIVE_VGA_INIT_TEXTMODECFG |
| 31 | bool |
| 32 | default n |
| 33 | |
Ronald G. Minnich | 69efaa0 | 2013-02-26 10:07:40 -0800 | [diff] [blame] | 34 | config MAINBOARD_DO_NATIVE_VGA_INIT |
| 35 | bool "Use native graphics initialization" |
| 36 | depends on MAINBOARD_HAS_NATIVE_VGA_INIT |
| 37 | default n |
| 38 | help |
| 39 | Some mainboards, such as the Google Link, allow initializing the display |
| 40 | without the need of a binary only VGA OPROM. Enabling this option may be |
Paul Menzel | fd3451d | 2014-01-03 09:45:57 +0100 | [diff] [blame] | 41 | faster, but also lacks flexibility in setting modes. |
Ronald G. Minnich | 69efaa0 | 2013-02-26 10:07:40 -0800 | [diff] [blame] | 42 | |
| 43 | If unsure, say N. |
| 44 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 45 | # TODO: Explain differences (if any) for onboard cards. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 46 | config VGA_ROM_RUN |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 47 | bool "Run VGA Option ROMs" |
Peter Stuge | be0ede4 | 2012-10-27 14:17:04 +0200 | [diff] [blame] | 48 | default n if PAYLOAD_SEABIOS |
| 49 | default y if !PAYLOAD_SEABIOS |
Alexandru Gagniuc | fdbc1af | 2015-08-26 10:11:02 -0400 | [diff] [blame] | 50 | depends on PCI && !MAINBOARD_DO_NATIVE_VGA_INIT |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 51 | help |
Peter Stuge | b6fa47c | 2012-10-27 13:45:51 +0200 | [diff] [blame] | 52 | Execute VGA Option ROMs in coreboot if found. This is required |
| 53 | to enable PCI/AGP/PCI-E video cards when not using a SeaBIOS |
| 54 | payload. |
| 55 | |
| 56 | When using a SeaBIOS payload it runs all option ROMs with much |
| 57 | more complete BIOS interrupt services available than coreboot, |
| 58 | which some option ROMs require in order to function correctly. |
| 59 | |
| 60 | If unsure, say N when using SeaBIOS as payload, Y otherwise. |
Myles Watson | e680495 | 2009-08-28 14:36:12 +0000 | [diff] [blame] | 61 | |
Stefan Reinauer | 0a50084 | 2011-09-23 10:33:58 -0700 | [diff] [blame] | 62 | config S3_VGA_ROM_RUN |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 63 | bool "Re-run VGA Option ROMs on S3 resume" |
Stefan Reinauer | 0a50084 | 2011-09-23 10:33:58 -0700 | [diff] [blame] | 64 | default y |
| 65 | depends on VGA_ROM_RUN && HAVE_ACPI_RESUME |
| 66 | help |
Peter Stuge | b6fa47c | 2012-10-27 13:45:51 +0200 | [diff] [blame] | 67 | Execute VGA Option ROMs in coreboot when resuming from S3 suspend. |
| 68 | |
| 69 | When using a SeaBIOS payload it runs all option ROMs with much |
| 70 | more complete BIOS interrupt services available than coreboot, |
| 71 | which some option ROMs require in order to function correctly. |
| 72 | |
| 73 | If unsure, say N when using SeaBIOS as payload, Y otherwise. |
Stefan Reinauer | 0a50084 | 2011-09-23 10:33:58 -0700 | [diff] [blame] | 74 | |
Kyösti Mälkki | 580e564 | 2014-05-01 16:31:34 +0300 | [diff] [blame] | 75 | config ALWAYS_LOAD_OPROM |
| 76 | def_bool n |
| 77 | depends on VGA_ROM_RUN |
| 78 | help |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 79 | Always load option ROMs if any are found. The decision to run |
| 80 | the ROM is still determined at runtime, but the distinction |
Kyösti Mälkki | 580e564 | 2014-05-01 16:31:34 +0300 | [diff] [blame] | 81 | between loading and not running comes into play for CHROMEOS. |
| 82 | |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 83 | An example where this is required is that VBT (Video BIOS Tables) |
Kyösti Mälkki | 580e564 | 2014-05-01 16:31:34 +0300 | [diff] [blame] | 84 | are needed for the kernel's display driver to know how a piece of |
| 85 | hardware is configured to be used. |
| 86 | |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 87 | config ON_DEVICE_ROM_RUN |
| 88 | bool "Run Option ROMs on PCI devices" |
Peter Stuge | be0ede4 | 2012-10-27 14:17:04 +0200 | [diff] [blame] | 89 | default n if PAYLOAD_SEABIOS |
| 90 | default y if !PAYLOAD_SEABIOS |
Alexandru Gagniuc | fdbc1af | 2015-08-26 10:11:02 -0400 | [diff] [blame] | 91 | depends on PCI |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 92 | help |
Peter Stuge | b6fa47c | 2012-10-27 13:45:51 +0200 | [diff] [blame] | 93 | Execute Option ROMs stored on PCI/PCIe/AGP devices in coreboot. |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 94 | |
Peter Stuge | b6fa47c | 2012-10-27 13:45:51 +0200 | [diff] [blame] | 95 | If disabled, only Option ROMs stored in CBFS will be executed by |
| 96 | coreboot. If you are concerned about security, you might want to |
| 97 | disable this option, but it might leave your system in a state of |
| 98 | degraded functionality. |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 99 | |
Peter Stuge | b6fa47c | 2012-10-27 13:45:51 +0200 | [diff] [blame] | 100 | When using a SeaBIOS payload it runs all option ROMs with much |
| 101 | more complete BIOS interrupt services available than coreboot, |
| 102 | which some option ROMs require in order to function correctly. |
| 103 | |
| 104 | If unsure, say N when using SeaBIOS as payload, Y otherwise. |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 105 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 106 | choice |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 107 | prompt "Option ROM execution type" |
Stefan Reinauer | 14be4d0 | 2010-01-31 21:46:12 +0000 | [diff] [blame] | 108 | default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86 |
| 109 | default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86 |
Vladimir Serbinenko | b32816e | 2013-12-20 17:47:19 +0100 | [diff] [blame] | 110 | depends on VGA_ROM_RUN || GEODE_VSA |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 111 | |
| 112 | config PCI_OPTION_ROM_RUN_REALMODE |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 113 | prompt "Native mode" |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 114 | bool |
Stefan Reinauer | 14be4d0 | 2010-01-31 21:46:12 +0000 | [diff] [blame] | 115 | depends on ARCH_X86 |
Myles Watson | 28412f5 | 2009-09-17 16:54:46 +0000 | [diff] [blame] | 116 | help |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 117 | If you select this option, PCI Option ROMs will be executed |
Stefan Reinauer | 14be4d0 | 2010-01-31 21:46:12 +0000 | [diff] [blame] | 118 | natively on the CPU in real mode. No CPU emulation is involved, |
| 119 | so this is the fastest, but also the least secure option. |
| 120 | (only works on x86/x64 systems) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 121 | |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 122 | config PCI_OPTION_ROM_RUN_YABEL |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 123 | prompt "Secure mode" |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 124 | bool |
Myles Watson | e3df121 | 2010-06-04 15:55:12 +0000 | [diff] [blame] | 125 | depends on !GEODE_VSA |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 126 | help |
Stefan Reinauer | 14be4d0 | 2010-01-31 21:46:12 +0000 | [diff] [blame] | 127 | If you select this option, the x86emu CPU emulator will be used to |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 128 | execute PCI Option ROMs. |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 129 | |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 130 | This option prevents Option ROMs from doing dirty tricks with the |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 131 | system (such as installing SMM modules or hypervisors), but it is |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 132 | also significantly slower than the native Option ROM initialization |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 133 | method. |
| 134 | |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 135 | This is the default choice for non-x86 systems. |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 136 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 137 | endchoice |
Uwe Hermann | 5ec2c2b | 2009-08-25 00:53:22 +0000 | [diff] [blame] | 138 | |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 139 | config YABEL_PCI_ACCESS_OTHER_DEVICES |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 140 | prompt "Allow Option ROMs to access other devices" |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 141 | bool |
| 142 | depends on PCI_OPTION_ROM_RUN_YABEL |
| 143 | help |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 144 | Per default, YABEL only allows Option ROMs to access the PCI device |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 145 | that they are associated with. However, this causes trouble for some |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 146 | onboard graphics chips whose Option ROM needs to reconfigure the |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 147 | north bridge. |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 148 | |
Patrick Georgi | c4b2a1b | 2012-07-20 13:44:50 +0200 | [diff] [blame] | 149 | config YABEL_PCI_FAKE_WRITING_OTHER_DEVICES_CONFIG |
| 150 | prompt "Fake success on writing other device's config space" |
| 151 | bool |
| 152 | depends on YABEL_PCI_ACCESS_OTHER_DEVICES |
| 153 | help |
| 154 | By default, YABEL aborts when the Option ROM tries to write to other |
| 155 | devices' config spaces. With this option enabled, the write doesn't |
| 156 | follow through, but the Option ROM is allowed to go on. |
| 157 | This can create issues such as hanging Option ROMs (if it depends on |
| 158 | that other register changing to the written value), so test for |
| 159 | impact before using this option. |
| 160 | |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 161 | config YABEL_VIRTMEM_LOCATION |
| 162 | prompt "Location of YABEL's virtual memory" |
| 163 | hex |
Alexandru Gagniuc | fdbc1af | 2015-08-26 10:11:02 -0400 | [diff] [blame] | 164 | depends on PCI_OPTION_ROM_RUN_YABEL |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 165 | default 0x1000000 |
| 166 | help |
| 167 | YABEL requires 1MB memory for its CPU emulation. This memory is |
| 168 | normally located at 16MB. |
| 169 | |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 170 | config YABEL_DIRECTHW |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 171 | prompt "Direct hardware access" |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 172 | bool |
Stefan Reinauer | 91f1423 | 2012-12-07 16:55:12 -0800 | [diff] [blame] | 173 | depends on PCI_OPTION_ROM_RUN_YABEL && ARCH_X86 |
Myles Watson | e680495 | 2009-08-28 14:36:12 +0000 | [diff] [blame] | 174 | help |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 175 | YABEL consists of two parts: It uses x86emu for the CPU emulation and |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 176 | additionally provides a PC system emulation that filters bad device |
| 177 | and memory access (such as PCI config space access to other devices |
| 178 | than the initialized one). |
| 179 | |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 180 | When choosing this option, x86emu will pass through all hardware |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 181 | accesses to memory and I/O devices to the underlying memory and I/O |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 182 | addresses. While this option prevents Option ROMs from doing dirty |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 183 | tricks with the CPU (such as installing SMM modules or hypervisors), |
| 184 | they can still access all devices in the system. |
| 185 | Enable this option for a good compromise between security and speed. |
| 186 | |
Stefan Reinauer | abc0c85 | 2010-11-22 08:09:50 +0000 | [diff] [blame] | 187 | config MULTIPLE_VGA_ADAPTERS |
Myles Watson | 28412f5 | 2009-09-17 16:54:46 +0000 | [diff] [blame] | 188 | bool |
| 189 | default n |
| 190 | |
Timothy Pearson | acbdade | 2015-10-17 04:36:47 -0500 | [diff] [blame] | 191 | config SMBUS_HAS_AUX_CHANNELS |
| 192 | bool |
| 193 | default n |
| 194 | |
Kyösti Mälkki | 36abdc4 | 2014-05-05 16:40:15 +0300 | [diff] [blame] | 195 | config SPD_CACHE |
| 196 | bool |
| 197 | default n |
| 198 | |
Ronald G. Minnich | 78a1667 | 2012-11-29 16:28:21 -0800 | [diff] [blame] | 199 | config PCI |
| 200 | bool |
| 201 | default n |
| 202 | |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 203 | config HYPERTRANSPORT_PLUGIN_SUPPORT |
| 204 | bool |
Ronald G. Minnich | 78a1667 | 2012-11-29 16:28:21 -0800 | [diff] [blame] | 205 | depends on PCI |
Myles Watson | 74fb8f2 | 2009-09-24 15:09:11 +0000 | [diff] [blame] | 206 | default n |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 207 | |
| 208 | config PCIX_PLUGIN_SUPPORT |
| 209 | bool |
Ronald G. Minnich | 78a1667 | 2012-11-29 16:28:21 -0800 | [diff] [blame] | 210 | depends on PCI |
Myles Watson | ed03556 | 2009-09-22 21:29:32 +0000 | [diff] [blame] | 211 | default y |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 212 | |
| 213 | config PCIEXP_PLUGIN_SUPPORT |
| 214 | bool |
Ronald G. Minnich | 78a1667 | 2012-11-29 16:28:21 -0800 | [diff] [blame] | 215 | depends on PCI |
Myles Watson | ed03556 | 2009-09-22 21:29:32 +0000 | [diff] [blame] | 216 | default y |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 217 | |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 218 | config CARDBUS_PLUGIN_SUPPORT |
| 219 | bool |
Ronald G. Minnich | 78a1667 | 2012-11-29 16:28:21 -0800 | [diff] [blame] | 220 | depends on PCI |
Myles Watson | ed03556 | 2009-09-22 21:29:32 +0000 | [diff] [blame] | 221 | default y |
Duncan Laurie | 90dcdd4 | 2011-10-25 14:15:11 -0700 | [diff] [blame] | 222 | |
Andrew Wu | b7bb70d | 2013-08-12 20:07:47 +0800 | [diff] [blame] | 223 | config AZALIA_PLUGIN_SUPPORT |
| 224 | bool |
| 225 | depends on PCI |
| 226 | default n |
| 227 | |
Duncan Laurie | 90dcdd4 | 2011-10-25 14:15:11 -0700 | [diff] [blame] | 228 | config PCIEXP_COMMON_CLOCK |
| 229 | prompt "Enable PCIe Common Clock" |
| 230 | bool |
Stefan Reinauer | c4077d4 | 2013-01-04 10:07:28 -0800 | [diff] [blame] | 231 | depends on PCIEXP_PLUGIN_SUPPORT |
Duncan Laurie | 90dcdd4 | 2011-10-25 14:15:11 -0700 | [diff] [blame] | 232 | default n |
| 233 | help |
| 234 | Detect and enable Common Clock on PCIe links. |
| 235 | |
| 236 | config PCIEXP_ASPM |
| 237 | prompt "Enable PCIe ASPM" |
| 238 | bool |
Stefan Reinauer | c4077d4 | 2013-01-04 10:07:28 -0800 | [diff] [blame] | 239 | depends on PCIEXP_PLUGIN_SUPPORT |
Duncan Laurie | 90dcdd4 | 2011-10-25 14:15:11 -0700 | [diff] [blame] | 240 | default n |
| 241 | help |
| 242 | Detect and enable ASPM on PCIe links. |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 243 | |
Kane Chen | 18cb134 | 2014-10-01 11:13:54 +0800 | [diff] [blame] | 244 | config PCIEXP_CLK_PM |
| 245 | prompt "Enable PCIe Clock Power Management" |
| 246 | bool |
| 247 | depends on PCIEXP_PLUGIN_SUPPORT |
| 248 | default n |
| 249 | help |
| 250 | Detect and enable Clock Power Management on PCIe. |
| 251 | |
Kyösti Mälkki | 4c686f2 | 2014-02-14 12:45:09 +0200 | [diff] [blame] | 252 | config EARLY_PCI_BRIDGE |
| 253 | bool "Early PCI bridge" |
| 254 | depends on PCI |
| 255 | default n |
| 256 | help |
| 257 | While coreboot is executing code from ROM, the coreboot resource |
| 258 | allocator has not been running yet. Hence PCI devices living behind |
| 259 | a bridge are not yet visible to the system. |
| 260 | |
| 261 | This option enables static configuration for a single pre-defined |
| 262 | PCI bridge function on bus 0. |
| 263 | |
Kenji Chen | 31c6e63 | 2014-10-04 01:14:44 +0800 | [diff] [blame] | 264 | config PCIEXP_L1_SUB_STATE |
| 265 | prompt "Enable PCIe ASPM L1 SubState" |
| 266 | bool |
| 267 | depends on PCIEXP_PLUGIN_SUPPORT && MMCONF_SUPPORT |
| 268 | default n |
| 269 | help |
| 270 | Detect and enable ASPM on PCIe links. |
| 271 | |
Kyösti Mälkki | 4c686f2 | 2014-02-14 12:45:09 +0200 | [diff] [blame] | 272 | if EARLY_PCI_BRIDGE |
| 273 | |
| 274 | config EARLY_PCI_BRIDGE_DEVICE |
| 275 | hex "bridge device" |
| 276 | default 0x0 |
| 277 | |
| 278 | config EARLY_PCI_BRIDGE_FUNCTION |
| 279 | hex "bridge function" |
| 280 | default 0x0 |
| 281 | |
| 282 | config EARLY_PCI_MMIO_BASE |
| 283 | hex "MMIO window base" |
| 284 | default 0x0 |
| 285 | |
| 286 | endif # EARLY_PCI_BRIDGE |
| 287 | |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 288 | config SUBSYSTEM_VENDOR_ID |
| 289 | hex "Override PCI Subsystem Vendor ID" |
| 290 | depends on PCI |
| 291 | default "0x0000" |
| 292 | help |
| 293 | This config option will override the devicetree settings for |
| 294 | PCI Subsystem Vendor ID. |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 295 | |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 296 | config SUBSYSTEM_DEVICE_ID |
| 297 | hex "Override PCI Subsystem Device ID" |
| 298 | depends on PCI |
| 299 | default "0x0000" |
| 300 | help |
| 301 | This config option will override the devicetree settings for |
| 302 | PCI Subsystem Device ID. |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 303 | |
| 304 | config VGA_BIOS |
| 305 | bool "Add a VGA BIOS image" |
| 306 | help |
| 307 | Select this option if you have a VGA BIOS image that you would |
| 308 | like to add to your ROM. |
| 309 | |
| 310 | You will be able to specify the location and file name of the |
| 311 | image later. |
| 312 | |
| 313 | config VGA_BIOS_FILE |
| 314 | string "VGA BIOS path and filename" |
| 315 | depends on VGA_BIOS |
| 316 | default "vgabios.bin" |
| 317 | help |
| 318 | The path and filename of the file to use as VGA BIOS. |
| 319 | |
| 320 | config VGA_BIOS_ID |
| 321 | string "VGA device PCI IDs" |
| 322 | depends on VGA_BIOS |
| 323 | default "1106,3230" |
| 324 | help |
| 325 | The comma-separated PCI vendor and device ID that would associate |
| 326 | your VGA BIOS to your video card. |
| 327 | |
| 328 | Example: 1106,3230 |
| 329 | |
| 330 | In the above example 1106 is the PCI vendor ID (in hex, but without |
| 331 | the "0x" prefix) and 3230 specifies the PCI device ID of the |
| 332 | video card (also in hex, without "0x" prefix). |
| 333 | |
Daniele Forsi | f2fb7d9 | 2014-07-17 11:59:41 +0200 | [diff] [blame] | 334 | Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices. |
| 335 | |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 336 | config INTEL_MBI |
| 337 | bool "Add an MBI image" |
| 338 | depends on NORTHBRIDGE_INTEL_I82830 |
| 339 | help |
| 340 | Select this option if you have an Intel MBI image that you would |
| 341 | like to add to your ROM. |
| 342 | |
| 343 | You will be able to specify the location and file name of the |
| 344 | image later. |
| 345 | |
| 346 | config MBI_FILE |
| 347 | string "Intel MBI path and filename" |
| 348 | depends on INTEL_MBI |
| 349 | default "mbi.bin" |
| 350 | help |
| 351 | The path and filename of the file to use as VGA BIOS. |
| 352 | |
Stefan Reinauer | 58470e3 | 2014-10-17 13:08:36 +0200 | [diff] [blame] | 353 | config PXE_ROM |
| 354 | bool "Add a PXE ROM image" |
| 355 | help |
| 356 | Select this option if you have a PXE ROM image that you would |
| 357 | like to add to your ROM. |
| 358 | |
| 359 | config PXE_ROM_FILE |
| 360 | string "PXE ROM filename" |
| 361 | depends on PXE_ROM |
| 362 | default "pxe.rom" |
| 363 | help |
| 364 | The path and filename of the file to use as PXE ROM. |
| 365 | |
| 366 | config PXE_ROM_ID |
| 367 | string "network card PCI IDs" |
| 368 | depends on PXE_ROM |
| 369 | default "10ec,8168" |
| 370 | help |
| 371 | The comma-separated PCI vendor and device ID that would associate |
| 372 | your PXE ROM to your network card. |
| 373 | |
| 374 | Example: 10ec,8168 |
| 375 | |
| 376 | In the above example 10ec is the PCI vendor ID (in hex, but without |
| 377 | the "0x" prefix) and 8168 specifies the PCI device ID of the |
| 378 | network card (also in hex, without "0x" prefix). |
| 379 | |
| 380 | Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices. |
| 381 | |
Julius Werner | 37d7ac8 | 2014-05-05 18:03:46 -0700 | [diff] [blame] | 382 | config SOFTWARE_I2C |
| 383 | bool "Enable I2C controller emulation in software" |
| 384 | default n |
| 385 | help |
| 386 | This config option will enable code to override the i2c_transfer |
| 387 | routine with a (simple) software emulation of the protocol. This may |
| 388 | be useful for debugging or on platforms where a driver for the real |
| 389 | I2C controller is not (yet) available. The platform code needs to |
| 390 | provide bindings to manually toggle I2C lines. |
Kyösti Mälkki | a91e1e6 | 2014-12-31 10:36:08 +0200 | [diff] [blame] | 391 | |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 392 | endmenu |
| 393 | |
| 394 | menu "Display" |
Ronald G. Minnich | 69efaa0 | 2013-02-26 10:07:40 -0800 | [diff] [blame] | 395 | depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE || MAINBOARD_DO_NATIVE_VGA_INIT |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 396 | |
| 397 | config FRAMEBUFFER_SET_VESA_MODE |
Ronald G. Minnich | 69efaa0 | 2013-02-26 10:07:40 -0800 | [diff] [blame] | 398 | prompt "Set framebuffer graphics resolution" |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 399 | bool |
| 400 | depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE |
| 401 | help |
Ronald G. Minnich | 69efaa0 | 2013-02-26 10:07:40 -0800 | [diff] [blame] | 402 | Set VESA/native framebuffer mode (needed for bootsplash and graphical framebuffer console) |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 403 | |
| 404 | choice |
Ronald G. Minnich | 69efaa0 | 2013-02-26 10:07:40 -0800 | [diff] [blame] | 405 | prompt "framebuffer graphics resolution" |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 406 | default FRAMEBUFFER_VESA_MODE_117 |
Vladimir Serbinenko | fb6d25f | 2014-02-21 08:38:27 +0100 | [diff] [blame] | 407 | depends on FRAMEBUFFER_SET_VESA_MODE |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 408 | help |
| 409 | This option sets the resolution used for the coreboot framebuffer (and |
| 410 | bootsplash screen). |
| 411 | |
| 412 | config FRAMEBUFFER_VESA_MODE_100 |
| 413 | bool "640x400 256-color" |
| 414 | |
| 415 | config FRAMEBUFFER_VESA_MODE_101 |
| 416 | bool "640x480 256-color" |
| 417 | |
| 418 | config FRAMEBUFFER_VESA_MODE_102 |
| 419 | bool "800x600 16-color" |
| 420 | |
| 421 | config FRAMEBUFFER_VESA_MODE_103 |
| 422 | bool "800x600 256-color" |
| 423 | |
| 424 | config FRAMEBUFFER_VESA_MODE_104 |
| 425 | bool "1024x768 16-color" |
| 426 | |
| 427 | config FRAMEBUFFER_VESA_MODE_105 |
Daniele Forsi | ed3d0e8 | 2014-07-19 15:40:40 +0200 | [diff] [blame] | 428 | bool "1024x768 256-color" |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 429 | |
| 430 | config FRAMEBUFFER_VESA_MODE_106 |
| 431 | bool "1280x1024 16-color" |
| 432 | |
| 433 | config FRAMEBUFFER_VESA_MODE_107 |
| 434 | bool "1280x1024 256-color" |
| 435 | |
| 436 | config FRAMEBUFFER_VESA_MODE_108 |
| 437 | bool "80x60 text" |
| 438 | |
| 439 | config FRAMEBUFFER_VESA_MODE_109 |
| 440 | bool "132x25 text" |
| 441 | |
| 442 | config FRAMEBUFFER_VESA_MODE_10A |
| 443 | bool "132x43 text" |
| 444 | |
| 445 | config FRAMEBUFFER_VESA_MODE_10B |
| 446 | bool "132x50 text" |
| 447 | |
| 448 | config FRAMEBUFFER_VESA_MODE_10C |
| 449 | bool "132x60 text" |
| 450 | |
| 451 | config FRAMEBUFFER_VESA_MODE_10D |
| 452 | bool "320x200 32k-color (1:5:5:5)" |
| 453 | |
| 454 | config FRAMEBUFFER_VESA_MODE_10E |
| 455 | bool "320x200 64k-color (5:6:5)" |
| 456 | |
| 457 | config FRAMEBUFFER_VESA_MODE_10F |
| 458 | bool "320x200 16.8M-color (8:8:8)" |
| 459 | |
| 460 | config FRAMEBUFFER_VESA_MODE_110 |
| 461 | bool "640x480 32k-color (1:5:5:5)" |
| 462 | |
| 463 | config FRAMEBUFFER_VESA_MODE_111 |
| 464 | bool "640x480 64k-color (5:6:5)" |
| 465 | |
| 466 | config FRAMEBUFFER_VESA_MODE_112 |
| 467 | bool "640x480 16.8M-color (8:8:8)" |
| 468 | |
| 469 | config FRAMEBUFFER_VESA_MODE_113 |
| 470 | bool "800x600 32k-color (1:5:5:5)" |
| 471 | |
| 472 | config FRAMEBUFFER_VESA_MODE_114 |
| 473 | bool "800x600 64k-color (5:6:5)" |
| 474 | |
| 475 | config FRAMEBUFFER_VESA_MODE_115 |
| 476 | bool "800x600 16.8M-color (8:8:8)" |
| 477 | |
| 478 | config FRAMEBUFFER_VESA_MODE_116 |
| 479 | bool "1024x768 32k-color (1:5:5:5)" |
| 480 | |
| 481 | config FRAMEBUFFER_VESA_MODE_117 |
| 482 | bool "1024x768 64k-color (5:6:5)" |
| 483 | |
| 484 | config FRAMEBUFFER_VESA_MODE_118 |
| 485 | bool "1024x768 16.8M-color (8:8:8)" |
| 486 | |
| 487 | config FRAMEBUFFER_VESA_MODE_119 |
| 488 | bool "1280x1024 32k-color (1:5:5:5)" |
| 489 | |
| 490 | config FRAMEBUFFER_VESA_MODE_11A |
| 491 | bool "1280x1024 64k-color (5:6:5)" |
| 492 | |
| 493 | config FRAMEBUFFER_VESA_MODE_11B |
| 494 | bool "1280x1024 16.8M-color (8:8:8)" |
| 495 | |
| 496 | config FRAMEBUFFER_VESA_MODE_USER |
| 497 | bool "Manually select VESA mode" |
Ronald G. Minnich | 69efaa0 | 2013-02-26 10:07:40 -0800 | [diff] [blame] | 498 | depends on !MAINBOARD_DO_NATIVE_VGA_INIT |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 499 | |
| 500 | endchoice |
| 501 | |
| 502 | # Map the config names to an integer (KB). |
| 503 | config FRAMEBUFFER_VESA_MODE |
| 504 | prompt "VESA mode" if FRAMEBUFFER_VESA_MODE_USER |
| 505 | hex |
| 506 | default 0x100 if FRAMEBUFFER_VESA_MODE_100 |
| 507 | default 0x101 if FRAMEBUFFER_VESA_MODE_101 |
| 508 | default 0x102 if FRAMEBUFFER_VESA_MODE_102 |
| 509 | default 0x103 if FRAMEBUFFER_VESA_MODE_103 |
| 510 | default 0x104 if FRAMEBUFFER_VESA_MODE_104 |
| 511 | default 0x105 if FRAMEBUFFER_VESA_MODE_105 |
| 512 | default 0x106 if FRAMEBUFFER_VESA_MODE_106 |
| 513 | default 0x107 if FRAMEBUFFER_VESA_MODE_107 |
| 514 | default 0x108 if FRAMEBUFFER_VESA_MODE_108 |
| 515 | default 0x109 if FRAMEBUFFER_VESA_MODE_109 |
| 516 | default 0x10A if FRAMEBUFFER_VESA_MODE_10A |
| 517 | default 0x10B if FRAMEBUFFER_VESA_MODE_10B |
| 518 | default 0x10C if FRAMEBUFFER_VESA_MODE_10C |
| 519 | default 0x10D if FRAMEBUFFER_VESA_MODE_10D |
| 520 | default 0x10E if FRAMEBUFFER_VESA_MODE_10E |
| 521 | default 0x10F if FRAMEBUFFER_VESA_MODE_10F |
| 522 | default 0x110 if FRAMEBUFFER_VESA_MODE_110 |
| 523 | default 0x111 if FRAMEBUFFER_VESA_MODE_111 |
| 524 | default 0x112 if FRAMEBUFFER_VESA_MODE_112 |
| 525 | default 0x113 if FRAMEBUFFER_VESA_MODE_113 |
| 526 | default 0x114 if FRAMEBUFFER_VESA_MODE_114 |
| 527 | default 0x115 if FRAMEBUFFER_VESA_MODE_115 |
| 528 | default 0x116 if FRAMEBUFFER_VESA_MODE_116 |
| 529 | default 0x117 if FRAMEBUFFER_VESA_MODE_117 |
| 530 | default 0x118 if FRAMEBUFFER_VESA_MODE_118 |
| 531 | default 0x119 if FRAMEBUFFER_VESA_MODE_119 |
| 532 | default 0x11A if FRAMEBUFFER_VESA_MODE_11A |
| 533 | default 0x11B if FRAMEBUFFER_VESA_MODE_11B |
| 534 | default 0x117 if FRAMEBUFFER_VESA_MODE_USER |
| 535 | |
| 536 | config FRAMEBUFFER_KEEP_VESA_MODE |
| 537 | prompt "Keep VESA framebuffer" |
| 538 | bool |
Vladimir Serbinenko | 160e9a0 | 2014-02-22 10:34:47 +0100 | [diff] [blame] | 539 | depends on PCI_OPTION_ROM_RUN_YABEL || PCI_OPTION_ROM_RUN_REALMODE || (MAINBOARD_HAS_NATIVE_VGA_INIT_TEXTMODECFG && MAINBOARD_DO_NATIVE_VGA_INIT) |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 540 | help |
| 541 | This option keeps the framebuffer mode set after coreboot finishes |
| 542 | execution. If this option is enabled, coreboot will pass a |
| 543 | framebuffer entry in its coreboot table and the payload will need a |
| 544 | framebuffer driver. If this option is disabled, coreboot will switch |
| 545 | back to text mode before handing control to a payload. |
| 546 | |
| 547 | config BOOTSPLASH |
| 548 | prompt "Show graphical bootsplash" |
| 549 | bool |
| 550 | depends on FRAMEBUFFER_SET_VESA_MODE |
| 551 | help |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 552 | This option shows a graphical bootsplash screen. The graphics are |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 553 | loaded from the CBFS file bootsplash.jpg. |
| 554 | |
Konstantin Aladyshev | 6544cb3 | 2015-01-24 18:52:10 +0400 | [diff] [blame] | 555 | You can either specify the location and file name of the |
| 556 | image in the 'General' section or add it manually to CBFS, using, |
| 557 | for example, cbfstool. |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 558 | |
Stefan Reinauer | 95a6396 | 2012-11-13 17:00:01 -0800 | [diff] [blame] | 559 | endmenu |