Elyes HAOUAS | 36787b0 | 2020-05-07 12:07:24 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 2 | |
| 3 | config NORTHBRIDGE_INTEL_HASWELL |
| 4 | bool |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 5 | select CPU_INTEL_HASWELL |
Arthur Heymans | f300f36 | 2018-01-27 13:39:12 +0100 | [diff] [blame] | 6 | select CACHE_MRC_SETTINGS |
Furquan Shaikh | 77f48cd | 2013-08-19 10:16:50 -0700 | [diff] [blame] | 7 | select INTEL_DDI |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 8 | select INTEL_GMA_ACPI |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 9 | |
| 10 | if NORTHBRIDGE_INTEL_HASWELL |
| 11 | |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 12 | config HASWELL_VBOOT_IN_BOOTBLOCK |
| 13 | depends on VBOOT |
| 14 | bool "Start verstage in bootblock" |
| 15 | default y |
| 16 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 17 | select VBOOT_SEPARATE_VERSTAGE |
| 18 | help |
| 19 | Haswell can either start verstage in a separate stage |
| 20 | right after the bootblock has run or it can start it |
| 21 | after romstage for compatibility reasons. |
Joel Kitching | 82d73e2 | 2019-04-30 13:13:40 +0800 | [diff] [blame] | 22 | Haswell however uses a mrc.bin to initialize memory which |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 23 | needs to be located at a fixed offset. Therefore even with |
| 24 | a separate verstage starting after the bootblock that same |
| 25 | binary is used meaning a jump is made from RW to the RO region |
| 26 | and back to the RW region after the binary is done. |
| 27 | |
Julius Werner | 1210b41 | 2017-03-27 19:26:32 -0700 | [diff] [blame] | 28 | config VBOOT |
Joel Kitching | 6672bd8 | 2019-04-10 16:06:21 +0800 | [diff] [blame] | 29 | select VBOOT_MUST_REQUEST_DISPLAY |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 30 | select VBOOT_STARTS_IN_ROMSTAGE if !HASWELL_VBOOT_IN_BOOTBLOCK |
Julius Werner | 1210b41 | 2017-03-27 19:26:32 -0700 | [diff] [blame] | 31 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 32 | config VGA_BIOS_ID |
| 33 | string |
| 34 | default "8086,0166" |
| 35 | |
Elyes HAOUAS | ef169d6 | 2018-09-14 10:28:52 +0200 | [diff] [blame] | 36 | config MMCONF_BASE_ADDRESS |
| 37 | hex |
| 38 | default 0xf0000000 |
| 39 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 40 | config DCACHE_RAM_BASE |
| 41 | hex |
Aaron Durbin | 3d0071b | 2013-01-18 14:32:50 -0600 | [diff] [blame] | 42 | default 0xff7c0000 |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 43 | |
| 44 | config DCACHE_RAM_SIZE |
| 45 | hex |
Aaron Durbin | 3d0071b | 2013-01-18 14:32:50 -0600 | [diff] [blame] | 46 | default 0x10000 |
| 47 | help |
| 48 | The size of the cache-as-ram region required during bootblock |
| 49 | and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE |
| 50 | must add up to a power of 2. |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 51 | |
| 52 | config DCACHE_RAM_MRC_VAR_SIZE |
| 53 | hex |
Aaron Durbin | 3d0071b | 2013-01-18 14:32:50 -0600 | [diff] [blame] | 54 | default 0x30000 |
| 55 | help |
| 56 | The amount of cache-as-ram region required by the reference code. |
| 57 | |
Arthur Heymans | 8e646e7 | 2018-06-05 11:19:22 +0200 | [diff] [blame] | 58 | config DCACHE_BSP_STACK_SIZE |
| 59 | hex |
| 60 | default 0x2000 |
| 61 | help |
| 62 | The amount of anticipated stack usage in CAR by bootblock and |
| 63 | other stages. |
| 64 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 65 | config HAVE_MRC |
| 66 | bool "Add a System Agent binary" |
| 67 | help |
| 68 | Select this option to add a System Agent binary to |
| 69 | the resulting coreboot image. |
| 70 | |
| 71 | Note: Without this binary coreboot will not work |
| 72 | |
| 73 | config MRC_FILE |
| 74 | string "Intel System Agent path and filename" |
| 75 | depends on HAVE_MRC |
| 76 | default "mrc.bin" |
| 77 | help |
| 78 | The path and filename of the file to use as System Agent |
| 79 | binary. |
| 80 | |
Angel Pons | 84641c8 | 2020-08-29 02:52:09 +0200 | [diff] [blame^] | 81 | config HASWELL_HIDE_PEG_FROM_MRC |
| 82 | bool "Hide PEG devices from MRC to work around hardcoded MRC behavior" |
| 83 | default y |
| 84 | help |
| 85 | If set, hides all PEG devices from MRC. This allows the iGPU |
| 86 | to be used even when a dedicated graphics card is present. |
| 87 | However, it prevents MRC from programming PEG AFE registers, |
| 88 | which can make PEG devices unstable. When unsure, choose N. |
| 89 | |
Stefan Reinauer | f1aabec | 2014-01-22 15:16:30 -0800 | [diff] [blame] | 90 | config PRE_GRAPHICS_DELAY |
Stefan Reinauer | 7034b9e | 2014-02-11 16:18:07 -0800 | [diff] [blame] | 91 | int "Graphics initialization delay in ms" |
Stefan Reinauer | f1aabec | 2014-01-22 15:16:30 -0800 | [diff] [blame] | 92 | default 0 |
| 93 | help |
| 94 | On some systems, coreboot boots so fast that connected monitors |
| 95 | (mostly TVs) won't be able to wake up fast enough to talk to the |
| 96 | VBIOS. On those systems we need to wait for a bit before executing |
| 97 | the VBIOS. |
| 98 | |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 99 | # The UEFI System Agent binary needs to be at a fixed offset in the flash |
| 100 | # and can therefore only reside in the COREBOOT fmap region |
| 101 | config RO_REGION_ONLY |
| 102 | string |
| 103 | depends on VBOOT |
| 104 | default "mrc.bin" |
| 105 | |
Nico Huber | 612a867 | 2019-02-19 19:11:29 +0100 | [diff] [blame] | 106 | config INTEL_GMA_BCLV_OFFSET |
| 107 | default 0x48254 |
| 108 | |
Angel Pons | 1be9f58 | 2020-07-03 21:31:17 +0200 | [diff] [blame] | 109 | config ENABLE_DDR_2X_REFRESH |
| 110 | bool "Enable DRAM Refresh 2x support" |
| 111 | default n |
| 112 | help |
| 113 | When enabled, the memory controller will refresh the DRAM twice as often. |
| 114 | This probably only happens when the DRAM gets hot, but what MRC exactly |
| 115 | does when this setting is enabled has not been investigated. |
| 116 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 117 | endif |