blob: 396072448dcc89600d96404146e7d16671524e62 [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
15 help
16 Intel Sapphire Rapids-SP support
17
18if SOC_INTEL_SAPPHIRERAPIDS_SP
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080019
Tim Chu68107dd2023-02-17 03:00:39 +000020config CHIPSET_DEVICETREE
21 string
22 default "soc/intel/xeon_sp/spr/chipset.cb"
23
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080024config 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
29config MAX_CPUS
30 int
31 default 255
32
Naresh Solanki12bfe6b2023-02-08 17:02:50 +010033config ACPI_CPU_STRING
34 string
Felix Heldf0a8b042023-05-12 15:55:06 +020035 default "C%03X"
Naresh Solanki12bfe6b2023-02-08 17:02:50 +010036
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080037config PCR_BASE_ADDRESS
38 hex
39 default 0xfd000000
40 help
41 This option allows you to select MMIO Base Address of sideband bus.
42
43config DCACHE_RAM_BASE
44 hex
45 default 0xfe800000
46
47config 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
55config 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
64config 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
74config CPU_MICROCODE_CBFS_LOC
75 hex
76 default 0xffe0fdc0
77
78config CPU_MICROCODE_CBFS_LEN
79 hex
80 default 0x8c00
81
Patrick Georgiacbc4912023-11-06 17:22:34 +000082config HEAP_SIZE
83 hex
84 default 0x80000
85
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080086config STACK_SIZE
87 hex
88 default 0x4000
89
90config 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
101config IED_REGION_SIZE
102 hex
103 default 0x400000
104
105config IFD_CHIPSET
106 string
107 default "lbg"
108
109config SOC_INTEL_COMMON_BLOCK_P2SB
110 def_bool y
111
112config SOC_INTEL_HAS_BIOS_DONE_MSR
113 def_bool y
114
115config SOC_INTEL_HAS_NCMEM
116 def_bool y
117
118config SOC_INTEL_HAS_CXL
119 def_bool y
120
121config SOC_INTEL_PCIE_64BIT_ALLOC
122 def_bool y
123
124config SOC_INTEL_MMAPVTD_ONLY_FOR_DPR
125 def_bool y
126
127config 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.
133config MAX_IMC
134 int
135 default 4
136
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800137config DIMM_MAX
138 int
139 default 32
140
141# DDR4
142config DIMM_SPD_SIZE
143 int
144 default 1024
145
146config MAX_ACPI_TABLE_SIZE_KB
147 int
Patrick Rudolph8bbadde2023-09-07 10:06:18 +0200148 default 512 if MAX_SOCKET = 4
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800149 default 224
150
151config FIXED_SMBUS_IO_BASE
152 default 0x780
153
154config DISPLAY_UPD_IIO_DATA
155 def_bool n
156 depends on DISPLAY_UPD_DATA
157
158if INTEL_TXT
159
160config 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
167config INTEL_TXT_HEAP_SIZE
168 hex
169 default 0xf0000
170 help
171 This must be 960KiB according to 572782.
172
173endif # INTEL_TXT
174
Naresh Solankic7338082023-05-24 10:29:45 +0200175config 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 Solanki82390fa2023-05-24 11:24:28 +0200184config 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 Solanki93ffdee52023-10-06 14:35:58 +0200190
191config 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 Zhang9722f5f2023-01-25 09:04:59 -0800198endif