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