Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 1 | config SOC_INTEL_BROADWELL |
| 2 | bool |
| 3 | help |
| 4 | Intel Broadwell and Haswell ULT support. |
| 5 | |
| 6 | if SOC_INTEL_BROADWELL |
| 7 | |
| 8 | config CPU_SPECIFIC_OPTIONS |
| 9 | def_bool y |
| 10 | select ARCH_BOOTBLOCK_X86_32 |
| 11 | select ARCH_ROMSTAGE_X86_32 |
| 12 | select ARCH_RAMSTAGE_X86_32 |
| 13 | select ALT_CBFS_LOAD_PAYLOAD |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 14 | select ALWAYS_LOAD_OPROM |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 15 | select BACKUP_DEFAULT_SMM_REGION |
| 16 | select CACHE_MRC_BIN |
| 17 | select CACHE_MRC_SETTINGS |
| 18 | select CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM |
| 19 | select CACHE_ROM |
| 20 | select CAR_MIGRATION |
| 21 | select COLLECT_TIMESTAMPS |
| 22 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
Kyösti Mälkki | 4851bf2 | 2014-12-27 12:57:06 +0200 | [diff] [blame] | 23 | select SUPPORT_CPU_UCODE_IN_CBFS |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 24 | select DYNAMIC_CBMEM |
| 25 | select HAVE_MONOTONIC_TIMER |
| 26 | select HAVE_SMI_HANDLER |
| 27 | select HAVE_HARD_RESET |
| 28 | select HAVE_USBDEBUG |
| 29 | select IOAPIC |
| 30 | select MMCONF_SUPPORT |
| 31 | select MMCONF_SUPPORT_DEFAULT |
| 32 | select RELOCATABLE_MODULES |
Marc Jones | a6354a1 | 2014-12-26 22:11:14 -0700 | [diff] [blame^] | 33 | select RELOCATABLE_RAMSTAGE |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 34 | select REG_SCRIPT |
| 35 | select PARALLEL_MP |
| 36 | select PCIEXP_ASPM |
| 37 | select PCIEXP_COMMON_CLOCK |
| 38 | select SMM_MODULES |
| 39 | select SMM_TSEG |
| 40 | select SMP |
| 41 | select SPI_FLASH |
| 42 | select SSE2 |
Marc Jones | a6354a1 | 2014-12-26 22:11:14 -0700 | [diff] [blame^] | 43 | select SUPPORT_CPU_UCODE_IN_CBFS |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 44 | select TSC_CONSTANT_RATE |
| 45 | select TSC_SYNC_MFENCE |
| 46 | select UDELAY_TSC |
Vladimir Serbinenko | b219da8 | 2014-11-09 03:29:30 +0100 | [diff] [blame] | 47 | select PER_DEVICE_ACPI_TABLES |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 48 | |
| 49 | config BOOTBLOCK_CPU_INIT |
| 50 | string |
| 51 | default "soc/intel/broadwell/bootblock/cpu.c" |
| 52 | |
| 53 | config BOOTBLOCK_NORTHBRIDGE_INIT |
| 54 | string |
| 55 | default "soc/intel/broadwell/bootblock/systemagent.c" |
| 56 | |
| 57 | config BOOTBLOCK_SOUTHBRIDGE_INIT |
| 58 | string |
| 59 | default "soc/intel/broadwell/bootblock/pch.c" |
| 60 | |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 61 | |
| 62 | config MMCONF_BASE_ADDRESS |
| 63 | hex |
| 64 | default 0xf0000000 |
| 65 | |
| 66 | config SERIAL_CPU_INIT |
| 67 | bool |
| 68 | default n |
| 69 | |
| 70 | config SMM_TSEG_SIZE |
| 71 | hex |
| 72 | default 0x800000 |
| 73 | |
| 74 | config IED_REGION_SIZE |
| 75 | hex |
| 76 | default 0x400000 |
| 77 | |
| 78 | config SMM_RESERVED_SIZE |
| 79 | hex |
| 80 | default 0x100000 |
| 81 | |
| 82 | config VGA_BIOS_ID |
| 83 | string |
| 84 | default "8086,0406" |
| 85 | |
| 86 | config CACHE_MRC_SIZE_KB |
| 87 | int |
| 88 | default 512 |
| 89 | |
| 90 | config DCACHE_RAM_BASE |
| 91 | hex |
| 92 | default 0xff7c0000 |
| 93 | |
| 94 | config DCACHE_RAM_SIZE |
| 95 | hex |
| 96 | default 0x10000 |
| 97 | help |
| 98 | The size of the cache-as-ram region required during bootblock |
| 99 | and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE |
| 100 | must add up to a power of 2. |
| 101 | |
| 102 | config DCACHE_RAM_MRC_VAR_SIZE |
| 103 | hex |
| 104 | default 0x30000 |
| 105 | help |
| 106 | The amount of cache-as-ram region required by the reference code. |
| 107 | |
| 108 | config DCACHE_RAM_ROMSTAGE_STACK_SIZE |
| 109 | hex |
| 110 | default 0x2000 |
| 111 | help |
| 112 | The amount of anticipated stack usage from the data cache |
| 113 | during pre-ram rom stage execution. |
| 114 | |
| 115 | config HAVE_MRC |
| 116 | bool "Add a Memory Reference Code binary" |
| 117 | help |
| 118 | Select this option to add a Memory Reference Code binary to |
| 119 | the resulting coreboot image. |
| 120 | |
| 121 | Note: Without this binary coreboot will not work |
| 122 | |
| 123 | if HAVE_MRC |
| 124 | |
| 125 | config MRC_FILE |
| 126 | string "Intel Memory Reference Code path and filename" |
| 127 | depends on HAVE_MRC |
| 128 | default "mrc.bin" |
| 129 | help |
| 130 | The filename of the file to use as Memory Reference Code binary. |
| 131 | |
| 132 | config MRC_BIN_ADDRESS |
| 133 | hex |
| 134 | default 0xfffa0000 |
| 135 | |
| 136 | config CACHE_MRC_SETTINGS |
| 137 | bool "Save cached MRC settings" |
| 138 | default y |
| 139 | |
| 140 | endif # HAVE_MRC |
| 141 | |
| 142 | config CBFS_SIZE |
| 143 | hex "Size of CBFS filesystem in ROM" |
| 144 | default 0x100000 |
| 145 | help |
| 146 | The firmware image has to store more than just coreboot, including: |
| 147 | - a firmware descriptor |
| 148 | - Intel Management Engine firmware |
| 149 | - MRC cache information |
| 150 | This option allows to limit the size of the CBFS portion in the |
| 151 | firmware image. |
| 152 | |
| 153 | config PRE_GRAPHICS_DELAY |
| 154 | int "Graphics initialization delay in ms" |
| 155 | default 0 |
| 156 | help |
| 157 | On some systems, coreboot boots so fast that connected monitors |
| 158 | (mostly TVs) won't be able to wake up fast enough to talk to the |
| 159 | VBIOS. On those systems we need to wait for a bit before executing |
| 160 | the VBIOS. |
| 161 | |
| 162 | config RESET_ON_INVALID_RAMSTAGE_CACHE |
| 163 | bool "Reset the system on S3 wake when ramstage cache invalid." |
| 164 | default n |
| 165 | depends on RELOCATABLE_RAMSTAGE |
| 166 | help |
| 167 | The romstage code caches the loaded ramstage program in SMM space. |
| 168 | On S3 wake the romstage will copy over a fresh ramstage that was |
| 169 | cached in the SMM space. This option determines the action to take |
| 170 | when the ramstage cache is invalid. If selected the system will |
| 171 | reset otherwise the ramstage will be reloaded from cbfs. |
| 172 | |
| 173 | config MONOTONIC_TIMER_MSR |
| 174 | def_bool y |
| 175 | select HAVE_MONOTONIC_TIMER |
| 176 | help |
| 177 | Provide a monotonic timer using the 24MHz MSR counter. |
| 178 | |
Duncan Laurie | 6168027 | 2014-05-05 12:42:35 -0500 | [diff] [blame] | 179 | config INTEL_PCH_UART_CONSOLE |
| 180 | bool "Use Serial IO UART for console" |
| 181 | default n |
| 182 | select HAVE_UART_MEMORY_MAPPED |
| 183 | select CONSOLE_SERIAL8250MEM |
| 184 | depends on !CONFIG_DRIVERS_OXFORD_OXPCIE |
| 185 | |
| 186 | config INTEL_PCH_UART_CONSOLE_NUMBER |
| 187 | hex "Serial IO UART number to use for console" |
| 188 | default "0x0" |
| 189 | depends on INTEL_PCH_UART_CONSOLE |
| 190 | |
| 191 | config TTYS0_BASE |
| 192 | hex |
| 193 | default 0xd6000000 |
| 194 | depends on INTEL_PCH_UART_CONSOLE |
| 195 | |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 196 | config EHCI_BAR |
| 197 | hex |
| 198 | default 0xd8000000 |
| 199 | |
| 200 | config EHCI_DEBUG_OFFSET |
| 201 | hex |
| 202 | default 0xa0 |
| 203 | |
| 204 | config SERIRQ_CONTINUOUS_MODE |
| 205 | bool |
| 206 | default y |
| 207 | help |
| 208 | If you set this option to y, the serial IRQ machine will be |
| 209 | operated in continuous mode. |
Marc Jones | a6354a1 | 2014-12-26 22:11:14 -0700 | [diff] [blame^] | 210 | config HAVE_ME_BIN |
| 211 | bool "Add Intel Management Engine firmware" |
| 212 | default y |
| 213 | help |
| 214 | The Intel processor in the selected system requires a special firmware |
| 215 | for an integrated controller called Management Engine (ME). The ME |
| 216 | firmware might be provided in coreboot's 3rdparty repository. If |
| 217 | not and if you don't have the firmware elsewhere, you can still |
| 218 | build coreboot without it. In this case however, you'll have to make |
| 219 | sure that you don't overwrite your ME firmware on your flash ROM. |
| 220 | |
| 221 | config ME_BIN_PATH |
| 222 | string "Path to management engine firmware" |
| 223 | depends on HAVE_ME_BIN |
| 224 | default "3rdparty/mainboard/$(MAINBOARDDIR)/me.bin" |
| 225 | |
| 226 | config HAVE_IFD_BIN |
| 227 | bool |
| 228 | default n |
| 229 | |
| 230 | config BUILD_WITH_FAKE_IFD |
| 231 | bool "Build with a fake IFD" |
| 232 | default y if !HAVE_IFD_BIN |
| 233 | help |
| 234 | If you don't have an Intel Firmware Descriptor (ifd.bin) for your |
| 235 | board, you can select this option and coreboot will build without it. |
| 236 | Though, the resulting coreboot.rom will not contain all parts required |
| 237 | to get coreboot running on your board. You can however write only the |
| 238 | BIOS section to your board's flash ROM and keep the other sections |
| 239 | untouched. Unfortunately the current version of flashrom doesn't |
| 240 | support this yet. But there is a patch pending [1]. |
| 241 | |
| 242 | WARNING: Never write a complete coreboot.rom to your flash ROM if it |
| 243 | was built with a fake IFD. It just won't work. |
| 244 | |
| 245 | [1] http://www.flashrom.org/pipermail/flashrom/2013-June/011083.html |
| 246 | |
| 247 | config IFD_BIOS_SECTION |
| 248 | depends on BUILD_WITH_FAKE_IFD |
| 249 | string |
| 250 | default "" |
| 251 | |
| 252 | config IFD_ME_SECTION |
| 253 | depends on BUILD_WITH_FAKE_IFD |
| 254 | string |
| 255 | default "" |
| 256 | |
| 257 | config IFD_PLATFORM_SECTION |
| 258 | depends on BUILD_WITH_FAKE_IFD |
| 259 | string |
| 260 | default "" |
| 261 | |
| 262 | config IFD_BIN_PATH |
| 263 | string "Path to intel firmware descriptor" |
| 264 | depends on !BUILD_WITH_FAKE_IFD |
| 265 | default "3rdparty/mainboard/$(MAINBOARDDIR)/descriptor.bin" |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 266 | |
| 267 | config ME_MBP_CLEAR_LATE |
| 268 | bool "Defer wait for ME MBP Cleared" |
| 269 | default y |
| 270 | help |
| 271 | If you set this option to y, the Management Engine driver |
| 272 | will defer waiting for the MBP Cleared indicator until the |
| 273 | finalize step. This can speed up boot time if the ME takes |
| 274 | a long time to indicate this status. |
| 275 | |
| 276 | config LOCK_MANAGEMENT_ENGINE |
| 277 | bool "Lock Management Engine section" |
| 278 | default n |
| 279 | help |
| 280 | The Intel Management Engine supports preventing write accesses |
| 281 | from the host to the Management Engine section in the firmware |
| 282 | descriptor. If the ME section is locked, it can only be overwritten |
| 283 | with an external SPI flash programmer. You will want this if you |
| 284 | want to increase security of your ROM image once you are sure |
| 285 | that the ME firmware is no longer going to change. |
| 286 | |
| 287 | If unsure, say N. |
| 288 | |
| 289 | endif |