blob: c03dbe22a36c8d240db1dbc313e90db5b3b361d1 [file] [log] [blame]
Felix Held3c44c622022-01-10 20:57:29 +01001# SPDX-License-Identifier: GPL-2.0-only
2
3# TODO: Check if this is still correct
4
Ritul Gurud3dae3d2022-04-04 13:33:01 +05305config SOC_AMD_REMBRANDT_BASE
6 bool
7
Jon Murphy4f732422022-08-05 15:43:44 -06008config SOC_AMD_MENDOCINO
Felix Held3c44c622022-01-10 20:57:29 +01009 bool
Ritul Gurud3dae3d2022-04-04 13:33:01 +053010 select SOC_AMD_REMBRANDT_BASE
Felix Held3c44c622022-01-10 20:57:29 +010011 help
Jon Murphy4f732422022-08-05 15:43:44 -060012 AMD Mendocino support
Felix Held3c44c622022-01-10 20:57:29 +010013
Ritul Gurud3dae3d2022-04-04 13:33:01 +053014config SOC_AMD_REMBRANDT
15 bool
16 select SOC_AMD_REMBRANDT_BASE
17 help
18 AMD Rembrandt support
19
20
21if SOC_AMD_REMBRANDT_BASE
Felix Held3c44c622022-01-10 20:57:29 +010022
23config SOC_SPECIFIC_OPTIONS
24 def_bool y
25 select ACPI_SOC_NVS
26 select ARCH_BOOTBLOCK_X86_32
27 select ARCH_VERSTAGE_X86_32 if !VBOOT_STARTS_BEFORE_BOOTBLOCK
28 select ARCH_ROMSTAGE_X86_32
29 select ARCH_RAMSTAGE_X86_32
30 select ARCH_X86
31 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
Felix Held3c44c622022-01-10 20:57:29 +010032 select DRIVERS_USB_ACPI
Felix Held3c44c622022-01-10 20:57:29 +010033 select DRIVERS_USB_PCI_XHCI
34 select FSP_COMPRESS_FSP_M_LZMA if !ASYNC_FILE_LOADING
35 select FSP_COMPRESS_FSP_M_LZ4 if ASYNC_FILE_LOADING
36 select FSP_COMPRESS_FSP_S_LZ4
37 select GENERIC_GPIO_LIB
38 select HAVE_ACPI_TABLES
39 select HAVE_CF9_RESET
40 select HAVE_EM100_SUPPORT
41 select HAVE_FSP_GOP
42 select HAVE_SMI_HANDLER
43 select IDT_IN_EVERY_STAGE
44 select PARALLEL_MP_AP_WORK
45 select PLATFORM_USES_FSP2_0
46 select PROVIDES_ROM_SHARING
Karthikeyan Ramasubramanian8ebb04c2022-07-14 17:29:06 -060047 select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK
Karthikeyan Ramasubramanianb2af2e32022-08-04 14:16:38 -060048 select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +010049 select RESET_VECTOR_IN_RAM
50 select RTC
51 select SOC_AMD_COMMON
Fred Reitberger81d3cde2022-02-10 09:31:26 -050052 select SOC_AMD_COMMON_BLOCK_ACP_GEN2
Felix Held3c44c622022-01-10 20:57:29 +010053 select SOC_AMD_COMMON_BLOCK_ACPI # TODO: Check if this is still correct
Felix Held70f32bb2022-02-04 16:23:47 +010054 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Tim Van Patten92443582022-08-23 16:06:33 -060055 select SOC_AMD_COMMON_BLOCK_ACPI_ALIB
Felix Held665476d2022-08-03 22:18:18 +020056 select SOC_AMD_COMMON_BLOCK_ACPI_CPPC
Felix Heldaf803a62022-06-22 18:22:16 +020057 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
Felix Held3c44c622022-01-10 20:57:29 +010058 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS # TODO: Check if this is still correct
Felix Held716ccb72022-02-03 18:27:29 +010059 select SOC_AMD_COMMON_BLOCK_AOAC
Fred Reitberger8b570bd2022-09-06 12:19:38 -040060 select SOC_AMD_COMMON_BLOCK_APOB
61 select SOC_AMD_COMMON_BLOCK_APOB_HASH
Felix Held3c44c622022-01-10 20:57:29 +010062 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS # TODO: Check if this is still correct
Felix Held75739d32022-02-03 18:44:27 +010063 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
Felix Held65d73cc2022-10-13 20:58:47 +020064 select SOC_AMD_COMMON_BLOCK_EMMC
Felix Heldc64f37d2022-02-12 17:30:59 +010065 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Felix Held3c44c622022-01-10 20:57:29 +010066 select SOC_AMD_COMMON_BLOCK_GRAPHICS # TODO: Check if this is still correct
Felix Heldc64f37d2022-02-12 17:30:59 +010067 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Raul E Rangel5a5de332022-04-25 13:33:50 -060068 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Felix Held8e4742d2022-02-03 15:15:37 +010069 select SOC_AMD_COMMON_BLOCK_I2C
Felix Held3bdbdb72022-02-02 22:55:34 +010070 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
Felix Held0eef54b2022-02-04 19:28:51 +010071 select SOC_AMD_COMMON_BLOCK_IOMMU
Felix Held3c44c622022-01-10 20:57:29 +010072 select SOC_AMD_COMMON_BLOCK_LPC # TODO: Check if this is still correct
Felix Held901481f2022-06-22 15:38:44 +020073 select SOC_AMD_COMMON_BLOCK_MCAX
Felix Held3c44c622022-01-10 20:57:29 +010074 select SOC_AMD_COMMON_BLOCK_NONCAR # TODO: Check if this is still correct
75 select SOC_AMD_COMMON_BLOCK_PCI # TODO: Check if this is still correct
Felix Heldceefc742022-02-07 15:27:27 +010076 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Felix Held3c44c622022-01-10 20:57:29 +010077 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER # TODO: Check if this is still correct
Robert Ziebab3b27f72022-10-03 14:50:55 -060078 select SOC_AMD_COMMON_BLOCK_PCIE_CLK_REQ
Felix Held3c44c622022-01-10 20:57:29 +010079 select SOC_AMD_COMMON_BLOCK_PM # TODO: Check if this is still correct
80 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE # TODO: Check if this is still correct
81 select SOC_AMD_COMMON_BLOCK_PSP_GEN2 # TODO: Check if this is still correct
82 select SOC_AMD_COMMON_BLOCK_SMBUS # TODO: Check if this is still correct
83 select SOC_AMD_COMMON_BLOCK_SMI # TODO: Check if this is still correct
84 select SOC_AMD_COMMON_BLOCK_SMM # TODO: Check if this is still correct
Felix Held6f9e4ab2022-02-03 18:34:23 +010085 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held3c44c622022-01-10 20:57:29 +010086 select SOC_AMD_COMMON_BLOCK_SPI # TODO: Check if this is still correct
Martin Roth300338f2022-10-14 14:55:25 -060087 select SOC_AMD_COMMON_BLOCK_STB
Felix Held3c44c622022-01-10 20:57:29 +010088 select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H # TODO: Check if this is still correct
Felix Heldb0789ed2022-02-04 22:36:32 +010089 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020090 select SOC_AMD_COMMON_BLOCK_UCODE
Felix Held665476d2022-08-03 22:18:18 +020091 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Felix Held3c44c622022-01-10 20:57:29 +010092 select SOC_AMD_COMMON_FSP_DMI_TABLES # TODO: Check if this is still correct
93 select SOC_AMD_COMMON_FSP_PCI # TODO: Check if this is still correct
94 select SSE2
95 select UDK_2017_BINDING
Subrata Banik34f26b22022-02-10 12:38:02 +053096 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
97 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
98 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010099 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
100 select X86_AMD_FIXED_MTRRS
101 select X86_INIT_NEED_1_SIPI
102
103config ARCH_ALL_STAGES_X86
104 default n
105
Felix Held3c44c622022-01-10 20:57:29 +0100106config CHIPSET_DEVICETREE
107 string
Jon Murphy4f732422022-08-05 15:43:44 -0600108 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
109 default "soc/amd/mendocino/chipset_rembrandt.cb"
Felix Held3c44c622022-01-10 20:57:29 +0100110
111config EARLY_RESERVED_DRAM_BASE
112 hex
113 default 0x2000000
114 help
115 This variable defines the base address of the DRAM which is reserved
116 for usage by coreboot in early stages (i.e. before ramstage is up).
117 This memory gets reserved in BIOS tables to ensure that the OS does
118 not use it, thus preventing corruption of OS memory in case of S3
119 resume.
120
121config EARLYRAM_BSP_STACK_SIZE
122 hex
123 default 0x1000
124
125config PSP_APOB_DRAM_ADDRESS
126 hex
127 default 0x2001000
128 help
129 Location in DRAM where the PSP will copy the AGESA PSP Output
130 Block.
131
Fred Reitberger475e2822022-07-14 11:06:30 -0400132config PSP_APOB_DRAM_SIZE
133 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400134 default 0x1E000
Fred Reitberger475e2822022-07-14 11:06:30 -0400135
Felix Held3c44c622022-01-10 20:57:29 +0100136config PSP_SHAREDMEM_BASE
137 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400138 default 0x201F000 if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +0100139 default 0x0
140 help
141 This variable defines the base address in DRAM memory where PSP copies
142 the vboot workbuf. This is used in the linker script to have a static
143 allocation for the buffer as well as for adding relevant entries in
144 the BIOS directory table for the PSP.
145
146config PSP_SHAREDMEM_SIZE
147 hex
148 default 0x8000 if VBOOT
149 default 0x0
150 help
151 Sets the maximum size for the PSP to pass the vboot workbuf and
152 any logs or timestamps back to coreboot. This will be copied
153 into main memory by the PSP and will be available when the x86 is
154 started. The workbuf's base depends on the address of the reset
155 vector.
156
Felix Held55614682022-01-25 04:31:15 +0100157config PRE_X86_CBMEM_CONSOLE_SIZE
158 hex
159 default 0x1600
160 help
161 Size of the CBMEM console used in PSP verstage.
162
Felix Held3c44c622022-01-10 20:57:29 +0100163config PRERAM_CBMEM_CONSOLE_SIZE
164 hex
165 default 0x1600
166 help
167 Increase this value if preram cbmem console is getting truncated
168
169config CBFS_MCACHE_SIZE
170 hex
171 default 0x2000 if VBOOT_STARTS_BEFORE_BOOTBLOCK
172
173config C_ENV_BOOTBLOCK_SIZE
174 hex
175 default 0x10000
176 help
177 Sets the size of the bootblock stage that should be loaded in DRAM.
178 This variable controls the DRAM allocation size in linker script
179 for bootblock stage.
180
181config ROMSTAGE_ADDR
182 hex
183 default 0x2040000
184 help
185 Sets the address in DRAM where romstage should be loaded.
186
187config ROMSTAGE_SIZE
188 hex
189 default 0x80000
190 help
191 Sets the size of DRAM allocation for romstage in linker script.
192
193config FSP_M_ADDR
194 hex
195 default 0x20C0000
196 help
197 Sets the address in DRAM where FSP-M should be loaded. cbfstool
198 performs relocation of FSP-M to this address.
199
200config FSP_M_SIZE
201 hex
202 default 0xC0000
203 help
204 Sets the size of DRAM allocation for FSP-M in linker script.
205
206config FSP_TEMP_RAM_SIZE
207 hex
208 default 0x40000
209 help
210 The amount of coreboot-allocated heap and stack usage by the FSP.
211
212config VERSTAGE_ADDR
213 hex
214 depends on VBOOT_SEPARATE_VERSTAGE
215 default 0x2180000
216 help
217 Sets the address in DRAM where verstage should be loaded if running
218 as a separate stage on x86.
219
220config VERSTAGE_SIZE
221 hex
222 depends on VBOOT_SEPARATE_VERSTAGE
223 default 0x80000
224 help
225 Sets the size of DRAM allocation for verstage in linker script if
226 running as a separate stage on x86.
227
228config ASYNC_FILE_LOADING
229 bool "Loads files from SPI asynchronously"
230 select COOP_MULTITASKING
231 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
232 select CBFS_PRELOAD
233 help
234 When enabled, the platform will use the LPC SPI DMA controller to
235 asynchronously load contents from the SPI ROM. This will improve
236 boot time because the CPUs can be performing useful work while the
237 SPI contents are being preloaded.
238
239config CBFS_CACHE_SIZE
240 hex
241 default 0x40000 if CBFS_PRELOAD
242
Felix Held3c44c622022-01-10 20:57:29 +0100243config RO_REGION_ONLY
244 string
245 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
246 default "apu/amdfw"
247
248config ECAM_MMCONF_BASE_ADDRESS
249 default 0xF8000000
250
251config ECAM_MMCONF_BUS_NUMBER
252 default 64
253
254config MAX_CPUS
255 int
Jon Murphy4f732422022-08-05 15:43:44 -0600256 default 8 if SOC_AMD_MENDOCINO
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530257 default 16
Felix Held3c44c622022-01-10 20:57:29 +0100258 help
259 Maximum number of threads the platform can have.
260
261config 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
Felix Heldb1fe9de2022-01-12 23:18:54 +0100266 default 0xfedce000 if UART_FOR_CONSOLE = 2
267 default 0xfedcf000 if UART_FOR_CONSOLE = 3
268 default 0xfedd1000 if UART_FOR_CONSOLE = 4
Felix Held3c44c622022-01-10 20:57:29 +0100269
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
314 Instruct the SoC to not use the state of GPIO_129 as keyboard reset
315 signal. When this pin is used as GPIO and the keyboard reset
316 functionality isn't disabled, configuring it as an output and driving
317 it as 0 will cause a reset.
318
319config ACPI_SSDT_PSD_INDEPENDENT
320 bool "Allow core p-state independent transitions"
321 default y
322 help
323 AMD recommends the ACPI _PSD object to be configured to cause
324 cores to transition between p-states independently. A vendor may
325 choose to generate _PSD object to allow cores to transition together.
326
327menu "PSP Configuration Options"
328
329config AMD_FWM_POSITION_INDEX
330 int "Firmware Directory Table location (0 to 5)"
331 range 0 5
332 default 0 if BOARD_ROMSIZE_KB_512
333 default 1 if BOARD_ROMSIZE_KB_1024
334 default 2 if BOARD_ROMSIZE_KB_2048
335 default 3 if BOARD_ROMSIZE_KB_4096
336 default 4 if BOARD_ROMSIZE_KB_8192
337 default 5 if BOARD_ROMSIZE_KB_16384
338 help
339 Typically this is calculated by the ROM size, but there may
340 be situations where you want to put the firmware directory
341 table in a different location.
342 0: 512 KB - 0xFFFA0000
343 1: 1 MB - 0xFFF20000
344 2: 2 MB - 0xFFE20000
345 3: 4 MB - 0xFFC20000
346 4: 8 MB - 0xFF820000
347 5: 16 MB - 0xFF020000
348
349comment "AMD Firmware Directory Table set to location for 512KB ROM"
350 depends on AMD_FWM_POSITION_INDEX = 0
351comment "AMD Firmware Directory Table set to location for 1MB ROM"
352 depends on AMD_FWM_POSITION_INDEX = 1
353comment "AMD Firmware Directory Table set to location for 2MB ROM"
354 depends on AMD_FWM_POSITION_INDEX = 2
355comment "AMD Firmware Directory Table set to location for 4MB ROM"
356 depends on AMD_FWM_POSITION_INDEX = 3
357comment "AMD Firmware Directory Table set to location for 8MB ROM"
358 depends on AMD_FWM_POSITION_INDEX = 4
359comment "AMD Firmware Directory Table set to location for 16MB ROM"
360 depends on AMD_FWM_POSITION_INDEX = 5
361
362config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600363 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600364 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600365 help
366 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100367
368config PSP_DISABLE_POSTCODES
369 bool "Disable PSP post codes"
370 help
371 Disables the output of port80 post codes from PSP.
372
373config PSP_POSTCODES_ON_ESPI
374 bool "Use eSPI bus for PSP post codes"
375 default y
376 depends on !PSP_DISABLE_POSTCODES
377 help
378 Select to send PSP port80 post codes on eSPI bus.
379 If not selected, PSP port80 codes will be sent on LPC bus.
380
381config PSP_LOAD_MP2_FW
382 bool
383 default n
384 help
385 Include the MP2 firmwares and configuration into the PSP build.
386
387 If unsure, answer 'n'
388
389config PSP_UNLOCK_SECURE_DEBUG
390 bool "Unlock secure debug"
391 default y
392 help
393 Select this item to enable secure debug options in PSP.
394
395config HAVE_PSP_WHITELIST_FILE
396 bool "Include a debug whitelist file in PSP build"
397 default n
398 help
399 Support secured unlock prior to reset using a whitelisted
400 serial number. This feature requires a signed whitelist image
401 and bootloader from AMD.
402
403 If unsure, answer 'n'
404
405config PSP_WHITELIST_FILE
406 string "Debug whitelist file path"
407 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600408 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100409
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600410config HAVE_SPL_FILE
411 bool "Have a mainboard specific SPL table file"
412 default n
413 help
414 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
415 is required to support PSP FW anti-rollback and needs to be created by AMD.
416 The default SPL file applies to all boards that use the concerned SoC and
417 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
418 can be applied through SPL_TABLE_FILE config.
419
420 If unsure, answer 'n'
421
422config SPL_TABLE_FILE
423 string "SPL table file"
424 depends on HAVE_SPL_FILE
Marshall Dawson26d7d732022-08-05 12:44:03 -0600425 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600426
Felix Held40a38cc2022-09-12 16:18:45 +0200427config HAVE_SPL_RW_AB_FILE
428 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
429 default n
430 depends on HAVE_SPL_FILE
431 depends on VBOOT_SLOTS_RW_AB
432 help
433 Have separate mainboard-specific Security Patch Level (SPL) table
434 file for the RW A/B FMAP partitions. See the help text of
435 HAVE_SPL_FILE for a more detailed description.
436
437config SPL_RW_AB_TABLE_FILE
438 string "Separate SPL table file for RW A/B partitions"
439 depends on HAVE_SPL_RW_AB_FILE
440 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
441
Felix Held3c44c622022-01-10 20:57:29 +0100442config PSP_SOFTFUSE_BITS
443 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200444 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100445 help
446 Space separated list of Soft Fuse bits to enable.
447 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
448 Bit 7: Disable PSP postcodes on Renoir and newer chips only
449 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100450 Bit 15: PSP debug output destination:
451 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100452 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
453
454 See #55758 (NDA) for additional bit definitions.
455
456config PSP_VERSTAGE_FILE
457 string "Specify the PSP_verstage file path"
458 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
459 default "\$(obj)/psp_verstage.bin"
460 help
461 Add psp_verstage file to the build & PSP Directory Table
462
463config PSP_VERSTAGE_SIGNING_TOKEN
464 string "Specify the PSP_verstage Signature Token file path"
465 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
466 default ""
467 help
468 Add psp_verstage signature token to the build & PSP Directory Table
469
470endmenu
471
472config VBOOT
473 select VBOOT_VBNV_CMOS
474 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
475
476config VBOOT_STARTS_BEFORE_BOOTBLOCK
477 def_bool n
478 depends on VBOOT
479 select ARCH_VERSTAGE_ARMV7
480 help
481 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600482 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100483
484config VBOOT_HASH_BLOCK_SIZE
485 hex
486 default 0x9000
487 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
488 help
489 Because the bulk of the time in psp_verstage to hash the RO cbfs is
490 spent in the overhead of doing svc calls, increasing the hash block
491 size significantly cuts the verstage hashing time as seen below.
492
493 4k takes 180ms
494 16k takes 44ms
495 32k takes 33.7ms
496 36k takes 32.5ms
497 There's actually still room for an even bigger stack, but we've
498 reached a point of diminishing returns.
499
500config CMOS_RECOVERY_BYTE
501 hex
502 default 0x51
503 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
504 help
505 If the workbuf is not passed from the PSP to coreboot, set the
506 recovery flag and reboot. The PSP will read this byte, mark the
507 recovery request in VBNV, and reset the system into recovery mode.
508
509 This is the byte before the default first byte used by VBNV
510 (0x26 + 0x0E - 1)
511
Matt DeVillierf9fea862022-10-04 16:41:28 -0500512if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100513
514config RWA_REGION_ONLY
515 string
516 default "apu/amdfw_a"
517 help
518 Add a space-delimited list of filenames that should only be in the
519 RW-A section.
520
Matt DeVillierf9fea862022-10-04 16:41:28 -0500521endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
522
523if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
524
Felix Held3c44c622022-01-10 20:57:29 +0100525config RWB_REGION_ONLY
526 string
527 default "apu/amdfw_b"
528 help
529 Add a space-delimited list of filenames that should only be in the
530 RW-B section.
531
532endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
533
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530534endif # SOC_AMD_REMBRANDT_BASE