blob: 5f4e5d174e48923d98a5c289f6df7cce848a6f6f [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
Fred Reitberger559f3d42023-06-29 15:13:49 -040040 select SOC_AMD_COMMON_BLOCK_ACPI_CPPC
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
Fred Reitberger559f3d42023-06-29 15:13:49 -040045 select SOC_AMD_COMMON_BLOCK_APOB
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
Fred Reitberger559f3d42023-06-29 15:13:49 -040080 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
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
Fred Reitberger5b9957b2023-06-29 15:15:26 -040091 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
Martin Roth1a3de8e2022-10-06 15:57:21 -060092 select X86_AMD_FIXED_MTRRS
93 select X86_INIT_NEED_1_SIPI
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010094 help
Martin Roth20646cd2023-01-04 21:27:06 -070095 AMD Phoenix support
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010096
Martin Roth20646cd2023-01-04 21:27:06 -070097if SOC_AMD_PHOENIX
Martin Roth1a3de8e2022-10-06 15:57:21 -060098
Martin Roth1a3de8e2022-10-06 15:57:21 -060099config CHIPSET_DEVICETREE
100 string
Martin Roth20646cd2023-01-04 21:27:06 -0700101 default "soc/amd/phoenix/chipset.cb"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600102
103config EARLY_RESERVED_DRAM_BASE
104 hex
105 default 0x2000000
106 help
107 This variable defines the base address of the DRAM which is reserved
108 for usage by coreboot in early stages (i.e. before ramstage is up).
109 This memory gets reserved in BIOS tables to ensure that the OS does
110 not use it, thus preventing corruption of OS memory in case of S3
111 resume.
112
113config EARLYRAM_BSP_STACK_SIZE
114 hex
115 default 0x1000
116
117config PSP_APOB_DRAM_ADDRESS
118 hex
119 default 0x2001000
120 help
121 Location in DRAM where the PSP will copy the AGESA PSP Output
122 Block.
123
124config PSP_APOB_DRAM_SIZE
125 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500126 default 0x40000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600127
128config PSP_SHAREDMEM_BASE
129 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500130 default 0x2041000 if VBOOT
Martin Roth1a3de8e2022-10-06 15:57:21 -0600131 default 0x0
132 help
133 This variable defines the base address in DRAM memory where PSP copies
134 the vboot workbuf. This is used in the linker script to have a static
135 allocation for the buffer as well as for adding relevant entries in
136 the BIOS directory table for the PSP.
137
138config PSP_SHAREDMEM_SIZE
139 hex
140 default 0x8000 if VBOOT
141 default 0x0
142 help
143 Sets the maximum size for the PSP to pass the vboot workbuf and
144 any logs or timestamps back to coreboot. This will be copied
145 into main memory by the PSP and will be available when the x86 is
146 started. The workbuf's base depends on the address of the reset
147 vector.
148
149config PRE_X86_CBMEM_CONSOLE_SIZE
150 hex
151 default 0x1600
152 help
153 Size of the CBMEM console used in PSP verstage.
154
155config PRERAM_CBMEM_CONSOLE_SIZE
156 hex
157 default 0x1600
158 help
159 Increase this value if preram cbmem console is getting truncated
160
161config CBFS_MCACHE_SIZE
162 hex
163 default 0x2000 if VBOOT_STARTS_BEFORE_BOOTBLOCK
164
165config C_ENV_BOOTBLOCK_SIZE
166 hex
167 default 0x10000
168 help
169 Sets the size of the bootblock stage that should be loaded in DRAM.
170 This variable controls the DRAM allocation size in linker script
171 for bootblock stage.
172
173config ROMSTAGE_ADDR
174 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500175 default 0x2060000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600176 help
177 Sets the address in DRAM where romstage should be loaded.
178
179config ROMSTAGE_SIZE
180 hex
181 default 0x80000
182 help
183 Sets the size of DRAM allocation for romstage in linker script.
184
185config FSP_M_ADDR
186 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500187 default 0x20E0000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600188 help
189 Sets the address in DRAM where FSP-M should be loaded. cbfstool
190 performs relocation of FSP-M to this address.
191
192config FSP_M_SIZE
193 hex
194 default 0xC0000
195 help
196 Sets the size of DRAM allocation for FSP-M in linker script.
197
198config FSP_TEMP_RAM_SIZE
199 hex
200 default 0x40000
201 help
202 The amount of coreboot-allocated heap and stack usage by the FSP.
203
204config VERSTAGE_ADDR
205 hex
206 depends on VBOOT_SEPARATE_VERSTAGE
Fred Reitberger40646772023-02-08 13:05:05 -0500207 default 0x21A0000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600208 help
209 Sets the address in DRAM where verstage should be loaded if running
210 as a separate stage on x86.
211
212config VERSTAGE_SIZE
213 hex
214 depends on VBOOT_SEPARATE_VERSTAGE
215 default 0x80000
216 help
217 Sets the size of DRAM allocation for verstage in linker script if
218 running as a separate stage on x86.
219
220config ASYNC_FILE_LOADING
221 bool "Loads files from SPI asynchronously"
222 select COOP_MULTITASKING
223 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
224 select CBFS_PRELOAD
225 help
226 When enabled, the platform will use the LPC SPI DMA controller to
227 asynchronously load contents from the SPI ROM. This will improve
228 boot time because the CPUs can be performing useful work while the
229 SPI contents are being preloaded.
230
231config CBFS_CACHE_SIZE
232 hex
233 default 0x40000 if CBFS_PRELOAD
234
235config RO_REGION_ONLY
236 string
237 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
238 default "apu/amdfw"
239
240config ECAM_MMCONF_BASE_ADDRESS
Ritul Guru75a073d2023-01-12 17:42:54 +0530241 default 0xE0000000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600242
243config ECAM_MMCONF_BUS_NUMBER
Ritul Guru75a073d2023-01-12 17:42:54 +0530244 default 256
Martin Roth1a3de8e2022-10-06 15:57:21 -0600245
246config MAX_CPUS
247 int
Martin Roth1a3de8e2022-10-06 15:57:21 -0600248 default 16
249 help
250 Maximum number of threads the platform can have.
251
Martin Rothab059642023-05-01 14:00:40 -0600252config VGA_BIOS_ID
253 string
Felix Heldbc069ea2023-05-26 18:23:43 +0200254 default "1002,15bf"
Martin Rothab059642023-05-01 14:00:40 -0600255 help
256 The default VGA BIOS PCI vendor/device ID should be set to the
257 result of the map_oprom_vendev() function in graphics.c.
258
Felix Heldd4440dd2023-05-26 18:25:33 +0200259# TODO: add VGA_BIOS_FILE default once the correct VBIOS binaries are available in amd_blobs
Martin Rothab059642023-05-01 14:00:40 -0600260
Martin Roth1a3de8e2022-10-06 15:57:21 -0600261config CONSOLE_UART_BASE_ADDRESS
262 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
263 hex
264 default 0xfedc9000 if UART_FOR_CONSOLE = 0
265 default 0xfedca000 if UART_FOR_CONSOLE = 1
266 default 0xfedce000 if UART_FOR_CONSOLE = 2
267 default 0xfedcf000 if UART_FOR_CONSOLE = 3
268 default 0xfedd1000 if UART_FOR_CONSOLE = 4
269
270config SMM_TSEG_SIZE
271 hex
272 default 0x800000 if HAVE_SMI_HANDLER
273 default 0x0
274
275config SMM_RESERVED_SIZE
276 hex
277 default 0x180000
278
279config SMM_MODULE_STACK_SIZE
280 hex
281 default 0x800
282
283config ACPI_BERT
284 bool "Build ACPI BERT Table"
285 default y
286 depends on HAVE_ACPI_TABLES
287 help
288 Report Machine Check errors identified in POST to the OS in an
289 ACPI Boot Error Record Table.
290
291config ACPI_BERT_SIZE
292 hex
293 default 0x4000 if ACPI_BERT
294 default 0x0
295 help
296 Specify the amount of DRAM reserved for gathering the data used to
297 generate the ACPI table.
298
299config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
300 int
301 default 150
302
303config DISABLE_SPI_FLASH_ROM_SHARING
304 def_bool n
305 help
306 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
307 which indicates a board level ROM transaction request. This
308 removes arbitration with board and assumes the chipset controls
309 the SPI flash bus entirely.
310
311config DISABLE_KEYBOARD_RESET_PIN
312 bool
313 help
Martin Roth9ceac742023-02-08 14:26:02 -0700314 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Martin Roth1a3de8e2022-10-06 15:57:21 -0600315
Martin Roth1a3de8e2022-10-06 15:57:21 -0600316menu "PSP Configuration Options"
317
318config AMD_FWM_POSITION_INDEX
Fred Reitbergerf14d2082023-04-06 10:55:26 -0400319 int
320 default 5
Martin Roth1a3de8e2022-10-06 15:57:21 -0600321
322comment "AMD Firmware Directory Table set to location for 512KB ROM"
323 depends on AMD_FWM_POSITION_INDEX = 0
324comment "AMD Firmware Directory Table set to location for 1MB ROM"
325 depends on AMD_FWM_POSITION_INDEX = 1
326comment "AMD Firmware Directory Table set to location for 2MB ROM"
327 depends on AMD_FWM_POSITION_INDEX = 2
328comment "AMD Firmware Directory Table set to location for 4MB ROM"
329 depends on AMD_FWM_POSITION_INDEX = 3
330comment "AMD Firmware Directory Table set to location for 8MB ROM"
331 depends on AMD_FWM_POSITION_INDEX = 4
332comment "AMD Firmware Directory Table set to location for 16MB ROM"
333 depends on AMD_FWM_POSITION_INDEX = 5
334
335config AMDFW_CONFIG_FILE
336 string "AMD PSP Firmware config file"
Martin Roth20646cd2023-01-04 21:27:06 -0700337 default "src/soc/amd/phoenix/fw.cfg"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600338 help
339 Specify the path/location of AMD PSP Firmware config file.
340
341config PSP_DISABLE_POSTCODES
342 bool "Disable PSP post codes"
343 help
344 Disables the output of port80 post codes from PSP.
345
346config PSP_POSTCODES_ON_ESPI
347 bool "Use eSPI bus for PSP post codes"
348 default y
349 depends on !PSP_DISABLE_POSTCODES
350 help
351 Select to send PSP port80 post codes on eSPI bus.
352 If not selected, PSP port80 codes will be sent on LPC bus.
353
354config PSP_LOAD_MP2_FW
355 bool
356 default n
357 help
358 Include the MP2 firmwares and configuration into the PSP build.
359
360 If unsure, answer 'n'
361
362config PSP_UNLOCK_SECURE_DEBUG
363 bool "Unlock secure debug"
364 default y
365 help
366 Select this item to enable secure debug options in PSP.
367
368config HAVE_PSP_WHITELIST_FILE
369 bool "Include a debug whitelist file in PSP build"
370 default n
371 help
372 Support secured unlock prior to reset using a whitelisted
373 serial number. This feature requires a signed whitelist image
374 and bootloader from AMD.
375
376 If unsure, answer 'n'
377
378config PSP_WHITELIST_FILE
379 string "Debug whitelist file path"
380 depends on HAVE_PSP_WHITELIST_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700381 default "site-local/3rdparty/amd_blobs/phoenix/PSP/wtl-phx.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600382
383config HAVE_SPL_FILE
384 bool "Have a mainboard specific SPL table file"
385 default n
386 help
387 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
388 is required to support PSP FW anti-rollback and needs to be created by AMD.
389 The default SPL file applies to all boards that use the concerned SoC and
390 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
391 can be applied through SPL_TABLE_FILE config.
392
393 If unsure, answer 'n'
394
395config SPL_TABLE_FILE
396 string "SPL table file"
397 depends on HAVE_SPL_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700398 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_PHX.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600399
400config HAVE_SPL_RW_AB_FILE
401 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
402 default n
403 depends on HAVE_SPL_FILE
404 depends on VBOOT_SLOTS_RW_AB
405 help
406 Have separate mainboard-specific Security Patch Level (SPL) table
407 file for the RW A/B FMAP partitions. See the help text of
408 HAVE_SPL_FILE for a more detailed description.
409
410config SPL_RW_AB_TABLE_FILE
411 string "Separate SPL table file for RW A/B partitions"
412 depends on HAVE_SPL_RW_AB_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700413 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_PHX.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600414
415config PSP_SOFTFUSE_BITS
416 string "PSP Soft Fuse bits to enable"
Fred Reitberger5c1c7b62023-05-12 12:53:52 -0400417 default "36 28 6"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600418 help
419 Space separated list of Soft Fuse bits to enable.
420 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
421 Bit 7: Disable PSP postcodes on Renoir and newer chips only
422 (Set by PSP_DISABLE_PORT80)
423 Bit 15: PSP debug output destination:
424 0=SoC MMIO UART, 1=IO port 0x3F8
425 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
426
427 See #55758 (NDA) for additional bit definitions.
428
429config PSP_VERSTAGE_FILE
430 string "Specify the PSP_verstage file path"
431 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
432 default "\$(obj)/psp_verstage.bin"
433 help
434 Add psp_verstage file to the build & PSP Directory Table
435
436config PSP_VERSTAGE_SIGNING_TOKEN
437 string "Specify the PSP_verstage Signature Token file path"
438 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
439 default ""
440 help
441 Add psp_verstage signature token to the build & PSP Directory Table
442
443endmenu
444
445config VBOOT
446 select VBOOT_VBNV_CMOS
447 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
448
449config VBOOT_STARTS_BEFORE_BOOTBLOCK
450 def_bool n
451 depends on VBOOT
452 select ARCH_VERSTAGE_ARMV7
453 help
454 Runs verstage on the PSP. Only available on
455 certain ChromeOS branded parts from AMD.
456
457config VBOOT_HASH_BLOCK_SIZE
458 hex
459 default 0x9000
460 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
461 help
462 Because the bulk of the time in psp_verstage to hash the RO cbfs is
463 spent in the overhead of doing svc calls, increasing the hash block
464 size significantly cuts the verstage hashing time as seen below.
465
466 4k takes 180ms
467 16k takes 44ms
468 32k takes 33.7ms
469 36k takes 32.5ms
470 There's actually still room for an even bigger stack, but we've
471 reached a point of diminishing returns.
472
473config CMOS_RECOVERY_BYTE
474 hex
475 default 0x51
476 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
477 help
478 If the workbuf is not passed from the PSP to coreboot, set the
479 recovery flag and reboot. The PSP will read this byte, mark the
480 recovery request in VBNV, and reset the system into recovery mode.
481
482 This is the byte before the default first byte used by VBNV
483 (0x26 + 0x0E - 1)
484
485if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
486
487config RWA_REGION_ONLY
488 string
489 default "apu/amdfw_a"
490 help
491 Add a space-delimited list of filenames that should only be in the
492 RW-A section.
493
494config RWB_REGION_ONLY
495 string
496 default "apu/amdfw_b"
497 help
498 Add a space-delimited list of filenames that should only be in the
499 RW-B section.
500
501endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
502
Fred Reitbergerd45402a2023-04-24 12:18:31 -0400503endif # SOC_AMD_PHOENIX