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