Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Elyes Haouas | 171ad51 | 2023-08-04 07:42:33 +0200 | [diff] [blame] | 3 | config SOC_INTEL_SAPPHIRERAPIDS_SP |
| 4 | bool |
Subrata Banik | 1b96bff | 2023-09-02 19:16:52 +0000 | [diff] [blame] | 5 | select FSP_NVS_DATA_POST_SILICON_INIT |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 6 | select MICROCODE_BLOB_NOT_HOOKED_UP |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 7 | select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION |
Tim Chu | ac04c21 | 2023-02-24 09:20:41 +0000 | [diff] [blame] | 8 | select DISABLE_ACPI_HIBERNATE |
Patrick Rudolph | ae90fc0 | 2023-04-04 10:04:07 +0200 | [diff] [blame] | 9 | select DEFAULT_X2APIC_RUNTIME |
Elyes Haouas | 171ad51 | 2023-08-04 07:42:33 +0200 | [diff] [blame] | 10 | select CACHE_MRC_SETTINGS |
| 11 | select CPU_INTEL_TURBO_NOT_PACKAGE_SCOPED |
| 12 | select PLATFORM_USES_FSP2_3 |
| 13 | select SOC_INTEL_CSE_SERVER_SKU |
| 14 | select XEON_SP_COMMON_BASE |
| 15 | help |
| 16 | Intel Sapphire Rapids-SP support |
| 17 | |
| 18 | if SOC_INTEL_SAPPHIRERAPIDS_SP |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 19 | |
Tim Chu | 68107dd | 2023-02-17 03:00:39 +0000 | [diff] [blame] | 20 | config CHIPSET_DEVICETREE |
| 21 | string |
| 22 | default "soc/intel/xeon_sp/spr/chipset.cb" |
| 23 | |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 24 | config FSP_HEADER_PATH |
| 25 | string "Location of FSP headers" |
| 26 | depends on MAINBOARD_USES_FSP2_0 |
| 27 | default "src/vendorcode/intel/fsp/fsp2_0/sapphirerapids_sp" |
| 28 | |
| 29 | config MAX_CPUS |
| 30 | int |
| 31 | default 255 |
| 32 | |
Naresh Solanki | 12bfe6b | 2023-02-08 17:02:50 +0100 | [diff] [blame] | 33 | config ACPI_CPU_STRING |
| 34 | string |
Felix Held | f0a8b04 | 2023-05-12 15:55:06 +0200 | [diff] [blame] | 35 | default "C%03X" |
Naresh Solanki | 12bfe6b | 2023-02-08 17:02:50 +0100 | [diff] [blame] | 36 | |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 37 | config PCR_BASE_ADDRESS |
| 38 | hex |
| 39 | default 0xfd000000 |
| 40 | help |
| 41 | This option allows you to select MMIO Base Address of sideband bus. |
| 42 | |
| 43 | config DCACHE_RAM_BASE |
| 44 | hex |
| 45 | default 0xfe800000 |
| 46 | |
| 47 | config DCACHE_RAM_SIZE |
| 48 | hex |
| 49 | default 0x1fff00 |
| 50 | help |
| 51 | The size of the cache-as-ram region required during bootblock |
| 52 | and/or romstage. FSP-T reserves the upper 0x100 for |
| 53 | FspReservedBuffer. |
| 54 | |
| 55 | config DCACHE_BSP_STACK_SIZE |
| 56 | hex |
| 57 | default 0x40000 |
| 58 | help |
| 59 | The amount of anticipated stack usage in CAR by bootblock and |
| 60 | other stages. It needs to include FSP-M stack requirement and |
| 61 | CB romstage stack requirement. The integration documentation |
| 62 | says this needs to be 256KiB. |
| 63 | |
| 64 | config FSP_M_RC_HEAP_SIZE |
| 65 | hex |
| 66 | default 0x150000 |
| 67 | help |
| 68 | On xeon_sp/spr FSP-M has two separate heap managers, one regular |
| 69 | whose size and base are controllable via the StackBase and |
| 70 | StackSize UPDs and a 'rc' heap manager that is statically |
| 71 | allocated at 0xfe800000 (the CAR base) and consumes about 0x150000 |
| 72 | bytes of memory. |
| 73 | |
| 74 | config CPU_MICROCODE_CBFS_LOC |
| 75 | hex |
| 76 | default 0xffe0fdc0 |
| 77 | |
| 78 | config CPU_MICROCODE_CBFS_LEN |
| 79 | hex |
| 80 | default 0x8c00 |
| 81 | |
Patrick Georgi | acbc491 | 2023-11-06 17:22:34 +0000 | [diff] [blame] | 82 | config HEAP_SIZE |
| 83 | hex |
| 84 | default 0x80000 |
| 85 | |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 86 | config STACK_SIZE |
| 87 | hex |
| 88 | default 0x4000 |
| 89 | |
| 90 | config FSP_TEMP_RAM_SIZE |
| 91 | hex |
| 92 | depends on FSP_USES_CB_STACK |
| 93 | default 0x60000 |
| 94 | help |
| 95 | The amount of anticipated heap usage in CAR by FSP. |
| 96 | Refer to Platform FSP integration guide document to know |
| 97 | the exact FSP requirement for Heap setup. The FSP integration |
| 98 | documentation says this needs to be at least 128KiB, but practice |
| 99 | show this needs to be 256KiB or more. |
| 100 | |
| 101 | config IED_REGION_SIZE |
| 102 | hex |
| 103 | default 0x400000 |
| 104 | |
| 105 | config IFD_CHIPSET |
| 106 | string |
| 107 | default "lbg" |
| 108 | |
| 109 | config SOC_INTEL_COMMON_BLOCK_P2SB |
| 110 | def_bool y |
| 111 | |
| 112 | config SOC_INTEL_HAS_BIOS_DONE_MSR |
| 113 | def_bool y |
| 114 | |
| 115 | config SOC_INTEL_HAS_NCMEM |
| 116 | def_bool y |
| 117 | |
| 118 | config SOC_INTEL_HAS_CXL |
| 119 | def_bool y |
| 120 | |
| 121 | config SOC_INTEL_PCIE_64BIT_ALLOC |
| 122 | def_bool y |
| 123 | |
| 124 | config SOC_INTEL_MMAPVTD_ONLY_FOR_DPR |
| 125 | def_bool y |
| 126 | |
| 127 | config CPU_BCLK_MHZ |
| 128 | int |
| 129 | default 100 |
| 130 | |
| 131 | # SPR-SP has 4 IMCs, 2 channels per IMC, 2 DIMMs per channel |
| 132 | # Default value is set to two sockets, full config. |
| 133 | config MAX_IMC |
| 134 | int |
| 135 | default 4 |
| 136 | |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 137 | config DIMM_MAX |
| 138 | int |
| 139 | default 32 |
| 140 | |
| 141 | # DDR4 |
| 142 | config DIMM_SPD_SIZE |
| 143 | int |
| 144 | default 1024 |
| 145 | |
| 146 | config MAX_ACPI_TABLE_SIZE_KB |
| 147 | int |
Patrick Rudolph | 8bbadde | 2023-09-07 10:06:18 +0200 | [diff] [blame] | 148 | default 512 if MAX_SOCKET = 4 |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 149 | default 224 |
| 150 | |
| 151 | config FIXED_SMBUS_IO_BASE |
| 152 | default 0x780 |
| 153 | |
| 154 | config DISPLAY_UPD_IIO_DATA |
| 155 | def_bool n |
| 156 | depends on DISPLAY_UPD_DATA |
| 157 | |
| 158 | if INTEL_TXT |
| 159 | |
| 160 | config INTEL_TXT_SINIT_SIZE |
| 161 | hex |
| 162 | default 0x50000 |
| 163 | help |
| 164 | According to document number 572782 this needs to be 256KiB |
| 165 | for the SINIT module and 64KiB for SINIT data. |
| 166 | |
| 167 | config INTEL_TXT_HEAP_SIZE |
| 168 | hex |
| 169 | default 0xf0000 |
| 170 | help |
| 171 | This must be 960KiB according to 572782. |
| 172 | |
| 173 | endif # INTEL_TXT |
| 174 | |
Naresh Solanki | c733808 | 2023-05-24 10:29:45 +0200 | [diff] [blame] | 175 | config ENABLE_IO_MARGINING |
| 176 | bool "Enable IO Margining" |
| 177 | default n |
| 178 | depends on !PCIEXP_ASPM |
| 179 | help |
| 180 | Enable support for I/O margining. This is mutually exclusive with |
| 181 | ASPM. This option is intended for debugging and validation and |
| 182 | should normally be disabled. |
| 183 | |
Naresh Solanki | 82390fa | 2023-05-24 11:24:28 +0200 | [diff] [blame] | 184 | config ENABLE_RMT |
| 185 | bool "Enable RMT" |
| 186 | default n |
| 187 | help |
| 188 | Enable Rank Margining Tool. This option is intended for debugging and |
| 189 | validation and should normally be disabled. |
Naresh Solanki | 93ffdee5 | 2023-10-06 14:35:58 +0200 | [diff] [blame] | 190 | |
| 191 | config RMT_MEM_POR_FREQ |
| 192 | bool "Enforce Plan Of Record restrictions for DDR5 frequency and voltage" |
| 193 | default n |
| 194 | depends on ENABLE_RMT |
| 195 | help |
| 196 | When RMT is enabled. Select this option to enforce Intel Plan Of Record(POR) |
| 197 | restriction on DDR5 frequency & voltage settings. |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 198 | endif |