Debian Codegraph @

src/soc/amd/mendocino/Kconfig

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 config SOC_AMD_REMBRANDT_BASE
4 bool
5 select ACPI_SOC_NVS
6 select ADD_FSP_BINARIES if USE_AMD_BLOBS
7 select ARCH_X86
8 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
9 select CACHE_MRC_SETTINGS
10 select DRIVERS_USB_ACPI
11 select DRIVERS_USB_PCI_XHCI
12 select FSP_COMPRESS_FSP_M_LZMA if !ASYNC_FILE_LOADING
13 select FSP_COMPRESS_FSP_M_LZ4 if ASYNC_FILE_LOADING
14 select FSP_COMPRESS_FSP_S_LZ4
15 select GENERIC_GPIO_LIB
16 select HAVE_ACPI_TABLES
17 select HAVE_CF9_RESET
18 select HAVE_EM100_SUPPORT
19 select HAVE_FSP_GOP
20 select HAVE_SMI_HANDLER
21 select IDT_IN_EVERY_STAGE
22 select PARALLEL_MP_AP_WORK
23 select PLATFORM_USES_FSP2_0
24 select PROVIDES_ROM_SHARING
25 select PSP_INCLUDES_HSP
26 select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK
27 select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK
28 select RTC
29 select SOC_AMD_COMMON
30 select SOC_AMD_COMMON_BLOCK_ACP_GEN2
31 select SOC_AMD_COMMON_BLOCK_ACPI
32 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
33 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_PM_IO_ACCESS
34 select SOC_AMD_COMMON_BLOCK_ACPI_ALIB
35 select SOC_AMD_COMMON_BLOCK_ACPI_CPPC
36 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
37 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
38 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS
39 select SOC_AMD_COMMON_BLOCK_ACPI_MADT
40 select SOC_AMD_COMMON_BLOCK_AOAC
41 select SOC_AMD_COMMON_BLOCK_APOB
42 select SOC_AMD_COMMON_BLOCK_APOB_HASH
43 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
44 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
45 select SOC_AMD_COMMON_BLOCK_CPU_SYNC_PSP_ADDR_MSR
46 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
47 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN
48 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
49 select SOC_AMD_COMMON_BLOCK_GPP_CLK
50 select SOC_AMD_COMMON_BLOCK_GRAPHICS
51 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
52 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
53 select SOC_AMD_COMMON_BLOCK_I2C
54 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
55 select SOC_AMD_COMMON_BLOCK_I3C
56 select SOC_AMD_COMMON_BLOCK_IOMMU
57 select SOC_AMD_COMMON_BLOCK_LPC
58 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
59 select SOC_AMD_COMMON_BLOCK_MCAX
60 select SOC_AMD_COMMON_BLOCK_NONCAR
61 select SOC_AMD_COMMON_BLOCK_PCI
62 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
63 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER
64 select SOC_AMD_COMMON_BLOCK_PM
65 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE
66 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
67 select SOC_AMD_COMMON_BLOCK_PSP_SPL
68 select SOC_AMD_COMMON_BLOCK_RESET
69 select SOC_AMD_COMMON_BLOCK_SMBUS
70 select SOC_AMD_COMMON_BLOCK_SMI
71 select SOC_AMD_COMMON_BLOCK_SMM
72 select SOC_AMD_COMMON_BLOCK_SMU
73 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
74 select SOC_AMD_COMMON_BLOCK_SPI
75 select SOC_AMD_COMMON_BLOCK_STB
76 select SOC_AMD_COMMON_BLOCK_SVI3
77 select SOC_AMD_COMMON_BLOCK_TSC
78 select SOC_AMD_COMMON_BLOCK_UART
79 select SOC_AMD_COMMON_BLOCK_UCODE
80 select SOC_AMD_COMMON_BLOCK_XHCI
81 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
82 select SOC_AMD_COMMON_FSP_DMI_TABLES
83 select SOC_AMD_COMMON_FSP_PCI
84 select SOC_AMD_COMMON_FSP_PCIE_CLK_REQ
85 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
86 select SOC_AMD_COMMON_ROMSTAGE_LEGACY_DMA_FIXUP
87 select SSE2
88 select UDK_2017_BINDING
89 select DRAM_SUPPORT_DDR5
90 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
91 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
92 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
93 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
94 select VBOOT_MUST_REQUEST_DISPLAY if VBOOT
95 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
96 select X86_AMD_FIXED_MTRRS
97 select X86_INIT_NEED_1_SIPI
98
99 config SOC_AMD_MENDOCINO
100 bool
101 select SOC_AMD_REMBRANDT_BASE
102 help
103 AMD Mendocino support
104
105 config SOC_AMD_REMBRANDT
106 bool
107 select SOC_AMD_REMBRANDT_BASE
108 help
109 AMD Rembrandt support
110
111
112 if SOC_AMD_REMBRANDT_BASE
113
114 config CHIPSET_DEVICETREE
115 string
116 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
117 default "soc/amd/mendocino/chipset_rembrandt.cb"
118
119 config FSP_M_FILE
120 string "FSP-M (memory init) binary path and filename"
121 depends on ADD_FSP_BINARIES
122 default "3rdparty/amd_blobs/mendocino/MENDOCINO_M.fd" if SOC_AMD_MENDOCINO
123 help
124 The path and filename of the FSP-M binary for this platform.
125
126 config FSP_S_FILE
127 string "FSP-S (silicon init) binary path and filename"
128 depends on ADD_FSP_BINARIES
129 default "3rdparty/amd_blobs/mendocino/MENDOCINO_S.fd" if SOC_AMD_MENDOCINO
130 help
131 The path and filename of the FSP-S binary for this platform.
132
133 config EARLY_RESERVED_DRAM_BASE
134 hex
135 default 0x2000000
136 help
137 This variable defines the base address of the DRAM which is reserved
138 for usage by coreboot in early stages (i.e. before ramstage is up).
139 This memory gets reserved in BIOS tables to ensure that the OS does
140 not use it, thus preventing corruption of OS memory in case of S3
141 resume.
142
143 config EARLYRAM_BSP_STACK_SIZE
144 hex
145 default 0x1000
146
147 config PSP_APOB_DRAM_ADDRESS
148 hex
149 default 0x2001000
150 help
151 Location in DRAM where the PSP will copy the AGESA PSP Output
152 Block.
153
154 config PSP_APOB_DRAM_SIZE
155 hex
156 default 0x1E000
157
158 config PSP_SHAREDMEM_BASE
159 hex
160 default 0x201F000 if VBOOT
161 default 0x0
162 help
163 This variable defines the base address in DRAM memory where PSP copies
164 the vboot workbuf. This is used in the linker script to have a static
165 allocation for the buffer as well as for adding relevant entries in
166 the BIOS directory table for the PSP.
167
168 config PSP_SHAREDMEM_SIZE
169 hex
170 default 0x8000 if VBOOT
171 default 0x0
172 help
173 Sets the maximum size for the PSP to pass the vboot workbuf and
174 any logs or timestamps back to coreboot. This will be copied
175 into main memory by the PSP and will be available when the x86 is
176 started. The workbuf's base depends on the address of the reset
177 vector.
178
179 config PRE_X86_CBMEM_CONSOLE_SIZE
180 hex
181 default 0x1000
182 help
183 Size of the CBMEM console used in PSP verstage.
184
185 config PRERAM_CBMEM_CONSOLE_SIZE
186 hex
187 default 0x1600
188 help
189 Increase this value if preram cbmem console is getting truncated
190
191 config CBFS_MCACHE_SIZE
192 hex
193 default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK
194
195 config C_ENV_BOOTBLOCK_SIZE
196 hex
197 default 0x20000
198 help
199 Sets the size of the bootblock stage that should be loaded in DRAM.
200 This variable controls the DRAM allocation size in linker script
201 for bootblock stage.
202
203 config ROMSTAGE_ADDR
204 hex
205 default 0x2050000
206 help
207 Sets the address in DRAM where romstage should be loaded.
208
209 config ROMSTAGE_SIZE
210 hex
211 default 0x70000
212 help
213 Sets the size of DRAM allocation for romstage in linker script.
214
215 config FSP_M_ADDR
216 hex
217 default 0x20C0000
218 help
219 Sets the address in DRAM where FSP-M should be loaded. cbfstool
220 performs relocation of FSP-M to this address.
221
222 config FSP_M_SIZE
223 hex
224 default 0xC0000
225 help
226 Sets the size of DRAM allocation for FSP-M in linker script.
227
228 config FSP_TEMP_RAM_SIZE
229 hex
230 default 0x40000
231 help
232 The amount of coreboot-allocated heap and stack usage by the FSP.
233
234 config VERSTAGE_ADDR
235 hex
236 depends on VBOOT_SEPARATE_VERSTAGE
237 default 0x2180000
238 help
239 Sets the address in DRAM where verstage should be loaded if running
240 as a separate stage on x86.
241
242 config VERSTAGE_SIZE
243 hex
244 depends on VBOOT_SEPARATE_VERSTAGE
245 default 0x80000
246 help
247 Sets the size of DRAM allocation for verstage in linker script if
248 running as a separate stage on x86.
249
250 config ASYNC_FILE_LOADING
251 bool "Loads files from SPI asynchronously"
252 select COOP_MULTITASKING
253 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
254 select CBFS_PRELOAD
255 help
256 When enabled, the platform will use the LPC SPI DMA controller to
257 asynchronously load contents from the SPI ROM. This will improve
258 boot time because the CPUs can be performing useful work while the
259 SPI contents are being preloaded.
260
261 config CBFS_CACHE_SIZE
262 hex
263 default 0x40000 if CBFS_PRELOAD || SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
264
265 config RO_REGION_ONLY
266 string
267 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
268 default "apu/amdfw"
269
270 config ECAM_MMCONF_BASE_ADDRESS
271 default 0xF8000000
272
273 config ECAM_MMCONF_BUS_NUMBER
274 default 64
275
276 config MAX_CPUS
277 int
278 default 8 if SOC_AMD_MENDOCINO
279 default 16
280 help
281 Maximum number of threads the platform can have.
282
283 config VGA_BIOS_ID
284 string
285 default "1002,1506" if SOC_AMD_MENDOCINO
286 help
287 The default VGA BIOS PCI vendor/device ID of the GPU and VBIOS.
288
289 config VGA_BIOS_FILE
290 string
291 default "3rdparty/amd_blobs/mendocino/MdnGenericVbios.bin" if SOC_AMD_MENDOCINO
292
293 config CONSOLE_UART_BASE_ADDRESS
294 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
295 hex
296 default 0xfedc9000 if UART_FOR_CONSOLE = 0
297 default 0xfedca000 if UART_FOR_CONSOLE = 1
298 default 0xfedce000 if UART_FOR_CONSOLE = 2
299 default 0xfedcf000 if UART_FOR_CONSOLE = 3
300 default 0xfedd1000 if UART_FOR_CONSOLE = 4
301
302 config SMM_TSEG_SIZE
303 hex
304 default 0x800000 if HAVE_SMI_HANDLER
305 default 0x0
306
307 config SMM_RESERVED_SIZE
308 hex
309 default 0x180000
310
311 config SMM_MODULE_STACK_SIZE
312 hex
313 default 0x800
314
315 config ACPI_BERT
316 bool "Build ACPI BERT Table"
317 default y
318 depends on HAVE_ACPI_TABLES
319 help
320 Report Machine Check errors identified in POST to the OS in an
321 ACPI Boot Error Record Table.
322
323 config ACPI_BERT_SIZE
324 hex
325 default 0x4000 if ACPI_BERT
326 default 0x0
327 help
328 Specify the amount of DRAM reserved for gathering the data used to
329 generate the ACPI table.
330
331 config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
332 int
333 default 150
334
335 config DISABLE_SPI_FLASH_ROM_SHARING
336 def_bool n
337 help
338 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
339 which indicates a board level ROM transaction request. This
340 removes arbitration with board and assumes the chipset controls
341 the SPI flash bus entirely.
342
343 config DISABLE_KEYBOARD_RESET_PIN
344 bool
345 help
346 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
347
348 config FEATURE_DYNAMIC_DPTC
349 bool
350 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
351 help
352 Selected by mainboards that implement support for ALIB
353 to enable dynamic DPTC.
354
355 config FEATURE_TABLET_MODE_DPTC
356 bool
357 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
358 help
359 Selected by mainboards that implement support for ALIB to
360 switch default and tablet mode.
361
362 menu "PSP Configuration Options"
363
364 config AMDFW_CONFIG_FILE
365 string "AMD PSP Firmware config file"
366 default "src/soc/amd/mendocino/fw.cfg"
367 help
368 Specify the path/location of AMD PSP Firmware config file.
369
370 config PSP_DISABLE_POSTCODES
371 bool "Disable PSP post codes"
372 help
373 Disables the output of port80 post codes from PSP.
374
375 config PSP_POSTCODES_ON_ESPI
376 bool "Use eSPI bus for PSP post codes"
377 default y
378 depends on !PSP_DISABLE_POSTCODES
379 help
380 Select to send PSP port80 post codes on eSPI bus.
381 If not selected, PSP port80 codes will be sent on LPC bus.
382
383 config PSP_LOAD_MP2_FW
384 bool
385 default n
386 help
387 Include the MP2 firmwares and configuration into the PSP build.
388
389 If unsure, answer 'n'
390
391 config PSP_UNLOCK_SECURE_DEBUG
392 bool "Unlock secure debug"
393 default y
394 help
395 Select this item to enable secure debug options in PSP.
396
397 config HAVE_PSP_WHITELIST_FILE
398 bool "Include a debug whitelist file in PSP build"
399 default n
400 help
401 Support secured unlock prior to reset using a whitelisted
402 serial number. This feature requires a signed whitelist image
403 and bootloader from AMD.
404
405 If unsure, answer 'n'
406
407 config PSP_WHITELIST_FILE
408 string "Debug whitelist file path"
409 depends on HAVE_PSP_WHITELIST_FILE
410 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
411
412 config PSP_SOFTFUSE_BITS
413 string "PSP Soft Fuse bits to enable"
414 default "34 28 6"
415 help
416 Space separated list of Soft Fuse bits to enable.
417 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
418 Bit 7: Disable PSP postcodes on Renoir and newer chips only
419 (Set by PSP_DISABLE_PORT80)
420 Bit 15: PSP debug output destination:
421 0=SoC MMIO UART, 1=IO port 0x3F8
422 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
423
424 See #55758 (NDA) for additional bit definitions.
425
426 config PSP_VERSTAGE_FILE
427 string "Specify the PSP_verstage file path"
428 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
429 default "\$(obj)/psp_verstage.bin"
430 help
431 Add psp_verstage file to the build & PSP Directory Table
432
433 config PSP_VERSTAGE_SIGNING_TOKEN
434 string "Specify the PSP_verstage Signature Token file path"
435 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
436 default ""
437 help
438 Add psp_verstage signature token to the build & PSP Directory Table
439
440 endmenu
441
442 config VBOOT
443 select VBOOT_VBNV_CMOS
444 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
445
446 config VBOOT_STARTS_BEFORE_BOOTBLOCK
447 def_bool n
448 depends on VBOOT
449 select ARCH_VERSTAGE_ARMV7
450 help
451 Runs verstage on the PSP. Only available on
452 certain ChromeOS branded parts from AMD.
453
454 config VBOOT_HASH_BLOCK_SIZE
455 hex
456 default 0x9000
457 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
458 help
459 Because the bulk of the time in psp_verstage to hash the RO cbfs is
460 spent in the overhead of doing svc calls, increasing the hash block
461 size significantly cuts the verstage hashing time as seen below.
462
463 4k takes 180ms
464 16k takes 44ms
465 32k takes 33.7ms
466 36k takes 32.5ms
467 There's actually still room for an even bigger stack, but we've
468 reached a point of diminishing returns.
469
470 config CMOS_RECOVERY_BYTE
471 hex
472 default 0x51
473 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
474 help
475 If the workbuf is not passed from the PSP to coreboot, set the
476 recovery flag and reboot. The PSP will read this byte, mark the
477 recovery request in VBNV, and reset the system into recovery mode.
478
479 This is the byte before the default first byte used by VBNV
480 (0x26 + 0x0E - 1)
481
482 if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
483
484 config RWA_REGION_ONLY
485 string
486 default "apu/amdfw_a apu/amdfw_a_body"
487 help
488 Add a space-delimited list of filenames that should only be in the
489 RW-A section.
490
491 endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
492
493 if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
494
495 config RWB_REGION_ONLY
496 string
497 default "apu/amdfw_b apu/amdfw_b_body"
498 help
499 Add a space-delimited list of filenames that should only be in the
500 RW-B section.
501
502 endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
503
504 endif # SOC_AMD_REMBRANDT_BASE