blob: 6df8fe7771c3d8481d7ea279d29fdfe0182c2dd5 [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
Fred Reitberger267edec2022-12-13 12:56:09 -050050 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Martin Roth9c64c082022-10-18 17:54:52 -060051 select SOC_AMD_COMMON_BLOCK_GRAPHICS # TODO: Check if this is still correct
Fred Reitberger267edec2022-12-13 12:56:09 -050052 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
53 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Fred Reitberger2dceb122022-11-04 14:37:34 -040054 select SOC_AMD_COMMON_BLOCK_I2C
55 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
56 select SOC_AMD_COMMON_BLOCK_IOMMU
Fred Reitberger267edec2022-12-13 12:56:09 -050057 select SOC_AMD_COMMON_BLOCK_LPC
Fred Reitberger2dceb122022-11-04 14:37:34 -040058 select SOC_AMD_COMMON_BLOCK_MCAX
59 select SOC_AMD_COMMON_BLOCK_NONCAR
Fred Reitbergera6514e22022-12-07 08:39:55 -050060 select SOC_AMD_COMMON_BLOCK_PCI
61 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
62 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER
63 select SOC_AMD_COMMON_BLOCK_PCIE_CLK_REQ
Fred Reitberger2dceb122022-11-04 14:37:34 -040064 select SOC_AMD_COMMON_BLOCK_PM
65 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE
Martin Roth9c64c082022-10-18 17:54:52 -060066 select SOC_AMD_COMMON_BLOCK_PSP_GEN2 # TODO: Check if this is still correct
Martin Roth10c43a22023-02-02 17:21:37 -070067 select SOC_AMD_COMMON_BLOCK_RESET
Fred Reitberger2dceb122022-11-04 14:37:34 -040068 select SOC_AMD_COMMON_BLOCK_SMBUS
69 select SOC_AMD_COMMON_BLOCK_SMI
Fred Reitberger267edec2022-12-13 12:56:09 -050070 select SOC_AMD_COMMON_BLOCK_SMM
71 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held65d822e2023-01-12 23:11:42 +010072 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitberger2dceb122022-11-04 14:37:34 -040073 select SOC_AMD_COMMON_BLOCK_SPI
Felix Held23a398e2023-03-23 23:44:03 +010074 select SOC_AMD_COMMON_BLOCK_SVI3
Felix Held60df7ca2023-03-24 20:33:15 +010075 select SOC_AMD_COMMON_BLOCK_TSC
Fred Reitberger2dceb122022-11-04 14:37:34 -040076 select SOC_AMD_COMMON_BLOCK_UART
77 select SOC_AMD_COMMON_BLOCK_UCODE
Jon Murphydf2edde2023-04-06 17:15:14 -060078 select SOC_AMD_COMMON_BLOCK_XHCI
Martin Roth9c64c082022-10-18 17:54:52 -060079 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB # TODO: Check if this is still correct
80 select SOC_AMD_COMMON_FSP_DMI_TABLES # TODO: Check if this is still correct
81 select SOC_AMD_COMMON_FSP_PCI # TODO: Check if this is still correct
Fred Reitberger010c4082023-01-11 15:11:48 -050082 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Martin Roth1a3de8e2022-10-06 15:57:21 -060083 select SSE2
84 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060085 select USE_DDR5
Martin Roth1a3de8e2022-10-06 15:57:21 -060086 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
87 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
88 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
89 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
90 select X86_AMD_FIXED_MTRRS
91 select X86_INIT_NEED_1_SIPI
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010092 help
Martin Roth20646cd2023-01-04 21:27:06 -070093 AMD Phoenix support
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010094
Martin Roth20646cd2023-01-04 21:27:06 -070095if SOC_AMD_PHOENIX
Martin Roth1a3de8e2022-10-06 15:57:21 -060096
Martin Roth1a3de8e2022-10-06 15:57:21 -060097config CHIPSET_DEVICETREE
98 string
Martin Roth20646cd2023-01-04 21:27:06 -070099 default "soc/amd/phoenix/chipset.cb"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600100
101config EARLY_RESERVED_DRAM_BASE
102 hex
103 default 0x2000000
104 help
105 This variable defines the base address of the DRAM which is reserved
106 for usage by coreboot in early stages (i.e. before ramstage is up).
107 This memory gets reserved in BIOS tables to ensure that the OS does
108 not use it, thus preventing corruption of OS memory in case of S3
109 resume.
110
111config EARLYRAM_BSP_STACK_SIZE
112 hex
113 default 0x1000
114
115config PSP_APOB_DRAM_ADDRESS
116 hex
117 default 0x2001000
118 help
119 Location in DRAM where the PSP will copy the AGESA PSP Output
120 Block.
121
122config PSP_APOB_DRAM_SIZE
123 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500124 default 0x40000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600125
126config PSP_SHAREDMEM_BASE
127 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500128 default 0x2041000 if VBOOT
Martin Roth1a3de8e2022-10-06 15:57:21 -0600129 default 0x0
130 help
131 This variable defines the base address in DRAM memory where PSP copies
132 the vboot workbuf. This is used in the linker script to have a static
133 allocation for the buffer as well as for adding relevant entries in
134 the BIOS directory table for the PSP.
135
136config PSP_SHAREDMEM_SIZE
137 hex
138 default 0x8000 if VBOOT
139 default 0x0
140 help
141 Sets the maximum size for the PSP to pass the vboot workbuf and
142 any logs or timestamps back to coreboot. This will be copied
143 into main memory by the PSP and will be available when the x86 is
144 started. The workbuf's base depends on the address of the reset
145 vector.
146
147config PRE_X86_CBMEM_CONSOLE_SIZE
148 hex
149 default 0x1600
150 help
151 Size of the CBMEM console used in PSP verstage.
152
153config PRERAM_CBMEM_CONSOLE_SIZE
154 hex
155 default 0x1600
156 help
157 Increase this value if preram cbmem console is getting truncated
158
159config CBFS_MCACHE_SIZE
160 hex
161 default 0x2000 if VBOOT_STARTS_BEFORE_BOOTBLOCK
162
163config C_ENV_BOOTBLOCK_SIZE
164 hex
165 default 0x10000
166 help
167 Sets the size of the bootblock stage that should be loaded in DRAM.
168 This variable controls the DRAM allocation size in linker script
169 for bootblock stage.
170
171config ROMSTAGE_ADDR
172 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500173 default 0x2060000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600174 help
175 Sets the address in DRAM where romstage should be loaded.
176
177config ROMSTAGE_SIZE
178 hex
179 default 0x80000
180 help
181 Sets the size of DRAM allocation for romstage in linker script.
182
183config FSP_M_ADDR
184 hex
Fred Reitberger40646772023-02-08 13:05:05 -0500185 default 0x20E0000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600186 help
187 Sets the address in DRAM where FSP-M should be loaded. cbfstool
188 performs relocation of FSP-M to this address.
189
190config FSP_M_SIZE
191 hex
192 default 0xC0000
193 help
194 Sets the size of DRAM allocation for FSP-M in linker script.
195
196config FSP_TEMP_RAM_SIZE
197 hex
198 default 0x40000
199 help
200 The amount of coreboot-allocated heap and stack usage by the FSP.
201
202config VERSTAGE_ADDR
203 hex
204 depends on VBOOT_SEPARATE_VERSTAGE
Fred Reitberger40646772023-02-08 13:05:05 -0500205 default 0x21A0000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600206 help
207 Sets the address in DRAM where verstage should be loaded if running
208 as a separate stage on x86.
209
210config VERSTAGE_SIZE
211 hex
212 depends on VBOOT_SEPARATE_VERSTAGE
213 default 0x80000
214 help
215 Sets the size of DRAM allocation for verstage in linker script if
216 running as a separate stage on x86.
217
218config ASYNC_FILE_LOADING
219 bool "Loads files from SPI asynchronously"
220 select COOP_MULTITASKING
221 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
222 select CBFS_PRELOAD
223 help
224 When enabled, the platform will use the LPC SPI DMA controller to
225 asynchronously load contents from the SPI ROM. This will improve
226 boot time because the CPUs can be performing useful work while the
227 SPI contents are being preloaded.
228
229config CBFS_CACHE_SIZE
230 hex
231 default 0x40000 if CBFS_PRELOAD
232
233config RO_REGION_ONLY
234 string
235 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
236 default "apu/amdfw"
237
238config ECAM_MMCONF_BASE_ADDRESS
Ritul Guru75a073d2023-01-12 17:42:54 +0530239 default 0xE0000000
Martin Roth1a3de8e2022-10-06 15:57:21 -0600240
241config ECAM_MMCONF_BUS_NUMBER
Ritul Guru75a073d2023-01-12 17:42:54 +0530242 default 256
Martin Roth1a3de8e2022-10-06 15:57:21 -0600243
244config MAX_CPUS
245 int
Martin Roth1a3de8e2022-10-06 15:57:21 -0600246 default 16
247 help
248 Maximum number of threads the platform can have.
249
250config CONSOLE_UART_BASE_ADDRESS
251 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
252 hex
253 default 0xfedc9000 if UART_FOR_CONSOLE = 0
254 default 0xfedca000 if UART_FOR_CONSOLE = 1
255 default 0xfedce000 if UART_FOR_CONSOLE = 2
256 default 0xfedcf000 if UART_FOR_CONSOLE = 3
257 default 0xfedd1000 if UART_FOR_CONSOLE = 4
258
259config SMM_TSEG_SIZE
260 hex
261 default 0x800000 if HAVE_SMI_HANDLER
262 default 0x0
263
264config SMM_RESERVED_SIZE
265 hex
266 default 0x180000
267
268config SMM_MODULE_STACK_SIZE
269 hex
270 default 0x800
271
272config ACPI_BERT
273 bool "Build ACPI BERT Table"
274 default y
275 depends on HAVE_ACPI_TABLES
276 help
277 Report Machine Check errors identified in POST to the OS in an
278 ACPI Boot Error Record Table.
279
280config ACPI_BERT_SIZE
281 hex
282 default 0x4000 if ACPI_BERT
283 default 0x0
284 help
285 Specify the amount of DRAM reserved for gathering the data used to
286 generate the ACPI table.
287
288config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
289 int
290 default 150
291
292config DISABLE_SPI_FLASH_ROM_SHARING
293 def_bool n
294 help
295 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
296 which indicates a board level ROM transaction request. This
297 removes arbitration with board and assumes the chipset controls
298 the SPI flash bus entirely.
299
300config DISABLE_KEYBOARD_RESET_PIN
301 bool
302 help
Martin Roth9ceac742023-02-08 14:26:02 -0700303 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Martin Roth1a3de8e2022-10-06 15:57:21 -0600304
Martin Roth1a3de8e2022-10-06 15:57:21 -0600305menu "PSP Configuration Options"
306
307config AMD_FWM_POSITION_INDEX
308 int "Firmware Directory Table location (0 to 5)"
309 range 0 5
310 default 0 if BOARD_ROMSIZE_KB_512
311 default 1 if BOARD_ROMSIZE_KB_1024
312 default 2 if BOARD_ROMSIZE_KB_2048
313 default 3 if BOARD_ROMSIZE_KB_4096
314 default 4 if BOARD_ROMSIZE_KB_8192
315 default 5 if BOARD_ROMSIZE_KB_16384
316 help
317 Typically this is calculated by the ROM size, but there may
318 be situations where you want to put the firmware directory
319 table in a different location.
320 0: 512 KB - 0xFFFA0000
321 1: 1 MB - 0xFFF20000
322 2: 2 MB - 0xFFE20000
323 3: 4 MB - 0xFFC20000
324 4: 8 MB - 0xFF820000
325 5: 16 MB - 0xFF020000
326
327comment "AMD Firmware Directory Table set to location for 512KB ROM"
328 depends on AMD_FWM_POSITION_INDEX = 0
329comment "AMD Firmware Directory Table set to location for 1MB ROM"
330 depends on AMD_FWM_POSITION_INDEX = 1
331comment "AMD Firmware Directory Table set to location for 2MB ROM"
332 depends on AMD_FWM_POSITION_INDEX = 2
333comment "AMD Firmware Directory Table set to location for 4MB ROM"
334 depends on AMD_FWM_POSITION_INDEX = 3
335comment "AMD Firmware Directory Table set to location for 8MB ROM"
336 depends on AMD_FWM_POSITION_INDEX = 4
337comment "AMD Firmware Directory Table set to location for 16MB ROM"
338 depends on AMD_FWM_POSITION_INDEX = 5
339
340config AMDFW_CONFIG_FILE
341 string "AMD PSP Firmware config file"
Martin Roth20646cd2023-01-04 21:27:06 -0700342 default "src/soc/amd/phoenix/fw.cfg"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600343 help
344 Specify the path/location of AMD PSP Firmware config file.
345
346config PSP_DISABLE_POSTCODES
347 bool "Disable PSP post codes"
348 help
349 Disables the output of port80 post codes from PSP.
350
351config PSP_POSTCODES_ON_ESPI
352 bool "Use eSPI bus for PSP post codes"
353 default y
354 depends on !PSP_DISABLE_POSTCODES
355 help
356 Select to send PSP port80 post codes on eSPI bus.
357 If not selected, PSP port80 codes will be sent on LPC bus.
358
359config PSP_LOAD_MP2_FW
360 bool
361 default n
362 help
363 Include the MP2 firmwares and configuration into the PSP build.
364
365 If unsure, answer 'n'
366
367config PSP_UNLOCK_SECURE_DEBUG
368 bool "Unlock secure debug"
369 default y
370 help
371 Select this item to enable secure debug options in PSP.
372
373config HAVE_PSP_WHITELIST_FILE
374 bool "Include a debug whitelist file in PSP build"
375 default n
376 help
377 Support secured unlock prior to reset using a whitelisted
378 serial number. This feature requires a signed whitelist image
379 and bootloader from AMD.
380
381 If unsure, answer 'n'
382
383config PSP_WHITELIST_FILE
384 string "Debug whitelist file path"
385 depends on HAVE_PSP_WHITELIST_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700386 default "site-local/3rdparty/amd_blobs/phoenix/PSP/wtl-phx.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600387
388config HAVE_SPL_FILE
389 bool "Have a mainboard specific SPL table file"
390 default n
391 help
392 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
393 is required to support PSP FW anti-rollback and needs to be created by AMD.
394 The default SPL file applies to all boards that use the concerned SoC and
395 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
396 can be applied through SPL_TABLE_FILE config.
397
398 If unsure, answer 'n'
399
400config SPL_TABLE_FILE
401 string "SPL table file"
402 depends on HAVE_SPL_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700403 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_PHX.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600404
405config HAVE_SPL_RW_AB_FILE
406 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
407 default n
408 depends on HAVE_SPL_FILE
409 depends on VBOOT_SLOTS_RW_AB
410 help
411 Have separate mainboard-specific Security Patch Level (SPL) table
412 file for the RW A/B FMAP partitions. See the help text of
413 HAVE_SPL_FILE for a more detailed description.
414
415config SPL_RW_AB_TABLE_FILE
416 string "Separate SPL table file for RW A/B partitions"
417 depends on HAVE_SPL_RW_AB_FILE
Martin Roth20646cd2023-01-04 21:27:06 -0700418 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_PHX.sbin"
Martin Roth1a3de8e2022-10-06 15:57:21 -0600419
420config PSP_SOFTFUSE_BITS
421 string "PSP Soft Fuse bits to enable"
422 default "34 28 6"
423 help
424 Space separated list of Soft Fuse bits to enable.
425 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
426 Bit 7: Disable PSP postcodes on Renoir and newer chips only
427 (Set by PSP_DISABLE_PORT80)
428 Bit 15: PSP debug output destination:
429 0=SoC MMIO UART, 1=IO port 0x3F8
430 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
431
432 See #55758 (NDA) for additional bit definitions.
433
434config PSP_VERSTAGE_FILE
435 string "Specify the PSP_verstage file path"
436 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
437 default "\$(obj)/psp_verstage.bin"
438 help
439 Add psp_verstage file to the build & PSP Directory Table
440
441config PSP_VERSTAGE_SIGNING_TOKEN
442 string "Specify the PSP_verstage Signature Token file path"
443 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
444 default ""
445 help
446 Add psp_verstage signature token to the build & PSP Directory Table
447
448endmenu
449
450config VBOOT
451 select VBOOT_VBNV_CMOS
452 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
453
454config VBOOT_STARTS_BEFORE_BOOTBLOCK
455 def_bool n
456 depends on VBOOT
457 select ARCH_VERSTAGE_ARMV7
458 help
459 Runs verstage on the PSP. Only available on
460 certain ChromeOS branded parts from AMD.
461
462config VBOOT_HASH_BLOCK_SIZE
463 hex
464 default 0x9000
465 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
466 help
467 Because the bulk of the time in psp_verstage to hash the RO cbfs is
468 spent in the overhead of doing svc calls, increasing the hash block
469 size significantly cuts the verstage hashing time as seen below.
470
471 4k takes 180ms
472 16k takes 44ms
473 32k takes 33.7ms
474 36k takes 32.5ms
475 There's actually still room for an even bigger stack, but we've
476 reached a point of diminishing returns.
477
478config CMOS_RECOVERY_BYTE
479 hex
480 default 0x51
481 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
482 help
483 If the workbuf is not passed from the PSP to coreboot, set the
484 recovery flag and reboot. The PSP will read this byte, mark the
485 recovery request in VBNV, and reset the system into recovery mode.
486
487 This is the byte before the default first byte used by VBNV
488 (0x26 + 0x0E - 1)
489
490if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
491
492config RWA_REGION_ONLY
493 string
494 default "apu/amdfw_a"
495 help
496 Add a space-delimited list of filenames that should only be in the
497 RW-A section.
498
499config RWB_REGION_ONLY
500 string
501 default "apu/amdfw_b"
502 help
503 Add a space-delimited list of filenames that should only be in the
504 RW-B section.
505
506endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
507
Fred Reitbergerd45402a2023-04-24 12:18:31 -0400508endif # SOC_AMD_PHOENIX