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