Debian Codegraph @

src/drivers/intel/fsp2_0/Kconfig

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 config PLATFORM_USES_FSP2_0
4 bool
5 default n
6 help
7 Include FSP 2.0 wrappers and functionality
8
9 config PLATFORM_USES_FSP2_1
10 bool
11 default n
12 select PLATFORM_USES_FSP2_0
13 select FSP_USES_CB_STACK
14 help
15 Include FSP 2.1 wrappers and functionality.
16 Feature added into FSP 2.1 specification that impacts coreboot is:
17 1. Remove FSP stack switch and use the same stack with boot firmware
18
19 config PLATFORM_USES_FSP2_2
20 bool
21 default n
22 select PLATFORM_USES_FSP2_1
23 help
24 Include FSP 2.2 wrappers and functionality.
25 Features added into FSP 2.2 specification that impact coreboot are:
26 1. Added multi-phase silicon initialization to increase the modularity of the
27 FspSiliconInit() API
28 2. FSP_INFO_HEADER changes to add FspMultiPhaseSiInitEntryOffset
29 3. Added EnableMultiPhaseSiliconInit, bootloaders designed for FSP2.0/2.1 can disable
30 the FspMultiPhaseSiInit() API and continue to use FspSiliconInit() without change.
31
32 config PLATFORM_USES_FSP2_3
33 bool
34 default n
35 select PLATFORM_USES_FSP2_2
36 help
37 Include FSP 2.3 wrappers and functionality.
38 Features added into FSP 2.3 specification that impact coreboot are:
39 1. Added ExtendedImageRevision field in FSP_INFO_HEADER
40 2. Added FSP_NON_VOLATILE_STORAGE_HOB2
41
42 config PLATFORM_USES_FSP2_4
43 bool
44 default n
45 select PLATFORM_USES_FSP2_3
46 help
47 Include FSP 2.4 wrappers and functionality.
48 Features added into FSP 2.4 specification that impact coreboot are:
49 1. FSP-M multi phase init support
50 2. FSPM_ARCH2_UPD and FSPS_ARCH2_UPD data structures must be
51 used in place of FSPM_ARCH_UPD and FSPS_ARCH_UPD respectively
52 3. 64-bits support
53
54 if PLATFORM_USES_FSP2_0
55
56 config PLATFORM_USES_FSP2_X86_32
57 bool
58 default n if PLATFORM_USES_FSP2_4
59 default y
60 help
61 Specify if the FSP binaries are 32-bits (yes) or 64-bits
62 (no). By default, 64-bit should be used starting with FSP
63 specification 2.4
64
65 config HAVE_INTEL_FSP_REPO
66 bool
67 help
68 Select this, if the FSP binaries for the platform are public
69 and available in 3rdparty/fsp/. When selecting this option, the
70 platform must also set FSP_HEADER_PATH and FSP_FD_PATH correctly.
71
72 config FSP_USE_REPO
73 bool "Use binaries of the Intel FSP repository on GitHub"
74 depends on HAVE_INTEL_FSP_REPO
75 select FSP_FULL_FD
76 default y
77 help
78 Select this option to use the default FSP headers and binaries
79 found in the IntelFsp GitHub repository at
80
81 https://github.com/IntelFsp/FSP/
82
83 If unsure, say Y.
84
85 config FSP_HEADER_PATH
86 string "Location of FSP headers" if !FSP_USE_REPO
87 help
88 Include directory with the FSP ABI header files.
89
90 config ADD_FSP_BINARIES
91 bool "Add Intel FSP 2.0 binaries to CBFS" if !FSP_USE_REPO
92 default y if FSP_USE_REPO
93 help
94 Add the FSP-M and FSP-S binaries to CBFS.
95
96 config PLATFORM_USES_SECOND_FSP
97 bool
98 default n
99 help
100 The platform uses two sets of FSP-M/FSP-S binaries and selects the
101 appropriate one at runtime. At least one platform requires different
102 binaries depending on CPU stepping, so supporting any stepping
103 requires embedding two FSPs. The platform indicates which is the
104 "first" and "second" FSP.
105
106 config FSP_T_CBFS
107 string "Name of FSP-T in CBFS"
108 depends on FSP_CAR
109 default "fspt.bin"
110
111 config FSP_T_LOCATION
112 hex
113 default 0xfffe0000
114 help
115 The location for FSP-T.
116
117 config FSP_S_CBFS
118 string "Name of FSP-S in CBFS"
119 default "fsps.bin"
120
121 config FSP_M_CBFS
122 string "Name of FSP-M in CBFS"
123 default "fspm.bin"
124
125 config FSP_FULL_FD
126 bool "Use a combined FSP FD file" if !FSP_USE_REPO
127 depends on ADD_FSP_BINARIES
128 help
129 Use a combined FSP FD file instead of specifying individual, already split
130 binaries and split the file at build-time.
131
132 config FSP_FD_PATH
133 string "Location of FSP FD file" if FSP_FULL_FD && !FSP_USE_REPO
134 help
135 Path to the FSP FD file that contains the individual FSP-T, FSP-M
136 and FSP-S binaries. The file gets split at build-time.
137
138 config FSP_T_FILE
139 string "Intel FSP-T (temp RAM init) binary path and filename" if !FSP_FULL_FD
140 depends on ADD_FSP_BINARIES
141 depends on FSP_CAR
142 default "\$(obj)/Fsp_T.fd" if FSP_FULL_FD
143 help
144 The path and filename of the Intel FSP-T binary for this platform.
145
146 config FSP_M_FILE
147 string "Intel FSP-M (memory init) binary path and filename" if !FSP_FULL_FD
148 depends on ADD_FSP_BINARIES
149 default "\$(obj)/Fsp_M.fd" if FSP_FULL_FD
150 help
151 The path and filename of the Intel FSP-M binary for this platform.
152
153 config FSP_S_FILE
154 string "Intel FSP-S (silicon init) binary path and filename" if !FSP_FULL_FD
155 depends on ADD_FSP_BINARIES
156 default "\$(obj)/Fsp_S.fd" if FSP_FULL_FD
157 help
158 The path and filename of the Intel FSP-S binary for this platform.
159
160 if PLATFORM_USES_SECOND_FSP
161
162 config FSP_S_CBFS_2
163 string "Name of the second FSP-S in CBFS"
164 default "fsps_2.bin"
165
166 config FSP_M_CBFS_2
167 string "Name of the second FSP-M in CBFS"
168 default "fspm_2.bin"
169
170 config FSP_FD_PATH_2
171 string "Location of the second FSP FD file" if FSP_FULL_FD && !FSP_USE_REPO
172 help
173 Path to the FSP FD file that contains the individual FSP-M and FSP-S
174 binaries. The file gets split at build-time.
175
176 config FSP_M_FILE_2
177 string "Intel FSP-M (memory init) second binary path and filename" if !FSP_FULL_FD
178 depends on ADD_FSP_BINARIES
179 default "\$(obj)/Fsp_2_M.fd" if FSP_FULL_FD
180 help
181 The path and filename of the second Intel FSP-M binary for this
182 platform.
183
184 config FSP_S_FILE_2
185 string "Intel FSP-S (silicon init) second binary path and filename" if !FSP_FULL_FD
186 depends on ADD_FSP_BINARIES
187 default "\$(obj)/Fsp_2_S.fd" if FSP_FULL_FD
188 help
189 The path and filename of the second Intel FSP-S binary for this
190 platform.
191
192 endif
193
194 config FSP_CAR
195 bool
196 default n
197 select NO_CBFS_MCACHE if !NO_FSP_TEMP_RAM_EXIT
198 help
199 Use FSP APIs to initialize & Tear Down the Cache-As-Ram
200
201 config FSP_T_RESERVED_SIZE
202 hex
203 default 0x100 if FSP_CAR
204 default 0x0
205 help
206 This is the size of the area reserved by FSP-T. This is not
207 defined in the FSP specification but in the SOC integration
208 guides.
209
210 config NO_FSP_TEMP_RAM_EXIT
211 bool
212 depends on FSP_CAR
213 help
214 Select this on a platform where you want to use FSP-T but use
215 coreboot code to tear down CAR.
216
217 config FSP_M_XIP
218 bool
219 default n
220 help
221 Select this value when FSP-M is execute-in-place.
222
223 config FSP_T_XIP
224 bool
225 default n
226 help
227 Select this value when FSP-T is execute-in-place.
228
229 config FSP_USES_CB_STACK
230 bool
231 default n
232 help
233 Enable support for fsp to use same stack as coreboot.
234 This option allows fsp to continue using coreboot stack
235 without reinitializing stack pointer. This feature is
236 supported Icelake onwards.
237
238 config FSP_SPEC_VIOLATION_XEON_SP_HEAP_WORKAROUND
239 bool
240 help
241 Starting with Intel CPX there is a bug in there reference code during
242 the pipe init. This code synchronises the CAR between sockets in FSP-M.
243 This code implicitly assumes that the FSP heap is right above the
244 RC heap, where both of them are located at the bottom part of CAR.
245 Select this to have an explicit handling of the FSP StackBase to work
246 around this issue. This is needed on multi-socket Xeon-SP systems.
247 This will place the FSP heap right above the FSP-M RC heap.
248
249 config FSP_TEMP_RAM_SIZE
250 hex
251 help
252 The amount of memory coreboot reserves for the FSP to use. In the
253 case of FSP 2.1 and newer that share the stack with coreboot instead
254 of having its own stack, this is the amount of anticipated heap usage
255 in CAR by FSP to setup HOB and needs to be the recommended value from
256 the Platform FSP integration guide. In the case of the FSP having its
257 own stack that will be placed in DRAM and not in CAR, this is the
258 amount of memory the FSP needs for its stack and heap.
259
260 config FSP_PLATFORM_MEMORY_SETTINGS_VERSIONS
261 bool
262 help
263 This is selected by SoC or mainboard to supply their own
264 concept of a version for the memory settings respectively.
265 This allows deployed systems to bump their version number
266 with the same FSP which will trigger a retrain of the memory.
267
268 config FSP_COMPRESS_FSP_S_LZMA
269 bool
270
271 config FSP_COMPRESS_FSP_S_LZ4
272 bool
273
274 config FSP_COMPRESS_FSP_M_LZMA
275 bool
276 depends on !FSP_M_XIP
277
278 config FSP_COMPRESS_FSP_M_LZ4
279 bool
280 depends on !FSP_M_XIP
281
282 config FSP_ALIGNMENT_FSP_S
283 int
284 help
285 Sets the CBFS alignment for FSP-S
286
287 config FSP_ALIGNMENT_FSP_M
288 int
289 help
290 Sets the CBFS alignment for FSP-M
291
292 config FSP_M_ADDR
293 hex
294 help
295 The address FSP-M will be relocated to during build time
296
297 config FSP_STATUS_GLOBAL_RESET
298 hex
299 depends on SOC_INTEL_COMMON_FSP_RESET
300 range 0x4000000000000003 0x4000000000000008 if !PLATFORM_USES_FSP2_X86_32
301 range 0x40000003 0x40000008
302 default 0x4000000000000003 if !PLATFORM_USES_FSP2_X86_32
303 default 0x40000003
304 help
305 If global reset is supported by SoC then select the correct status value for global
306 reset type.
307
308 This option specifies the global reset status code used by the
309 platform, as defined in the FSP specification.
310
311 The FSP specification allows for a range of values to indicate a
312 global reset request, typically between
313 FSP_STATUS_GLOBAL_RESET_REQUIRED_3 and
314 FSP_STATUS_GLOBAL_RESET_REQUIRED_8.
315
316 This option defaults to the most commonly used global reset
317 status code in FSP implementations:
318 - 0x40000003 for 32-bit FSP interfaces
319 - 0x4000000000000003 for 64-bit FSP interfaces
320
321 If your FSP implementation uses a different global reset status
322 code, override this default value accordingly.
323
324 config SOC_INTEL_COMMON_FSP_RESET
325 bool
326 help
327 Common code block to handle platform reset request raised by FSP. The FSP
328 will use the FSP EAS v2.0 section 12.2.2 (OEM Status Code) to indicate that
329 a reset is required.
330
331 config FSPS_HAS_ARCH_UPD
332 bool
333 help
334 SoC users must select this Kconfig if the `FSPS_UPD` header has architecture
335 UPD structure as `FSPS_ARCH_UPD`. Typically, platform with FSP 2.2 specification
336 onwards has support for `FSPS_ARCH_UPD` section as part of `FSPS_UPD` structure.
337 But there are some exceptions as in TGL, JSL, XEON_SP FSP header doesn't have
338 support for FSPS_ARCH_UPD.
339
340 config FSPS_USE_MULTI_PHASE_INIT
341 bool
342 help
343 SoC users to select this Kconfig to set EnableMultiPhaseSiliconInit to enable and
344 execute FspMultiPhaseSiInit() API.
345
346 config USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
347 bool
348 help
349 The FSP API is used to notify the FSP about different phases in the boot process.
350 The current FSP specification supports three notify phases:
351 - Post PCI enumeration
352 - Ready to Boot
353 - End of Firmware
354 This option allows FSP to execute Notify Phase API (Post PCI enumeration).
355 SoC users can override this config to use coreboot native implementations
356 to perform the required lock down and chipset register configuration prior
357 to executing any 3rd-party code during PCI enumeration (i.e. Option ROM).
358
359 coreboot native implementation to skip FSP Notify Phase (Post PCI enumeration)
360 is still WIP.
361
362 config USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
363 bool
364 help
365 The FSP API is used to notify the FSP about different phases in the boot process.
366 The current FSP specification supports three notify phases:
367 - Post PCI enumeration
368 - Ready to Boot
369 - End of Firmware
370 This option allows FSP to execute Notify Phase API (Ready to Boot).
371 SoC users can override this config to use coreboot native implementations
372 to perform the required lock down and chipset register configuration prior
373 boot to payload.
374
375 config USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
376 bool
377 help
378 The FSP API is used to notify the FSP about different phases in the boot process.
379 The current FSP specification supports three notify phases:
380 - Post PCI enumeration
381 - Ready to Boot
382 - End of Firmware
383 This option allows FSP to execute Notify Phase API (End of Firmware).
384 SoC users can override this config to use coreboot native implementations
385 to perform the required lock down and chipset register configuration prior
386 boot to payload.
387
388 config FSP_USES_CB_DEBUG_EVENT_HANDLER
389 bool
390 default n
391 help
392 This option allows to create `Debug Event Handler` to print FSP debug messages
393 to output device using coreboot native implementation.
394
395 config DISPLAY_FSP_TIMESTAMPS
396 bool "Display FSP Timestamps"
397 default n
398 help
399 Select this config to retrieve FSP timestamps from Firmware Performance Data Table
400 (FPDT) and display from ramstage after FSP-S is executed.
401
402 To be able to use this, FSP has to be compiled with `PcdFspPerformanceEnable` set to
403 `TRUE`.
404
405 config FSP_UGOP_EARLY_SIGN_OF_LIFE
406 bool
407 default n
408 select VBT_CBFS_COMPRESSION_DEFAULT_LZ4
409 help
410 Enable the FSP-M Sign-of-Life feature to display a text message
411 on screen during memory training and CSME update. This utilizes Intel's underlying uGOP
412 technology to enable early sign of life (eSOL) as part of FSP-M.
413
414 config FSP_ENABLE_SERIAL_DEBUG
415 bool "Output FSP debug messages on serial console"
416 default y
417 depends on FSP_USES_CB_DEBUG_EVENT_HANDLER
418 help
419 Output FSP debug messages on serial console.
420
421 The config option is selected based on your FSP configuration i.e., debug or
422 release. Enable this option from site-local to print FSP serial messages using
423 coreboot native debug driver when coreboot has integrated the debug FSP
424 binaries. coreboot disables serial messages when this config is not enabled.
425
426 config FSP_NVS_DATA_POST_SILICON_INIT
427 bool
428 default n
429 help
430 Select this config to enable the workaround for Intel SoC platforms that
431 do not adhere to the FSP 2.x specification requirement, where the FSP
432 Silicon Init API produces Non-Volatile Storage (NVS) data instead of the
433 FSP-Memory Init API.
434
435 According to the FSP 2.x specification (section 11.3), the FSP populates the
436 NVS data using the FSP_NON_VOLATILE_STORAGE_HOB and expects the boot firmware
437 to parse the FSP_NON_VOLATILE_STORAGE_HOB after the FspMemoryInit() API in API
438 mode.
439
440 However, not all Intel SoC platforms that support the FSP 2.x specification
441 adhere to this requirement. For example, the FSP binary for XEON SP platform
442 produces NVS data (aka FSP_NON_VOLATILE_STORAGE_HOB) after the FspSiliconInit()
443 API. Therefore, attempting to locate NVS data after the FspMemoryInit() API on
444 these platforms would result in an error. Use this config to find the NVS data
445 and store it in Non-Volatile Storage after the FspSiliconInit() API.
446
447 config FSP_MULTIPHASE_SI_INIT_RETURN_BROKEN
448 bool
449 default n
450 depends on PLATFORM_USES_FSP2_2
451 help
452 Select this config for Intel SoC platform where FSP MultiPhaseSiInit API is unable
453 to return ERROR status properly.
454
455 The config option will be selected based on the target SoC platform and if the
456 problem existed inside the FSP MultiPhaseSiInit. At present the problem has only
457 reported with Alder Lake and Raptor Lake FSP where MultiPhaseSiInit API is unable
458 to return any ERROR status.
459
460 config FSP_PUBLISH_MBP_HOB
461 bool
462 default n if CHROMEOS
463 default y
464 help
465 This is to control creation of ME_BIOS_PAYLOAD_HOB (MBP HOB) by FSP.
466 Disabling it for the platforms, which do not use MBP HOB, can improve the boot time.
467
468 ChromeOS devices typically do not require the MBP information, hence it is disabled
469 by default on ChromeOS.
470
471 config BUILDING_WITH_DEBUG_FSP
472 bool "Use Debug FSP for Build"
473 default n
474 help
475 Enable this option if you are using a debug build of the FSP (Firmware Support Package)
476 in your project.
477
478 config USE_COREBOOT_FOR_BMP_RENDERING
479 bool
480 default n
481 help
482 This option forces coreboot to use its native bitmap (BMP) image rendering
483 and skip using the FSP for this purpose during the boot process.
484
485 If this option is selected (y), the platform will rely on the
486 coreboot native implementation for rendering BMP images. This might be
487 chosen if there are issues with FSP rendering or if native rendering
488 is preferred for specific reasons.
489
490 If this option is not selected (n), the FSP's capabilities for BMP rendering
491 will be utilized.
492
493 Platforms can choose to override this Kconfig option based on their
494 specific graphics requirements and FSP capabilities.
495
496 endif