blob: bb88becaa72acb8fd5859429bfb9a29f227fe7e6 [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
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080083config STACK_SIZE
84 hex
85 default 0x4000
86
87config FSP_TEMP_RAM_SIZE
88 hex
89 depends on FSP_USES_CB_STACK
90 default 0x60000
91 help
92 The amount of anticipated heap usage in CAR by FSP.
93 Refer to Platform FSP integration guide document to know
94 the exact FSP requirement for Heap setup. The FSP integration
95 documentation says this needs to be at least 128KiB, but practice
96 show this needs to be 256KiB or more.
97
98config IED_REGION_SIZE
99 hex
100 default 0x400000
101
102config IFD_CHIPSET
103 string
104 default "lbg"
105
106config SOC_INTEL_COMMON_BLOCK_P2SB
107 def_bool y
108
109config SOC_INTEL_HAS_BIOS_DONE_MSR
110 def_bool y
111
112config SOC_INTEL_HAS_NCMEM
113 def_bool y
114
115config SOC_INTEL_HAS_CXL
116 def_bool y
117
118config SOC_INTEL_PCIE_64BIT_ALLOC
119 def_bool y
120
121config SOC_INTEL_MMAPVTD_ONLY_FOR_DPR
122 def_bool y
123
124config CPU_BCLK_MHZ
125 int
126 default 100
127
128# SPR-SP has 4 IMCs, 2 channels per IMC, 2 DIMMs per channel
129# Default value is set to two sockets, full config.
130config MAX_IMC
131 int
132 default 4
133
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800134config DIMM_MAX
135 int
136 default 32
137
138# DDR4
139config DIMM_SPD_SIZE
140 int
141 default 1024
142
143config MAX_ACPI_TABLE_SIZE_KB
144 int
Patrick Rudolph8bbadde2023-09-07 10:06:18 +0200145 default 512 if MAX_SOCKET = 4
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800146 default 224
147
148config FIXED_SMBUS_IO_BASE
149 default 0x780
150
151config DISPLAY_UPD_IIO_DATA
152 def_bool n
153 depends on DISPLAY_UPD_DATA
154
155if INTEL_TXT
156
157config INTEL_TXT_SINIT_SIZE
158 hex
159 default 0x50000
160 help
161 According to document number 572782 this needs to be 256KiB
162 for the SINIT module and 64KiB for SINIT data.
163
164config INTEL_TXT_HEAP_SIZE
165 hex
166 default 0xf0000
167 help
168 This must be 960KiB according to 572782.
169
170endif # INTEL_TXT
171
Naresh Solankic7338082023-05-24 10:29:45 +0200172config ENABLE_IO_MARGINING
173 bool "Enable IO Margining"
174 default n
175 depends on !PCIEXP_ASPM
176 help
177 Enable support for I/O margining. This is mutually exclusive with
178 ASPM. This option is intended for debugging and validation and
179 should normally be disabled.
180
Naresh Solanki82390fa2023-05-24 11:24:28 +0200181config ENABLE_RMT
182 bool "Enable RMT"
183 default n
184 help
185 Enable Rank Margining Tool. This option is intended for debugging and
186 validation and should normally be disabled.
Naresh Solanki93ffdee52023-10-06 14:35:58 +0200187
188config RMT_MEM_POR_FREQ
189 bool "Enforce Plan Of Record restrictions for DDR5 frequency and voltage"
190 default n
191 depends on ENABLE_RMT
192 help
193 When RMT is enabled. Select this option to enforce Intel Plan Of Record(POR)
194 restriction on DDR5 frequency & voltage settings.
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800195endif