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