blob: c3710ac9764e88d51736bafb61e381b22d0d392e [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
Patrick Rudolphae90fc02023-04-04 10:04:07 +020011 select DEFAULT_X2APIC_RUNTIME
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080012
Tim Chu68107dd2023-02-17 03:00:39 +000013config CHIPSET_DEVICETREE
14 string
15 default "soc/intel/xeon_sp/spr/chipset.cb"
16
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080017config FSP_HEADER_PATH
18 string "Location of FSP headers"
19 depends on MAINBOARD_USES_FSP2_0
20 default "src/vendorcode/intel/fsp/fsp2_0/sapphirerapids_sp"
21
22config MAX_CPUS
23 int
24 default 255
25
Naresh Solanki12bfe6b2023-02-08 17:02:50 +010026config ACPI_CPU_STRING
27 string
Felix Heldf0a8b042023-05-12 15:55:06 +020028 default "C%03X"
Naresh Solanki12bfe6b2023-02-08 17:02:50 +010029
Jonathan Zhang9722f5f2023-01-25 09:04:59 -080030config PCR_BASE_ADDRESS
31 hex
32 default 0xfd000000
33 help
34 This option allows you to select MMIO Base Address of sideband bus.
35
36config DCACHE_RAM_BASE
37 hex
38 default 0xfe800000
39
40config DCACHE_RAM_SIZE
41 hex
42 default 0x1fff00
43 help
44 The size of the cache-as-ram region required during bootblock
45 and/or romstage. FSP-T reserves the upper 0x100 for
46 FspReservedBuffer.
47
48config DCACHE_BSP_STACK_SIZE
49 hex
50 default 0x40000
51 help
52 The amount of anticipated stack usage in CAR by bootblock and
53 other stages. It needs to include FSP-M stack requirement and
54 CB romstage stack requirement. The integration documentation
55 says this needs to be 256KiB.
56
57config FSP_M_RC_HEAP_SIZE
58 hex
59 default 0x150000
60 help
61 On xeon_sp/spr FSP-M has two separate heap managers, one regular
62 whose size and base are controllable via the StackBase and
63 StackSize UPDs and a 'rc' heap manager that is statically
64 allocated at 0xfe800000 (the CAR base) and consumes about 0x150000
65 bytes of memory.
66
67config CPU_MICROCODE_CBFS_LOC
68 hex
69 default 0xffe0fdc0
70
71config CPU_MICROCODE_CBFS_LEN
72 hex
73 default 0x8c00
74
75config HEAP_SIZE
76 hex
77 default 0x80000
78
79config STACK_SIZE
80 hex
81 default 0x4000
82
83config FSP_TEMP_RAM_SIZE
84 hex
85 depends on FSP_USES_CB_STACK
86 default 0x60000
87 help
88 The amount of anticipated heap usage in CAR by FSP.
89 Refer to Platform FSP integration guide document to know
90 the exact FSP requirement for Heap setup. The FSP integration
91 documentation says this needs to be at least 128KiB, but practice
92 show this needs to be 256KiB or more.
93
94config IED_REGION_SIZE
95 hex
96 default 0x400000
97
98config IFD_CHIPSET
99 string
100 default "lbg"
101
102config SOC_INTEL_COMMON_BLOCK_P2SB
103 def_bool y
104
105config SOC_INTEL_HAS_BIOS_DONE_MSR
106 def_bool y
107
108config SOC_INTEL_HAS_NCMEM
109 def_bool y
110
111config SOC_INTEL_HAS_CXL
112 def_bool y
113
114config SOC_INTEL_PCIE_64BIT_ALLOC
115 def_bool y
116
117config SOC_INTEL_MMAPVTD_ONLY_FOR_DPR
118 def_bool y
119
120config CPU_BCLK_MHZ
121 int
122 default 100
123
124# SPR-SP has 4 IMCs, 2 channels per IMC, 2 DIMMs per channel
125# Default value is set to two sockets, full config.
126config MAX_IMC
127 int
128 default 4
129
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800130config DIMM_MAX
131 int
132 default 32
133
134# DDR4
135config DIMM_SPD_SIZE
136 int
137 default 1024
138
139config MAX_ACPI_TABLE_SIZE_KB
140 int
Patrick Rudolph87d97ff2023-01-19 20:00:34 +0100141 default 400 if MAX_SOCKET = 4
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800142 default 224
143
144config FIXED_SMBUS_IO_BASE
145 default 0x780
146
147config DISPLAY_UPD_IIO_DATA
148 def_bool n
149 depends on DISPLAY_UPD_DATA
150
151if INTEL_TXT
152
153config INTEL_TXT_SINIT_SIZE
154 hex
155 default 0x50000
156 help
157 According to document number 572782 this needs to be 256KiB
158 for the SINIT module and 64KiB for SINIT data.
159
160config INTEL_TXT_HEAP_SIZE
161 hex
162 default 0xf0000
163 help
164 This must be 960KiB according to 572782.
165
166endif # INTEL_TXT
167
Naresh Solankic7338082023-05-24 10:29:45 +0200168config ENABLE_IO_MARGINING
169 bool "Enable IO Margining"
170 default n
171 depends on !PCIEXP_ASPM
172 help
173 Enable support for I/O margining. This is mutually exclusive with
174 ASPM. This option is intended for debugging and validation and
175 should normally be disabled.
176
Naresh Solanki82390fa2023-05-24 11:24:28 +0200177config ENABLE_RMT
178 bool "Enable RMT"
179 default n
180 help
181 Enable Rank Margining Tool. This option is intended for debugging and
182 validation and should normally be disabled.
Jonathan Zhang9722f5f2023-01-25 09:04:59 -0800183endif