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 |
| 18 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | ## |
| 20 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 21 | # TODO: Explain differences (if any) for onboard cards. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 22 | config VGA_ROM_RUN |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 23 | bool "Run VGA Option ROMs" |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 24 | default y |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 25 | help |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 26 | Execute VGA Option ROMs, if found. This is required to enable |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 27 | PCI/AGP/PCI-E video cards. |
Myles Watson | e680495 | 2009-08-28 14:36:12 +0000 | [diff] [blame] | 28 | |
Stefan Reinauer | 0a50084 | 2011-09-23 10:33:58 -0700 | [diff] [blame] | 29 | config S3_VGA_ROM_RUN |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 30 | bool "Re-run VGA Option ROMs on S3 resume" |
Stefan Reinauer | 0a50084 | 2011-09-23 10:33:58 -0700 | [diff] [blame] | 31 | default y |
| 32 | depends on VGA_ROM_RUN && HAVE_ACPI_RESUME |
| 33 | help |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 34 | Execute VGA Option ROMs when coming out of an S3 resume. |
Stefan Reinauer | 0a50084 | 2011-09-23 10:33:58 -0700 | [diff] [blame] | 35 | |
Myles Watson | e680495 | 2009-08-28 14:36:12 +0000 | [diff] [blame] | 36 | config PCI_ROM_RUN |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 37 | bool "Run non-VGA Option ROMs" |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 38 | default y |
Myles Watson | e680495 | 2009-08-28 14:36:12 +0000 | [diff] [blame] | 39 | help |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 40 | Execute non-VGA PCI Option ROMs, if found. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 41 | |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 42 | Examples include IDE/SATA controller Option ROMs and Option ROMs |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 43 | for network cards (NICs). |
| 44 | |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 45 | config ON_DEVICE_ROM_RUN |
| 46 | bool "Run Option ROMs on PCI devices" |
| 47 | default y |
| 48 | help |
| 49 | Execute Option ROMs that are stored on PCI/PCIe/AGP devices. |
| 50 | |
| 51 | If disabled, only Option ROMs stored in CBFS will be executed. If |
| 52 | you are concerned about security, you might want to disable this |
| 53 | option, but it might leave your system in a state of degraded |
| 54 | functionality. |
| 55 | |
| 56 | If unsure, say Y |
| 57 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 58 | choice |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 59 | prompt "Option ROM execution type" |
Stefan Reinauer | 14be4d0 | 2010-01-31 21:46:12 +0000 | [diff] [blame] | 60 | default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86 |
| 61 | default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86 |
Myles Watson | e3df121 | 2010-06-04 15:55:12 +0000 | [diff] [blame] | 62 | depends on PCI_ROM_RUN || VGA_ROM_RUN || GEODE_VSA |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 63 | |
| 64 | config PCI_OPTION_ROM_RUN_REALMODE |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 65 | prompt "Native mode" |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 66 | bool |
Stefan Reinauer | 14be4d0 | 2010-01-31 21:46:12 +0000 | [diff] [blame] | 67 | depends on ARCH_X86 |
Myles Watson | 28412f5 | 2009-09-17 16:54:46 +0000 | [diff] [blame] | 68 | help |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 69 | If you select this option, PCI Option ROMs will be executed |
Stefan Reinauer | 14be4d0 | 2010-01-31 21:46:12 +0000 | [diff] [blame] | 70 | natively on the CPU in real mode. No CPU emulation is involved, |
| 71 | so this is the fastest, but also the least secure option. |
| 72 | (only works on x86/x64 systems) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 73 | |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 74 | config PCI_OPTION_ROM_RUN_YABEL |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 75 | prompt "Secure mode" |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 76 | bool |
Myles Watson | e3df121 | 2010-06-04 15:55:12 +0000 | [diff] [blame] | 77 | depends on !GEODE_VSA |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 78 | help |
Stefan Reinauer | 14be4d0 | 2010-01-31 21:46:12 +0000 | [diff] [blame] | 79 | 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] | 80 | execute PCI Option ROMs. |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 81 | |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 82 | This option prevents Option ROMs from doing dirty tricks with the |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 83 | system (such as installing SMM modules or hypervisors), but it is |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 84 | also significantly slower than the native Option ROM initialization |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 85 | method. |
| 86 | |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 87 | This is the default choice for non-x86 systems. |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 88 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 89 | endchoice |
Uwe Hermann | 5ec2c2b | 2009-08-25 00:53:22 +0000 | [diff] [blame] | 90 | |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 91 | config YABEL_PCI_ACCESS_OTHER_DEVICES |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 92 | prompt "Allow Option ROMs to access other devices" |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 93 | bool |
| 94 | depends on PCI_OPTION_ROM_RUN_YABEL |
| 95 | help |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 96 | Per default, YABEL only allows Option ROMs to access the PCI device |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 97 | that they are associated with. However, this causes trouble for some |
Stefan Reinauer | afaa257 | 2011-10-06 16:47:51 -0700 | [diff] [blame] | 98 | onboard graphics chips whose Option ROM needs to reconfigure the |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 99 | north bridge. |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 100 | |
Patrick Georgi | c4b2a1b | 2012-07-20 13:44:50 +0200 | [diff] [blame] | 101 | config YABEL_PCI_FAKE_WRITING_OTHER_DEVICES_CONFIG |
| 102 | prompt "Fake success on writing other device's config space" |
| 103 | bool |
| 104 | depends on YABEL_PCI_ACCESS_OTHER_DEVICES |
| 105 | help |
| 106 | By default, YABEL aborts when the Option ROM tries to write to other |
| 107 | devices' config spaces. With this option enabled, the write doesn't |
| 108 | follow through, but the Option ROM is allowed to go on. |
| 109 | This can create issues such as hanging Option ROMs (if it depends on |
| 110 | that other register changing to the written value), so test for |
| 111 | impact before using this option. |
| 112 | |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 113 | config YABEL_VIRTMEM_LOCATION |
| 114 | prompt "Location of YABEL's virtual memory" |
| 115 | hex |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 116 | depends on PCI_OPTION_ROM_RUN_YABEL && EXPERT |
Stefan Reinauer | 9a35853 | 2010-02-12 09:32:17 +0000 | [diff] [blame] | 117 | default 0x1000000 |
| 118 | help |
| 119 | YABEL requires 1MB memory for its CPU emulation. This memory is |
| 120 | normally located at 16MB. |
| 121 | |
Uwe Hermann | 01ce601 | 2010-03-05 10:03:50 +0000 | [diff] [blame] | 122 | config YABEL_VIRTMEM_LOCATION |
| 123 | hex |
| 124 | depends on PCI_OPTION_ROM_RUN_YABEL && !EXPERT |
| 125 | default 0x1000000 |
| 126 | |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 127 | config YABEL_DIRECTHW |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 128 | prompt "Direct hardware access" |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 129 | bool |
Myles Watson | e680495 | 2009-08-28 14:36:12 +0000 | [diff] [blame] | 130 | depends on PCI_OPTION_ROM_RUN_YABEL |
| 131 | help |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 132 | 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] | 133 | additionally provides a PC system emulation that filters bad device |
| 134 | and memory access (such as PCI config space access to other devices |
| 135 | than the initialized one). |
| 136 | |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 137 | When choosing this option, x86emu will pass through all hardware |
Uwe Hermann | 548dbe7 | 2010-02-22 16:41:49 +0000 | [diff] [blame] | 138 | 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] | 139 | addresses. While this option prevents Option ROMs from doing dirty |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 140 | tricks with the CPU (such as installing SMM modules or hypervisors), |
| 141 | they can still access all devices in the system. |
| 142 | Enable this option for a good compromise between security and speed. |
| 143 | |
Stefan Reinauer | abc0c85 | 2010-11-22 08:09:50 +0000 | [diff] [blame] | 144 | config MULTIPLE_VGA_ADAPTERS |
Myles Watson | 28412f5 | 2009-09-17 16:54:46 +0000 | [diff] [blame] | 145 | bool |
| 146 | default n |
| 147 | |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 148 | config PCI_64BIT_PREF_MEM |
| 149 | bool |
| 150 | default n |
| 151 | |
| 152 | config HYPERTRANSPORT_PLUGIN_SUPPORT |
| 153 | bool |
Myles Watson | 74fb8f2 | 2009-09-24 15:09:11 +0000 | [diff] [blame] | 154 | default n |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 155 | |
| 156 | config PCIX_PLUGIN_SUPPORT |
| 157 | bool |
Myles Watson | ed03556 | 2009-09-22 21:29:32 +0000 | [diff] [blame] | 158 | default y |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 159 | |
| 160 | config PCIEXP_PLUGIN_SUPPORT |
| 161 | bool |
Myles Watson | ed03556 | 2009-09-22 21:29:32 +0000 | [diff] [blame] | 162 | default y |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 163 | |
| 164 | config AGP_PLUGIN_SUPPORT |
| 165 | bool |
Myles Watson | ed03556 | 2009-09-22 21:29:32 +0000 | [diff] [blame] | 166 | default y |
Ronald G. Minnich | 876d7e9 | 2009-08-28 14:23:38 +0000 | [diff] [blame] | 167 | |
| 168 | config CARDBUS_PLUGIN_SUPPORT |
| 169 | bool |
Myles Watson | ed03556 | 2009-09-22 21:29:32 +0000 | [diff] [blame] | 170 | default y |
Duncan Laurie | 90dcdd4 | 2011-10-25 14:15:11 -0700 | [diff] [blame] | 171 | |
| 172 | config PCIEXP_COMMON_CLOCK |
| 173 | prompt "Enable PCIe Common Clock" |
| 174 | bool |
| 175 | default n |
| 176 | help |
| 177 | Detect and enable Common Clock on PCIe links. |
| 178 | |
| 179 | config PCIEXP_ASPM |
| 180 | prompt "Enable PCIe ASPM" |
| 181 | bool |
| 182 | default n |
| 183 | help |
| 184 | Detect and enable ASPM on PCIe links. |