blob: 899f5ae26c8d7d97087d767671007ea18acf5be9 [file] [log] [blame]
Jonathan Zhang9722f5f2023-01-25 09:04:59 -08001## SPDX-License-Identifier: GPL-2.0-only
2
3if SOC_INTEL_SAPPHIRERAPIDS_SP
4
5config 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 Chuac04c212023-02-24 09:20:41 +000010 select DISABLE_ACPI_HIBERNATE
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080011
Tim Chu68107dd2023-02-17 03:00:39 +000012config CHIPSET_DEVICETREE
13 string
14 default "soc/intel/xeon_sp/spr/chipset.cb"
15
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080016config 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
21config MAX_CPUS
22 int
23 default 255
24
25config MAX_SOCKET_UPD
26 int
27 default 2
28 help
29 This is used for configuring common SPR UPD tables which their sizes
30 depend on the socket number. Since it's the maximal socket number for
31 the common UPD tables, mainboard should not overwrite it.
32
33config SIPI_FINAL_TIMEOUT
34 int
35 default 400000
36
37config 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
82config HEAP_SIZE
83 hex
84 default 0x80000
85
86config 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
137config MAX_MC_CHN
138 int
139 default 2
140
141config DIMM_MAX
142 int
143 default 32
144
145# DDR4
146config DIMM_SPD_SIZE
147 int
148 default 1024
149
150config MAX_ACPI_TABLE_SIZE_KB
151 int
Patrick Rudolph87d97ff2023-01-19 20:00:34 +0100152 default 400 if MAX_SOCKET = 4
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800153 default 224
154
155config FIXED_SMBUS_IO_BASE
156 default 0x780
157
158config DISPLAY_UPD_IIO_DATA
159 def_bool n
160 depends on DISPLAY_UPD_DATA
161
162if INTEL_TXT
163
164config INTEL_TXT_SINIT_SIZE
165 hex
166 default 0x50000
167 help
168 According to document number 572782 this needs to be 256KiB
169 for the SINIT module and 64KiB for SINIT data.
170
171config INTEL_TXT_HEAP_SIZE
172 hex
173 default 0xf0000
174 help
175 This must be 960KiB according to 572782.
176
177endif # INTEL_TXT
178
179endif