blob: 4ab26eeee21edfb77f5ad0c0dfb2334ba6d5dd57 [file] [log] [blame]
Martin Roth1a3de8e2022-10-06 15:57:21 -06001# SPDX-License-Identifier: GPL-2.0-only
2
3# TODO: Evaluate what can be moved to a common directory
Martin Roth20646cd2023-01-04 21:27:06 -07004# TODO: Update for Phoenix
Martin Roth1a3de8e2022-10-06 15:57:21 -06005
Martin Roth20646cd2023-01-04 21:27:06 -07006config SOC_AMD_PHOENIX
Martin Roth1a3de8e2022-10-06 15:57:21 -06007 bool
Martin Roth1a3de8e2022-10-06 15:57:21 -06008 select ACPI_SOC_NVS
Martin Roth1a3de8e2022-10-06 15:57:21 -06009 select ARCH_X86
10 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
Fred Reitberger097f5402023-02-24 13:27:13 -050011 select CACHE_MRC_SETTINGS
Martin Roth1a3de8e2022-10-06 15:57:21 -060012 select DRIVERS_USB_ACPI
13 select DRIVERS_USB_PCI_XHCI
14 select FSP_COMPRESS_FSP_M_LZMA if !ASYNC_FILE_LOADING
15 select FSP_COMPRESS_FSP_M_LZ4 if ASYNC_FILE_LOADING
16 select FSP_COMPRESS_FSP_S_LZ4
17 select GENERIC_GPIO_LIB
18 select HAVE_ACPI_TABLES
19 select HAVE_CF9_RESET
20 select HAVE_EM100_SUPPORT
21 select HAVE_FSP_GOP
22 select HAVE_SMI_HANDLER
23 select IDT_IN_EVERY_STAGE
Martin Rothbcb610a2022-10-29 13:31:54 -060024 select NO_DDR4
25 select NO_DDR3
26 select NO_DDR2
27 select NO_LPDDR4
Martin Roth1a3de8e2022-10-06 15:57:21 -060028 select PARALLEL_MP_AP_WORK
29 select PLATFORM_USES_FSP2_0
30 select PROVIDES_ROM_SHARING
31 select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK
32 select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK
33 select RESET_VECTOR_IN_RAM
34 select RTC
35 select SOC_AMD_COMMON
Fred Reitberger2dceb122022-11-04 14:37:34 -040036 select SOC_AMD_COMMON_BLOCK_ACP_GEN2
Martin Roth9c64c082022-10-18 17:54:52 -060037 select SOC_AMD_COMMON_BLOCK_ACPI # TODO: Check if this is still correct
38 select SOC_AMD_COMMON_BLOCK_ACPIMMIO # TODO: Check if this is still correct
39 select SOC_AMD_COMMON_BLOCK_ACPI_ALIB # TODO: Check if this is still correct
40 select SOC_AMD_COMMON_BLOCK_ACPI_CPPC # TODO: Check if this is still correct
Felix Held8ec90ac2023-03-07 00:31:41 +010041 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
Martin Roth9c64c082022-10-18 17:54:52 -060042 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO # TODO: Check if this is still correct
43 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS # TODO: Check if this is still correct
Fred Reitberger2dceb122022-11-04 14:37:34 -040044 select SOC_AMD_COMMON_BLOCK_AOAC
Martin Roth9c64c082022-10-18 17:54:52 -060045 select SOC_AMD_COMMON_BLOCK_APOB # TODO: Check if this is still correct
Fred Reitberger2dceb122022-11-04 14:37:34 -040046 select SOC_AMD_COMMON_BLOCK_APOB_HASH
47 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Helda63f8592023-03-24 16:30:55 +010048 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Fred Reitberger28908412022-11-01 10:49:16 -040049 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
Felix Held268dadb2023-05-31 16:23:38 +020050 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN
Fred Reitberger267edec2022-12-13 12:56:09 -050051 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Martin Roth9c64c082022-10-18 17:54:52 -060052 select SOC_AMD_COMMON_BLOCK_GRAPHICS # TODO: Check if this is still correct
Fred Reitberger267edec2022-12-13 12:56:09 -050053 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
54 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Fred Reitberger2dceb122022-11-04 14:37:34 -040055 select SOC_AMD_COMMON_BLOCK_I2C
56 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
57 select SOC_AMD_COMMON_BLOCK_IOMMU
Fred Reitberger267edec2022-12-13 12:56:09 -050058 select SOC_AMD_COMMON_BLOCK_LPC
Fred Reitberger2dceb122022-11-04 14:37:34 -040059 select SOC_AMD_COMMON_BLOCK_MCAX
60 select SOC_AMD_COMMON_BLOCK_NONCAR
Fred Reitbergera6514e22022-12-07 08:39:55 -050061 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_PCIE_CLK_REQ
Fred Reitberger2dceb122022-11-04 14:37:34 -040065 select SOC_AMD_COMMON_BLOCK_PM
66 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE
Martin Roth9c64c082022-10-18 17:54:52 -060067 select SOC_AMD_COMMON_BLOCK_PSP_GEN2 # TODO: Check if this is still correct
Martin Roth10c43a22023-02-02 17:21:37 -070068 select SOC_AMD_COMMON_BLOCK_RESET
Fred Reitberger2dceb122022-11-04 14:37:34 -040069 select SOC_AMD_COMMON_BLOCK_SMBUS
70 select SOC_AMD_COMMON_BLOCK_SMI
Fred Reitberger267edec2022-12-13 12:56:09 -050071 select SOC_AMD_COMMON_BLOCK_SMM
72 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held65d822e2023-01-12 23:11:42 +010073 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitberger2dceb122022-11-04 14:37:34 -040074 select SOC_AMD_COMMON_BLOCK_SPI
Felix Held23a398e2023-03-23 23:44:03 +010075 select SOC_AMD_COMMON_BLOCK_SVI3
Felix Held60df7ca2023-03-24 20:33:15 +010076 select SOC_AMD_COMMON_BLOCK_TSC
Fred Reitberger2dceb122022-11-04 14:37:34 -040077 select SOC_AMD_COMMON_BLOCK_UART
78 select SOC_AMD_COMMON_BLOCK_UCODE
Jon Murphydf2edde2023-04-06 17:15:14 -060079 select SOC_AMD_COMMON_BLOCK_XHCI
Martin Roth9c64c082022-10-18 17:54:52 -060080 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB # TODO: Check if this is still correct
Konrad Adamczykff786b52023-06-27 13:18:30 +000081 select SOC_AMD_COMMON_FSP_DMI_TABLES
Martin Roth9c64c082022-10-18 17:54:52 -060082 select SOC_AMD_COMMON_FSP_PCI # TODO: Check if this is still correct
Fred Reitberger010c4082023-01-11 15:11:48 -050083 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Martin Roth1a3de8e2022-10-06 15:57:21 -060084 select SSE2
85 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060086 select USE_DDR5
Martin Roth1a3de8e2022-10-06 15:57:21 -060087 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
88 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
89 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
90 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
91 select X86_AMD_FIXED_MTRRS
92 select X86_INIT_NEED_1_SIPI
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010093 help
Martin Roth20646cd2023-01-04 21:27:06 -070094 AMD Phoenix support
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010095
Martin Roth20646cd2023-01-04 21:27:06 -070096if SOC_AMD_PHOENIX
Martin Roth1a3de8e2022-10-06 15:57:21 -060097
Martin Roth1a3de8e2022-10-06 15:57:21 -060098config CHIPSET_DEVICETREE
99 string
Martin Roth20646cd2023-01-04 21:27:06 -0700100 default "soc/amd/phoenix/chipset.cb"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600101
102config EARLY_RESERVED_DRAM_BASE
103 hex
104 default 0x2000000
105 help
106 This variable defines the base address of the DRAM which is reserved
107 for usage by coreboot in early stages (i.e. before ramstage is up).
108 This memory gets reserved in BIOS tables to ensure that the OS does
109 not use it, thus preventing corruption of OS memory in case of S3
110 resume.
111
112config EARLYRAM_BSP_STACK_SIZE
113 hex
114 default 0x1000
115
116config PSP_APOB_DRAM_ADDRESS
117 hex
118 default 0x2001000
119 help
120 Location in DRAM where the PSP will copy the AGESA PSP Output
121 Block.
122
123config PSP_APOB_DRAM_SIZE
124 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500125 default 0x40000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600126
127config PSP_SHAREDMEM_BASE
128 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500129 default 0x2041000 if VBOOT
Martin Roth1a3de8e2022-10-06 15:57:21 -0600130 default 0x0
131 help
132 This variable defines the base address in DRAM memory where PSP copies
133 the vboot workbuf. This is used in the linker script to have a static
134 allocation for the buffer as well as for adding relevant entries in
135 the BIOS directory table for the PSP.
136
137config PSP_SHAREDMEM_SIZE
138 hex
139 default 0x8000 if VBOOT
140 default 0x0
141 help
142 Sets the maximum size for the PSP to pass the vboot workbuf and
143 any logs or timestamps back to coreboot. This will be copied
144 into main memory by the PSP and will be available when the x86 is
145 started. The workbuf's base depends on the address of the reset
146 vector.
147
148config PRE_X86_CBMEM_CONSOLE_SIZE
149 hex
150 default 0x1600
151 help
152 Size of the CBMEM console used in PSP verstage.
153
154config PRERAM_CBMEM_CONSOLE_SIZE
155 hex
156 default 0x1600
157 help
158 Increase this value if preram cbmem console is getting truncated
159
160config CBFS_MCACHE_SIZE
161 hex
162 default 0x2000 if VBOOT_STARTS_BEFORE_BOOTBLOCK
163
164config C_ENV_BOOTBLOCK_SIZE
165 hex
166 default 0x10000
167 help
168 Sets the size of the bootblock stage that should be loaded in DRAM.
169 This variable controls the DRAM allocation size in linker script
170 for bootblock stage.
171
172config ROMSTAGE_ADDR
173 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500174 default 0x2060000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600175 help
176 Sets the address in DRAM where romstage should be loaded.
177
178config ROMSTAGE_SIZE
179 hex
180 default 0x80000
181 help
182 Sets the size of DRAM allocation for romstage in linker script.
183
184config FSP_M_ADDR
185 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500186 default 0x20E0000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600187 help
188 Sets the address in DRAM where FSP-M should be loaded. cbfstool
189 performs relocation of FSP-M to this address.
190
191config FSP_M_SIZE
192 hex
193 default 0xC0000
194 help
195 Sets the size of DRAM allocation for FSP-M in linker script.
196
197config FSP_TEMP_RAM_SIZE
198 hex
199 default 0x40000
200 help
201 The amount of coreboot-allocated heap and stack usage by the FSP.
202
203config VERSTAGE_ADDR
204 hex
205 depends on VBOOT_SEPARATE_VERSTAGE
Fred Reitberger40646772023-02-08 13:05:05 -0500206 default 0x21A0000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600207 help
208 Sets the address in DRAM where verstage should be loaded if running
209 as a separate stage on x86.
210
211config VERSTAGE_SIZE
212 hex
213 depends on VBOOT_SEPARATE_VERSTAGE
214 default 0x80000
215 help
216 Sets the size of DRAM allocation for verstage in linker script if
217 running as a separate stage on x86.
218
219config ASYNC_FILE_LOADING
220 bool "Loads files from SPI asynchronously"
221 select COOP_MULTITASKING
222 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
223 select CBFS_PRELOAD
224 help
225 When enabled, the platform will use the LPC SPI DMA controller to
226 asynchronously load contents from the SPI ROM. This will improve
227 boot time because the CPUs can be performing useful work while the
228 SPI contents are being preloaded.
229
230config CBFS_CACHE_SIZE
231 hex
232 default 0x40000 if CBFS_PRELOAD
233
234config RO_REGION_ONLY
235 string
236 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
237 default "apu/amdfw"
238
239config ECAM_MMCONF_BASE_ADDRESS
Ritul Guru75a073d2023-01-12 17:42:54 +0530240 default 0xE0000000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600241
242config ECAM_MMCONF_BUS_NUMBER
Ritul Guru75a073d2023-01-12 17:42:54 +0530243 default 256
Martin Roth1a3de8e2022-10-06 15:57:21 -0600244
245config MAX_CPUS
246 int
Martin Roth1a3de8e2022-10-06 15:57:21 -0600247 default 16
248 help
249 Maximum number of threads the platform can have.
250
Martin Rothab059642023-05-01 14:00:40 -0600251config VGA_BIOS_ID
252 string
Felix Heldbc069ea2023-05-26 18:23:43 +0200253 default "1002,15bf"
Martin Rothab059642023-05-01 14:00:40 -0600254 help
255 The default VGA BIOS PCI vendor/device ID should be set to the
256 result of the map_oprom_vendev() function in graphics.c.
257
Felix Heldd4440dd2023-05-26 18:25:33 +0200258# TODO: add VGA_BIOS_FILE default once the correct VBIOS binaries are available in amd_blobs
Martin Rothab059642023-05-01 14:00:40 -0600259
Martin Roth1a3de8e2022-10-06 15:57:21 -0600260config CONSOLE_UART_BASE_ADDRESS
261 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
262 hex
263 default 0xfedc9000 if UART_FOR_CONSOLE = 0
264 default 0xfedca000 if UART_FOR_CONSOLE = 1
265 default 0xfedce000 if UART_FOR_CONSOLE = 2
266 default 0xfedcf000 if UART_FOR_CONSOLE = 3
267 default 0xfedd1000 if UART_FOR_CONSOLE = 4
268
269config SMM_TSEG_SIZE
270 hex
271 default 0x800000 if HAVE_SMI_HANDLER
272 default 0x0
273
274config SMM_RESERVED_SIZE
275 hex
276 default 0x180000
277
278config SMM_MODULE_STACK_SIZE
279 hex
280 default 0x800
281
282config ACPI_BERT
283 bool "Build ACPI BERT Table"
284 default y
285 depends on HAVE_ACPI_TABLES
286 help
287 Report Machine Check errors identified in POST to the OS in an
288 ACPI Boot Error Record Table.
289
290config ACPI_BERT_SIZE
291 hex
292 default 0x4000 if ACPI_BERT
293 default 0x0
294 help
295 Specify the amount of DRAM reserved for gathering the data used to
296 generate the ACPI table.
297
298config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
299 int
300 default 150
301
302config DISABLE_SPI_FLASH_ROM_SHARING
303 def_bool n
304 help
305 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
306 which indicates a board level ROM transaction request. This
307 removes arbitration with board and assumes the chipset controls
308 the SPI flash bus entirely.
309
310config DISABLE_KEYBOARD_RESET_PIN
311 bool
312 help
Martin Roth9ceac742023-02-08 14:26:02 -0700313 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Martin Roth1a3de8e2022-10-06 15:57:21 -0600314
Martin Roth1a3de8e2022-10-06 15:57:21 -0600315menu "PSP Configuration Options"
316
317config AMD_FWM_POSITION_INDEX
Fred Reitbergerf14d2082023-04-06 10:55:26 -0400318 int
319 default 5
Martin Roth1a3de8e2022-10-06 15:57:21 -0600320
321comment "AMD Firmware Directory Table set to location for 512KB ROM"
322 depends on AMD_FWM_POSITION_INDEX = 0
323comment "AMD Firmware Directory Table set to location for 1MB ROM"
324 depends on AMD_FWM_POSITION_INDEX = 1
325comment "AMD Firmware Directory Table set to location for 2MB ROM"
326 depends on AMD_FWM_POSITION_INDEX = 2
327comment "AMD Firmware Directory Table set to location for 4MB ROM"
328 depends on AMD_FWM_POSITION_INDEX = 3
329comment "AMD Firmware Directory Table set to location for 8MB ROM"
330 depends on AMD_FWM_POSITION_INDEX = 4
331comment "AMD Firmware Directory Table set to location for 16MB ROM"
332 depends on AMD_FWM_POSITION_INDEX = 5
333
334config AMDFW_CONFIG_FILE
335 string "AMD PSP Firmware config file"
Martin Roth20646cd2023-01-04 21:27:06 -0700336 default "src/soc/amd/phoenix/fw.cfg"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600337 help
338 Specify the path/location of AMD PSP Firmware config file.
339
340config PSP_DISABLE_POSTCODES
341 bool "Disable PSP post codes"
342 help
343 Disables the output of port80 post codes from PSP.
344
345config PSP_POSTCODES_ON_ESPI
346 bool "Use eSPI bus for PSP post codes"
347 default y
348 depends on !PSP_DISABLE_POSTCODES
349 help
350 Select to send PSP port80 post codes on eSPI bus.
351 If not selected, PSP port80 codes will be sent on LPC bus.
352
353config PSP_LOAD_MP2_FW
354 bool
355 default n
356 help
357 Include the MP2 firmwares and configuration into the PSP build.
358
359 If unsure, answer 'n'
360
361config PSP_UNLOCK_SECURE_DEBUG
362 bool "Unlock secure debug"
363 default y
364 help
365 Select this item to enable secure debug options in PSP.
366
367config HAVE_PSP_WHITELIST_FILE
368 bool "Include a debug whitelist file in PSP build"
369 default n
370 help
371 Support secured unlock prior to reset using a whitelisted
372 serial number. This feature requires a signed whitelist image
373 and bootloader from AMD.
374
375 If unsure, answer 'n'
376
377config PSP_WHITELIST_FILE
378 string "Debug whitelist file path"
379 depends on HAVE_PSP_WHITELIST_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700380 default "site-local/3rdparty/amd_blobs/phoenix/PSP/wtl-phx.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600381
382config HAVE_SPL_FILE
383 bool "Have a mainboard specific SPL table file"
384 default n
385 help
386 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
387 is required to support PSP FW anti-rollback and needs to be created by AMD.
388 The default SPL file applies to all boards that use the concerned SoC and
389 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
390 can be applied through SPL_TABLE_FILE config.
391
392 If unsure, answer 'n'
393
394config SPL_TABLE_FILE
395 string "SPL table file"
396 depends on HAVE_SPL_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700397 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_PHX.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600398
399config HAVE_SPL_RW_AB_FILE
400 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
401 default n
402 depends on HAVE_SPL_FILE
403 depends on VBOOT_SLOTS_RW_AB
404 help
405 Have separate mainboard-specific Security Patch Level (SPL) table
406 file for the RW A/B FMAP partitions. See the help text of
407 HAVE_SPL_FILE for a more detailed description.
408
409config SPL_RW_AB_TABLE_FILE
410 string "Separate SPL table file for RW A/B partitions"
411 depends on HAVE_SPL_RW_AB_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700412 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_PHX.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600413
414config PSP_SOFTFUSE_BITS
415 string "PSP Soft Fuse bits to enable"
Fred Reitberger5c1c7b62023-05-12 12:53:52 -0400416 default "36 28 6"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600417 help
418 Space separated list of Soft Fuse bits to enable.
419 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
420 Bit 7: Disable PSP postcodes on Renoir and newer chips only
421 (Set by PSP_DISABLE_PORT80)
422 Bit 15: PSP debug output destination:
423 0=SoC MMIO UART, 1=IO port 0x3F8
424 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
425
426 See #55758 (NDA) for additional bit definitions.
427
428config PSP_VERSTAGE_FILE
429 string "Specify the PSP_verstage file path"
430 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
431 default "\$(obj)/psp_verstage.bin"
432 help
433 Add psp_verstage file to the build & PSP Directory Table
434
435config PSP_VERSTAGE_SIGNING_TOKEN
436 string "Specify the PSP_verstage Signature Token file path"
437 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
438 default ""
439 help
440 Add psp_verstage signature token to the build & PSP Directory Table
441
442endmenu
443
444config VBOOT
445 select VBOOT_VBNV_CMOS
446 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
447
448config VBOOT_STARTS_BEFORE_BOOTBLOCK
449 def_bool n
450 depends on VBOOT
451 select ARCH_VERSTAGE_ARMV7
452 help
453 Runs verstage on the PSP. Only available on
454 certain ChromeOS branded parts from AMD.
455
456config VBOOT_HASH_BLOCK_SIZE
457 hex
458 default 0x9000
459 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
460 help
461 Because the bulk of the time in psp_verstage to hash the RO cbfs is
462 spent in the overhead of doing svc calls, increasing the hash block
463 size significantly cuts the verstage hashing time as seen below.
464
465 4k takes 180ms
466 16k takes 44ms
467 32k takes 33.7ms
468 36k takes 32.5ms
469 There's actually still room for an even bigger stack, but we've
470 reached a point of diminishing returns.
471
472config CMOS_RECOVERY_BYTE
473 hex
474 default 0x51
475 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
476 help
477 If the workbuf is not passed from the PSP to coreboot, set the
478 recovery flag and reboot. The PSP will read this byte, mark the
479 recovery request in VBNV, and reset the system into recovery mode.
480
481 This is the byte before the default first byte used by VBNV
482 (0x26 + 0x0E - 1)
483
484if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
485
486config RWA_REGION_ONLY
487 string
488 default "apu/amdfw_a"
489 help
490 Add a space-delimited list of filenames that should only be in the
491 RW-A section.
492
493config RWB_REGION_ONLY
494 string
495 default "apu/amdfw_b"
496 help
497 Add a space-delimited list of filenames that should only be in the
498 RW-B section.
499
500endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
501
Fred Reitbergerd45402a2023-04-24 12:18:31 -0400502endif # SOC_AMD_PHOENIX