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