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 |
Elyes Haouas | 06545e0 | 2022-12-31 07:55:58 +0100 | [diff] [blame] | 9 | select USE_DDR3 |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 10 | |
| 11 | if NORTHBRIDGE_INTEL_HASWELL |
| 12 | |
Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 13 | config USE_NATIVE_RAMINIT |
| 14 | bool "[NOT WORKING] Use native raminit" |
| 15 | default n |
| 16 | select HAVE_DEBUG_RAM_SETUP |
| 17 | help |
| 18 | Select if you want to use coreboot implementation of raminit rather than |
| 19 | MRC.bin. Currently incomplete and does not boot. |
| 20 | |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 21 | config HASWELL_VBOOT_IN_BOOTBLOCK |
| 22 | depends on VBOOT |
| 23 | bool "Start verstage in bootblock" |
| 24 | default y |
| 25 | select VBOOT_STARTS_IN_BOOTBLOCK |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 26 | help |
| 27 | Haswell can either start verstage in a separate stage |
| 28 | right after the bootblock has run or it can start it |
| 29 | after romstage for compatibility reasons. |
Joel Kitching | 82d73e2 | 2019-04-30 13:13:40 +0800 | [diff] [blame] | 30 | Haswell however uses a mrc.bin to initialize memory which |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 31 | needs to be located at a fixed offset. Therefore even with |
| 32 | a separate verstage starting after the bootblock that same |
| 33 | binary is used meaning a jump is made from RW to the RO region |
| 34 | and back to the RW region after the binary is done. |
| 35 | |
Angel Pons | 6c42d14 | 2021-06-14 13:53:44 +0200 | [diff] [blame] | 36 | config USE_BROADWELL_MRC |
| 37 | bool "Use Broadwell MRC.bin" |
| 38 | depends on !USE_NATIVE_RAMINIT |
| 39 | help |
| 40 | Haswell MRC.bin has several limitations: it does not support |
| 41 | Broadwell CPUs nor 9-series PCHs, it does not initialise PEG |
| 42 | ports properly and it can't use more than one SPD file entry |
| 43 | at the same time (which would be useful for memory overclock |
| 44 | when using different DIMMs, without patching SPD EEPROMs). A |
| 45 | workaround for some of these limitations is to use Broadwell |
| 46 | MRC.bin instead. |
| 47 | |
Julius Werner | 1210b41 | 2017-03-27 19:26:32 -0700 | [diff] [blame] | 48 | config VBOOT |
Joel Kitching | 6672bd8 | 2019-04-10 16:06:21 +0800 | [diff] [blame] | 49 | select VBOOT_MUST_REQUEST_DISPLAY |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 50 | select VBOOT_STARTS_IN_ROMSTAGE if !HASWELL_VBOOT_IN_BOOTBLOCK |
Julius Werner | 1210b41 | 2017-03-27 19:26:32 -0700 | [diff] [blame] | 51 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 52 | config VGA_BIOS_ID |
| 53 | string |
| 54 | default "8086,0166" |
| 55 | |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 56 | config ECAM_MMCONF_BASE_ADDRESS |
Elyes HAOUAS | ef169d6 | 2018-09-14 10:28:52 +0200 | [diff] [blame] | 57 | default 0xf0000000 |
| 58 | |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 59 | config ECAM_MMCONF_BUS_NUMBER |
Angel Pons | 32770f8 | 2021-01-20 15:03:30 +0100 | [diff] [blame] | 60 | int |
| 61 | default 64 |
| 62 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 63 | config DCACHE_RAM_BASE |
| 64 | hex |
Aaron Durbin | 3d0071b | 2013-01-18 14:32:50 -0600 | [diff] [blame] | 65 | default 0xff7c0000 |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 66 | |
| 67 | config DCACHE_RAM_SIZE |
| 68 | hex |
Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 69 | default 0x40000 if USE_NATIVE_RAMINIT |
Aaron Durbin | 3d0071b | 2013-01-18 14:32:50 -0600 | [diff] [blame] | 70 | default 0x10000 |
| 71 | help |
| 72 | The size of the cache-as-ram region required during bootblock |
| 73 | and/or romstage. Note DCACHE_RAM_SIZE and DCACHE_RAM_MRC_VAR_SIZE |
| 74 | must add up to a power of 2. |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 75 | |
| 76 | config DCACHE_RAM_MRC_VAR_SIZE |
| 77 | hex |
Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 78 | default 0x0 if USE_NATIVE_RAMINIT |
Aaron Durbin | 3d0071b | 2013-01-18 14:32:50 -0600 | [diff] [blame] | 79 | default 0x30000 |
| 80 | help |
| 81 | The amount of cache-as-ram region required by the reference code. |
| 82 | |
Arthur Heymans | 8e646e7 | 2018-06-05 11:19:22 +0200 | [diff] [blame] | 83 | config DCACHE_BSP_STACK_SIZE |
| 84 | hex |
Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 85 | default 0x20000 if USE_NATIVE_RAMINIT |
Arthur Heymans | 8e646e7 | 2018-06-05 11:19:22 +0200 | [diff] [blame] | 86 | default 0x2000 |
| 87 | help |
| 88 | The amount of anticipated stack usage in CAR by bootblock and |
| 89 | other stages. |
| 90 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 91 | config HAVE_MRC |
| 92 | bool "Add a System Agent binary" |
Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 93 | depends on !USE_NATIVE_RAMINIT |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 94 | help |
| 95 | Select this option to add a System Agent binary to |
| 96 | the resulting coreboot image. |
| 97 | |
| 98 | Note: Without this binary coreboot will not work |
| 99 | |
| 100 | config MRC_FILE |
| 101 | string "Intel System Agent path and filename" |
| 102 | depends on HAVE_MRC |
| 103 | default "mrc.bin" |
| 104 | help |
| 105 | The path and filename of the file to use as System Agent |
| 106 | binary. |
| 107 | |
Angel Pons | 84641c8 | 2020-08-29 02:52:09 +0200 | [diff] [blame] | 108 | config HASWELL_HIDE_PEG_FROM_MRC |
| 109 | bool "Hide PEG devices from MRC to work around hardcoded MRC behavior" |
Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 110 | depends on !USE_NATIVE_RAMINIT |
Angel Pons | 84641c8 | 2020-08-29 02:52:09 +0200 | [diff] [blame] | 111 | default y |
| 112 | help |
| 113 | If set, hides all PEG devices from MRC. This allows the iGPU |
| 114 | to be used even when a dedicated graphics card is present. |
| 115 | However, it prevents MRC from programming PEG AFE registers, |
| 116 | which can make PEG devices unstable. When unsure, choose N. |
| 117 | |
Arthur Heymans | 77d5e74 | 2019-01-03 21:11:45 +0100 | [diff] [blame] | 118 | # The UEFI System Agent binary needs to be at a fixed offset in the flash |
| 119 | # and can therefore only reside in the COREBOOT fmap region |
| 120 | config RO_REGION_ONLY |
| 121 | string |
| 122 | depends on VBOOT |
| 123 | default "mrc.bin" |
| 124 | |
Nico Huber | 612a867 | 2019-02-19 19:11:29 +0100 | [diff] [blame] | 125 | config INTEL_GMA_BCLV_OFFSET |
| 126 | default 0x48254 |
| 127 | |
Angel Pons | 1be9f58 | 2020-07-03 21:31:17 +0200 | [diff] [blame] | 128 | config ENABLE_DDR_2X_REFRESH |
| 129 | bool "Enable DRAM Refresh 2x support" |
| 130 | default n |
| 131 | help |
| 132 | When enabled, the memory controller will refresh the DRAM twice as often. |
| 133 | This probably only happens when the DRAM gets hot, but what MRC exactly |
| 134 | does when this setting is enabled has not been investigated. |
| 135 | |
Angel Pons | f95b9b4 | 2021-01-20 01:10:48 +0100 | [diff] [blame] | 136 | config FIXED_MCHBAR_MMIO_BASE |
| 137 | default 0xfed10000 |
| 138 | |
| 139 | config FIXED_DMIBAR_MMIO_BASE |
| 140 | default 0xfed18000 |
| 141 | |
| 142 | config FIXED_EPBAR_MMIO_BASE |
| 143 | default 0xfed19000 |
| 144 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 145 | endif |