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