Angel Pons | 6e5aabd | 2020-03-23 23:44:42 +0100 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 2 | |
Alexandru Gagniuc | ecf2eb4 | 2015-09-28 21:39:12 -0700 | [diff] [blame] | 3 | config NORTHBRIDGE_INTEL_SANDYBRIDGE |
Vladimir Serbinenko | 309fc4c | 2014-08-24 22:35:29 +0200 | [diff] [blame] | 4 | bool |
Arthur Heymans | 7539b8c | 2017-12-24 10:42:57 +0100 | [diff] [blame] | 5 | select CACHE_MRC_SETTINGS |
Vladimir Serbinenko | 309fc4c | 2014-08-24 22:35:29 +0200 | [diff] [blame] | 6 | select CPU_INTEL_MODEL_206AX |
| 7 | select HAVE_DEBUG_RAM_SETUP |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 8 | select INTEL_GMA_ACPI |
Julius Werner | c770ad6 | 2024-06-03 17:39:01 -0700 | [diff] [blame] | 9 | select NEED_SMALL_2MB_PAGE_TABLES |
Elyes Haouas | 9ee9cd3 | 2022-10-30 10:20:33 +0100 | [diff] [blame] | 10 | select USE_DDR3 |
| 11 | |
Elyes Haouas | d2ebc4d | 2023-01-02 15:28:41 +0100 | [diff] [blame] | 12 | if NORTHBRIDGE_INTEL_SANDYBRIDGE |
| 13 | |
Arthur Heymans | 691d58f | 2021-08-11 13:42:40 +0200 | [diff] [blame] | 14 | config CHIPSET_DEVICETREE |
| 15 | default "northbridge/intel/sandybridge/chipset.cb" |
| 16 | |
Patrick Rudolph | 1ee3dbc | 2020-02-28 13:11:13 +0100 | [diff] [blame] | 17 | config SANDYBRIDGE_VBOOT_IN_ROMSTAGE |
| 18 | bool |
| 19 | default n |
| 20 | help |
| 21 | Selected by boards to force VBOOT_STARTS_IN_ROMSTAGE. |
| 22 | |
| 23 | config SANDYBRIDGE_VBOOT_IN_BOOTBLOCK |
| 24 | depends on VBOOT |
| 25 | depends on !SANDYBRIDGE_VBOOT_IN_ROMSTAGE |
| 26 | bool "Start verstage in bootblock" |
| 27 | default y |
| 28 | select VBOOT_STARTS_IN_BOOTBLOCK |
Patrick Rudolph | 1ee3dbc | 2020-02-28 13:11:13 +0100 | [diff] [blame] | 29 | help |
| 30 | Sandy Bridge can either start verstage in a separate stage |
| 31 | right after the bootblock has run or it can start it |
| 32 | after romstage for compatibility reasons. |
| 33 | Sandy Bridge however uses a mrc.bin to initialize memory which |
| 34 | needs to be located at a fixed offset. Therefore even with |
| 35 | a separate verstage starting after the bootblock that same |
| 36 | binary is used meaning a jump is made from RW to the RO region |
| 37 | and back to the RW region after the binary is done. |
| 38 | |
Julius Werner | 1210b41 | 2017-03-27 19:26:32 -0700 | [diff] [blame] | 39 | config VBOOT |
Patrick Rudolph | 1ee3dbc | 2020-02-28 13:11:13 +0100 | [diff] [blame] | 40 | select VBOOT_MUST_REQUEST_DISPLAY |
| 41 | select VBOOT_STARTS_IN_ROMSTAGE if !SANDYBRIDGE_VBOOT_IN_BOOTBLOCK |
Julius Werner | 1210b41 | 2017-03-27 19:26:32 -0700 | [diff] [blame] | 42 | |
Vladimir Serbinenko | 144eea0 | 2016-02-10 02:36:04 +0100 | [diff] [blame] | 43 | config USE_NATIVE_RAMINIT |
| 44 | bool "Use native raminit" |
| 45 | default y |
| 46 | help |
| 47 | Select if you want to use coreboot implementation of raminit rather than |
| 48 | System Agent/MRC.bin. You should answer Y. |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 49 | |
Patrick Rudolph | b794a69 | 2017-08-08 13:13:51 +0200 | [diff] [blame] | 50 | config NATIVE_RAMINIT_IGNORE_MAX_MEM_FUSES |
Angel Pons | 9802f1e | 2020-11-11 01:27:24 +0100 | [diff] [blame] | 51 | bool "[OVERCLOCK] Ignore CAPID fuses that limit max DRAM frequency" |
Patrick Rudolph | b794a69 | 2017-08-08 13:13:51 +0200 | [diff] [blame] | 52 | default n |
| 53 | depends on USE_NATIVE_RAMINIT |
| 54 | help |
Angel Pons | 9802f1e | 2020-11-11 01:27:24 +0100 | [diff] [blame] | 55 | Ignore the CAPID fuses that might limit the maximum DRAM frequency |
| 56 | on overclocking-capable parts. By selecting this option, the fuse |
| 57 | values will be ignored and the only limits on DRAM frequency are |
| 58 | determined by SPD values, per-board devicetree settings and hard |
| 59 | limits in the northbridge's MPLL. Disabled by default as it can |
| 60 | cause instability. |
| 61 | Consider this to be an overclocking option. Handle with care! |
Patrick Rudolph | b794a69 | 2017-08-08 13:13:51 +0200 | [diff] [blame] | 62 | |
Vagiz Trakhanov | 771be48 | 2017-10-02 10:02:35 +0000 | [diff] [blame] | 63 | config NATIVE_RAMINIT_IGNORE_XMP_MAX_DIMMS |
Angel Pons | 9802f1e | 2020-11-11 01:27:24 +0100 | [diff] [blame] | 64 | bool "[OVERCLOCK] Ignore XMP max DIMMs per channel" |
Vagiz Trakhanov | 771be48 | 2017-10-02 10:02:35 +0000 | [diff] [blame] | 65 | default n |
| 66 | depends on USE_NATIVE_RAMINIT |
| 67 | help |
Angel Pons | 9802f1e | 2020-11-11 01:27:24 +0100 | [diff] [blame] | 68 | The more DIMMs are in a channel, the more signal integrity worsens. |
| 69 | Because of this, some DIMMs only support running at XMP timings if |
| 70 | the number of DIMMs in the channel is below a limit. This limit is |
| 71 | usually 1, i.e. there must be no other DIMMs in the channel to use |
| 72 | XMP timings. Otherwise, non-XMP timings are used. |
| 73 | When this option is enabled, the max DIMMs per channel restriction |
| 74 | in XMP is ignored. Depending on available margins, this could work |
| 75 | but it can also result in system instability. |
| 76 | Consider this to be an overclocking option. Handle with care! |
Vagiz Trakhanov | 771be48 | 2017-10-02 10:02:35 +0000 | [diff] [blame] | 77 | |
Angel Pons | 3170e9c | 2020-12-12 16:22:18 +0100 | [diff] [blame] | 78 | config NATIVE_RAMINIT_IGNORE_XMP_REQUESTED_VOLTAGE |
| 79 | bool "Ignore XMP profile requested voltage" |
| 80 | default n |
| 81 | depends on USE_NATIVE_RAMINIT |
| 82 | help |
| 83 | Native raminit only supports 1.5V operation, but there are DIMMs |
| 84 | which request 1.65V operation in XMP profiles. This option allows |
| 85 | raminit to use these XMP profiles anyway, instead of falling back |
| 86 | to non-XMP settings. |
| 87 | Disabled by default because it allows forcing memory to run out of |
| 88 | specification. Consider this to be an overclocking option. |
| 89 | Handle with care! |
| 90 | |
Martin Roth | 59ff340 | 2016-02-09 09:06:46 -0700 | [diff] [blame] | 91 | config CBFS_SIZE |
Martin Roth | 59ff340 | 2016-02-09 09:06:46 -0700 | [diff] [blame] | 92 | default 0x100000 |
| 93 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 94 | config VGA_BIOS_ID |
| 95 | string |
| 96 | default "8086,0106" |
| 97 | |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 98 | config ECAM_MMCONF_BASE_ADDRESS |
Nico Huber | 2b5c021 | 2017-07-29 01:10:49 +0200 | [diff] [blame] | 99 | default 0xf0000000 |
| 100 | help |
Arthur Heymans | 742a0e9 | 2018-01-29 16:34:46 +0100 | [diff] [blame] | 101 | The MRC blob requires it to be at 0xf0000000. |
Nico Huber | 2b5c021 | 2017-07-29 01:10:49 +0200 | [diff] [blame] | 102 | |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 103 | config ECAM_MMCONF_BUS_NUMBER |
Angel Pons | 10f9b83 | 2021-01-20 14:58:32 +0100 | [diff] [blame] | 104 | int |
| 105 | default 64 |
| 106 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 107 | config DCACHE_RAM_BASE |
| 108 | hex |
Kyösti Mälkki | 9551bed | 2016-07-20 10:49:38 +0300 | [diff] [blame] | 109 | default 0xfefe0000 |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 110 | |
Arthur Heymans | 67d59d1 | 2019-11-16 20:06:20 +0100 | [diff] [blame] | 111 | config DCACHE_BSP_STACK_SIZE |
| 112 | hex |
Arthur Heymans | 8d82109 | 2019-11-25 06:56:04 +0100 | [diff] [blame] | 113 | default 0x10000 |
| 114 | help |
| 115 | The amount of BSP stack anticipated in bootblock and |
| 116 | other stages. |
Arthur Heymans | 01c83a2 | 2019-06-05 13:36:55 +0200 | [diff] [blame] | 117 | |
| 118 | if USE_NATIVE_RAMINIT |
| 119 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 120 | config DCACHE_RAM_SIZE |
| 121 | hex |
| 122 | default 0x20000 |
| 123 | |
Kyösti Mälkki | 9551bed | 2016-07-20 10:49:38 +0300 | [diff] [blame] | 124 | config DCACHE_RAM_MRC_VAR_SIZE |
| 125 | hex |
| 126 | default 0x0 |
| 127 | |
Angel Pons | 09fc4b9 | 2020-11-19 12:02:07 +0100 | [diff] [blame] | 128 | config RAMINIT_ALWAYS_ALLOW_DLL_OFF |
| 129 | bool "Also enable memory DLL-off mode on desktops and servers" |
| 130 | default n |
| 131 | help |
| 132 | If enabled, allow enabling DLL-off mode for platforms other than |
| 133 | mobile. Saves power at the expense of higher exit latencies. Has |
| 134 | no effect on mobile platforms, where DLL-off is always allowed. |
| 135 | Power down is disabled for stability when running at high clocks. |
| 136 | |
Patrick Rudolph | dd66287 | 2017-10-28 18:20:11 +0200 | [diff] [blame] | 137 | config RAMINIT_ENABLE_ECC |
| 138 | bool "Enable ECC if supported" |
| 139 | default y |
| 140 | help |
| 141 | Enable ECC if supported by both, host and RAM. |
| 142 | |
Kyösti Mälkki | 9551bed | 2016-07-20 10:49:38 +0300 | [diff] [blame] | 143 | endif # USE_NATIVE_RAMINIT |
| 144 | |
| 145 | if !USE_NATIVE_RAMINIT |
| 146 | |
Kyösti Mälkki | 9551bed | 2016-07-20 10:49:38 +0300 | [diff] [blame] | 147 | config DCACHE_RAM_SIZE |
| 148 | hex |
Arthur Heymans | 01c83a2 | 2019-06-05 13:36:55 +0200 | [diff] [blame] | 149 | default 0x17000 |
Kyösti Mälkki | fbdb085 | 2013-07-01 11:21:53 +0300 | [diff] [blame] | 150 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 151 | config DCACHE_RAM_MRC_VAR_SIZE |
| 152 | hex |
Arthur Heymans | 01c83a2 | 2019-06-05 13:36:55 +0200 | [diff] [blame] | 153 | default 0x9000 |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 154 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 155 | config MRC_FILE |
| 156 | string "Intel System Agent path and filename" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 157 | default "3rdparty/blobs/northbridge/intel/sandybridge/systemagent-r6.bin" |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 158 | help |
| 159 | The path and filename of the file to use as System Agent |
| 160 | binary. |
| 161 | |
Kyösti Mälkki | 9551bed | 2016-07-20 10:49:38 +0300 | [diff] [blame] | 162 | endif # !USE_NATIVE_RAMINIT |
Kyösti Mälkki | 0306e6a | 2016-06-23 12:41:40 +0300 | [diff] [blame] | 163 | |
Nico Huber | 612a867 | 2019-02-19 19:11:29 +0100 | [diff] [blame] | 164 | config INTEL_GMA_BCLV_OFFSET |
| 165 | default 0x48254 |
| 166 | |
Angel Pons | d9e58dc | 2021-01-20 01:22:20 +0100 | [diff] [blame] | 167 | config FIXED_MCHBAR_MMIO_BASE |
| 168 | default 0xfed10000 |
| 169 | |
| 170 | config FIXED_DMIBAR_MMIO_BASE |
| 171 | default 0xfed18000 |
| 172 | |
| 173 | config FIXED_EPBAR_MMIO_BASE |
| 174 | default 0xfed19000 |
| 175 | |
Jeremy Compostella | 052fb7c | 2023-08-18 14:25:22 -0700 | [diff] [blame] | 176 | config PRERAM_CBFS_CACHE_SIZE |
| 177 | default 0x0 |
| 178 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 179 | endif |