Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | if SOC_INTEL_SAPPHIRERAPIDS_SP |
| 4 | |
| 5 | config SOC_SPECIFIC_OPTIONS |
| 6 | def_bool y |
| 7 | select MICROCODE_BLOB_NOT_HOOKED_UP |
| 8 | select SAVE_MRC_AFTER_FSPS |
| 9 | select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION |
Tim Chu | ac04c21 | 2023-02-24 09:20:41 +0000 | [diff] [blame] | 10 | select DISABLE_ACPI_HIBERNATE |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 11 | |
Tim Chu | 68107dd | 2023-02-17 03:00:39 +0000 | [diff] [blame] | 12 | config CHIPSET_DEVICETREE |
| 13 | string |
| 14 | default "soc/intel/xeon_sp/spr/chipset.cb" |
| 15 | |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 16 | config FSP_HEADER_PATH |
| 17 | string "Location of FSP headers" |
| 18 | depends on MAINBOARD_USES_FSP2_0 |
| 19 | default "src/vendorcode/intel/fsp/fsp2_0/sapphirerapids_sp" |
| 20 | |
| 21 | config MAX_CPUS |
| 22 | int |
| 23 | default 255 |
| 24 | |
Naresh Solanki | 12bfe6b | 2023-02-08 17:02:50 +0100 | [diff] [blame] | 25 | config ACPI_CPU_STRING |
| 26 | string |
| 27 | default "\\_SB.C%03X" |
| 28 | |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 29 | config MAX_SOCKET_UPD |
| 30 | int |
| 31 | default 2 |
| 32 | help |
| 33 | This is used for configuring common SPR UPD tables which their sizes |
| 34 | depend on the socket number. Since it's the maximal socket number for |
| 35 | the common UPD tables, mainboard should not overwrite it. |
| 36 | |
| 37 | config SIPI_FINAL_TIMEOUT |
| 38 | int |
| 39 | default 400000 |
| 40 | |
| 41 | config PCR_BASE_ADDRESS |
| 42 | hex |
| 43 | default 0xfd000000 |
| 44 | help |
| 45 | This option allows you to select MMIO Base Address of sideband bus. |
| 46 | |
| 47 | config DCACHE_RAM_BASE |
| 48 | hex |
| 49 | default 0xfe800000 |
| 50 | |
| 51 | config DCACHE_RAM_SIZE |
| 52 | hex |
| 53 | default 0x1fff00 |
| 54 | help |
| 55 | The size of the cache-as-ram region required during bootblock |
| 56 | and/or romstage. FSP-T reserves the upper 0x100 for |
| 57 | FspReservedBuffer. |
| 58 | |
| 59 | config DCACHE_BSP_STACK_SIZE |
| 60 | hex |
| 61 | default 0x40000 |
| 62 | help |
| 63 | The amount of anticipated stack usage in CAR by bootblock and |
| 64 | other stages. It needs to include FSP-M stack requirement and |
| 65 | CB romstage stack requirement. The integration documentation |
| 66 | says this needs to be 256KiB. |
| 67 | |
| 68 | config FSP_M_RC_HEAP_SIZE |
| 69 | hex |
| 70 | default 0x150000 |
| 71 | help |
| 72 | On xeon_sp/spr FSP-M has two separate heap managers, one regular |
| 73 | whose size and base are controllable via the StackBase and |
| 74 | StackSize UPDs and a 'rc' heap manager that is statically |
| 75 | allocated at 0xfe800000 (the CAR base) and consumes about 0x150000 |
| 76 | bytes of memory. |
| 77 | |
| 78 | config CPU_MICROCODE_CBFS_LOC |
| 79 | hex |
| 80 | default 0xffe0fdc0 |
| 81 | |
| 82 | config CPU_MICROCODE_CBFS_LEN |
| 83 | hex |
| 84 | default 0x8c00 |
| 85 | |
| 86 | config HEAP_SIZE |
| 87 | hex |
| 88 | default 0x80000 |
| 89 | |
| 90 | config STACK_SIZE |
| 91 | hex |
| 92 | default 0x4000 |
| 93 | |
| 94 | config FSP_TEMP_RAM_SIZE |
| 95 | hex |
| 96 | depends on FSP_USES_CB_STACK |
| 97 | default 0x60000 |
| 98 | help |
| 99 | The amount of anticipated heap usage in CAR by FSP. |
| 100 | Refer to Platform FSP integration guide document to know |
| 101 | the exact FSP requirement for Heap setup. The FSP integration |
| 102 | documentation says this needs to be at least 128KiB, but practice |
| 103 | show this needs to be 256KiB or more. |
| 104 | |
| 105 | config IED_REGION_SIZE |
| 106 | hex |
| 107 | default 0x400000 |
| 108 | |
| 109 | config IFD_CHIPSET |
| 110 | string |
| 111 | default "lbg" |
| 112 | |
| 113 | config SOC_INTEL_COMMON_BLOCK_P2SB |
| 114 | def_bool y |
| 115 | |
| 116 | config SOC_INTEL_HAS_BIOS_DONE_MSR |
| 117 | def_bool y |
| 118 | |
| 119 | config SOC_INTEL_HAS_NCMEM |
| 120 | def_bool y |
| 121 | |
| 122 | config SOC_INTEL_HAS_CXL |
| 123 | def_bool y |
| 124 | |
| 125 | config SOC_INTEL_PCIE_64BIT_ALLOC |
| 126 | def_bool y |
| 127 | |
| 128 | config SOC_INTEL_MMAPVTD_ONLY_FOR_DPR |
| 129 | def_bool y |
| 130 | |
| 131 | config CPU_BCLK_MHZ |
| 132 | int |
| 133 | default 100 |
| 134 | |
| 135 | # SPR-SP has 4 IMCs, 2 channels per IMC, 2 DIMMs per channel |
| 136 | # Default value is set to two sockets, full config. |
| 137 | config MAX_IMC |
| 138 | int |
| 139 | default 4 |
| 140 | |
| 141 | config MAX_MC_CHN |
| 142 | int |
| 143 | default 2 |
| 144 | |
| 145 | config DIMM_MAX |
| 146 | int |
| 147 | default 32 |
| 148 | |
| 149 | # DDR4 |
| 150 | config DIMM_SPD_SIZE |
| 151 | int |
| 152 | default 1024 |
| 153 | |
| 154 | config MAX_ACPI_TABLE_SIZE_KB |
| 155 | int |
Patrick Rudolph | 87d97ff | 2023-01-19 20:00:34 +0100 | [diff] [blame] | 156 | default 400 if MAX_SOCKET = 4 |
Jonathan Zhang | 9722f5f | 2023-01-25 09:04:59 -0800 | [diff] [blame] | 157 | default 224 |
| 158 | |
| 159 | config FIXED_SMBUS_IO_BASE |
| 160 | default 0x780 |
| 161 | |
| 162 | config DISPLAY_UPD_IIO_DATA |
| 163 | def_bool n |
| 164 | depends on DISPLAY_UPD_DATA |
| 165 | |
| 166 | if INTEL_TXT |
| 167 | |
| 168 | config INTEL_TXT_SINIT_SIZE |
| 169 | hex |
| 170 | default 0x50000 |
| 171 | help |
| 172 | According to document number 572782 this needs to be 256KiB |
| 173 | for the SINIT module and 64KiB for SINIT data. |
| 174 | |
| 175 | config INTEL_TXT_HEAP_SIZE |
| 176 | hex |
| 177 | default 0xf0000 |
| 178 | help |
| 179 | This must be 960KiB according to 572782. |
| 180 | |
| 181 | endif # INTEL_TXT |
| 182 | |
| 183 | endif |