blob: f48d8dd508815409d26d269db92b96306e8292c9 [file] [log] [blame]
Felix Held3c44c622022-01-10 20:57:29 +01001# SPDX-License-Identifier: GPL-2.0-only
2
Ritul Gurud3dae3d2022-04-04 13:33:01 +05303config SOC_AMD_REMBRANDT_BASE
4 bool
Felix Held3c44c622022-01-10 20:57:29 +01005 select ACPI_SOC_NVS
Felix Held3c44c622022-01-10 20:57:29 +01006 select ARCH_X86
7 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
Karthikeyan Ramasubramanianb9a62232023-02-23 15:53:59 -07008 select CACHE_MRC_SETTINGS
Felix Held3c44c622022-01-10 20:57:29 +01009 select DRIVERS_USB_ACPI
Felix Held3c44c622022-01-10 20:57:29 +010010 select DRIVERS_USB_PCI_XHCI
11 select FSP_COMPRESS_FSP_M_LZMA if !ASYNC_FILE_LOADING
12 select FSP_COMPRESS_FSP_M_LZ4 if ASYNC_FILE_LOADING
13 select FSP_COMPRESS_FSP_S_LZ4
14 select GENERIC_GPIO_LIB
15 select HAVE_ACPI_TABLES
16 select HAVE_CF9_RESET
17 select HAVE_EM100_SUPPORT
18 select HAVE_FSP_GOP
19 select HAVE_SMI_HANDLER
20 select IDT_IN_EVERY_STAGE
Martin Rothbcb610a2022-10-29 13:31:54 -060021 select NO_DDR4
22 select NO_DDR3
23 select NO_DDR2
24 select NO_LPDDR4
Felix Held3c44c622022-01-10 20:57:29 +010025 select PARALLEL_MP_AP_WORK
26 select PLATFORM_USES_FSP2_0
27 select PROVIDES_ROM_SHARING
Karthikeyan Ramasubramanianef129762022-12-22 13:07:28 -070028 select PSP_INCLUDES_HSP
Karthikeyan Ramasubramanian8ebb04c2022-07-14 17:29:06 -060029 select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK
Karthikeyan Ramasubramanianb2af2e32022-08-04 14:16:38 -060030 select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +010031 select RESET_VECTOR_IN_RAM
32 select RTC
33 select SOC_AMD_COMMON
Fred Reitberger81d3cde2022-02-10 09:31:26 -050034 select SOC_AMD_COMMON_BLOCK_ACP_GEN2
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050035 select SOC_AMD_COMMON_BLOCK_ACPI
Felix Held70f32bb2022-02-04 16:23:47 +010036 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Tim Van Patten92443582022-08-23 16:06:33 -060037 select SOC_AMD_COMMON_BLOCK_ACPI_ALIB
Felix Held665476d2022-08-03 22:18:18 +020038 select SOC_AMD_COMMON_BLOCK_ACPI_CPPC
Felix Helde23c4252023-03-07 00:03:46 +010039 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
Felix Heldaf803a62022-06-22 18:22:16 +020040 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050041 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS
Felix Held716ccb72022-02-03 18:27:29 +010042 select SOC_AMD_COMMON_BLOCK_AOAC
Fred Reitberger8b570bd2022-09-06 12:19:38 -040043 select SOC_AMD_COMMON_BLOCK_APOB
44 select SOC_AMD_COMMON_BLOCK_APOB_HASH
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050045 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Held75739d32022-02-03 18:44:27 +010046 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
Felix Held65d73cc2022-10-13 20:58:47 +020047 select SOC_AMD_COMMON_BLOCK_EMMC
Felix Heldc64f37d2022-02-12 17:30:59 +010048 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050049 select SOC_AMD_COMMON_BLOCK_GRAPHICS
Felix Heldc64f37d2022-02-12 17:30:59 +010050 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Raul E Rangel5a5de332022-04-25 13:33:50 -060051 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Felix Held8e4742d2022-02-03 15:15:37 +010052 select SOC_AMD_COMMON_BLOCK_I2C
Felix Held3bdbdb72022-02-02 22:55:34 +010053 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
Felix Held0eef54b2022-02-04 19:28:51 +010054 select SOC_AMD_COMMON_BLOCK_IOMMU
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050055 select SOC_AMD_COMMON_BLOCK_LPC
Karthikeyan Ramasubramanian5d5f6822022-12-05 17:08:08 -070056 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held901481f2022-06-22 15:38:44 +020057 select SOC_AMD_COMMON_BLOCK_MCAX
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050058 select SOC_AMD_COMMON_BLOCK_NONCAR
59 select SOC_AMD_COMMON_BLOCK_PCI
Felix Heldceefc742022-02-07 15:27:27 +010060 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050061 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER
Robert Ziebab3b27f72022-10-03 14:50:55 -060062 select SOC_AMD_COMMON_BLOCK_PCIE_CLK_REQ
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050063 select SOC_AMD_COMMON_BLOCK_PM
64 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE
65 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Martin Roth440c8232023-02-01 14:27:18 -070066 select SOC_AMD_COMMON_BLOCK_RESET
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050067 select SOC_AMD_COMMON_BLOCK_SMBUS
68 select SOC_AMD_COMMON_BLOCK_SMI
69 select SOC_AMD_COMMON_BLOCK_SMM
Felix Held6f9e4ab2022-02-03 18:34:23 +010070 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held7a2c1c72023-01-12 23:11:22 +010071 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050072 select SOC_AMD_COMMON_BLOCK_SPI
Martin Roth300338f2022-10-14 14:55:25 -060073 select SOC_AMD_COMMON_BLOCK_STB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050074 select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
Felix Heldb0789ed2022-02-04 22:36:32 +010075 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020076 select SOC_AMD_COMMON_BLOCK_UCODE
Felix Held665476d2022-08-03 22:18:18 +020077 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050078 select SOC_AMD_COMMON_FSP_DMI_TABLES
79 select SOC_AMD_COMMON_FSP_PCI
Fred Reitberger41c7e312023-01-11 15:11:08 -050080 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Felix Held3c44c622022-01-10 20:57:29 +010081 select SSE2
82 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060083 select USE_DDR5
Subrata Banik34f26b22022-02-10 12:38:02 +053084 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
85 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
86 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010087 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
Matt DeVillier65a44452023-02-16 09:57:40 -060088 select VBOOT_MUST_REQUEST_DISPLAY if VBOOT
Karthikeyan Ramasubramanian06d5b8b2022-10-27 22:50:07 -060089 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +010090 select X86_AMD_FIXED_MTRRS
91 select X86_INIT_NEED_1_SIPI
92
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010093config SOC_AMD_MENDOCINO
94 bool
95 select SOC_AMD_REMBRANDT_BASE
96 help
97 AMD Mendocino support
98
99config SOC_AMD_REMBRANDT
100 bool
101 select SOC_AMD_REMBRANDT_BASE
102 help
103 AMD Rembrandt support
104
105
106if SOC_AMD_REMBRANDT_BASE
107
Felix Held3c44c622022-01-10 20:57:29 +0100108config CHIPSET_DEVICETREE
109 string
Jon Murphy4f732422022-08-05 15:43:44 -0600110 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
111 default "soc/amd/mendocino/chipset_rembrandt.cb"
Felix Held3c44c622022-01-10 20:57:29 +0100112
113config EARLY_RESERVED_DRAM_BASE
114 hex
115 default 0x2000000
116 help
117 This variable defines the base address of the DRAM which is reserved
118 for usage by coreboot in early stages (i.e. before ramstage is up).
119 This memory gets reserved in BIOS tables to ensure that the OS does
120 not use it, thus preventing corruption of OS memory in case of S3
121 resume.
122
123config EARLYRAM_BSP_STACK_SIZE
124 hex
125 default 0x1000
126
127config PSP_APOB_DRAM_ADDRESS
128 hex
129 default 0x2001000
130 help
131 Location in DRAM where the PSP will copy the AGESA PSP Output
132 Block.
133
Fred Reitberger475e2822022-07-14 11:06:30 -0400134config PSP_APOB_DRAM_SIZE
135 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400136 default 0x1E000
Fred Reitberger475e2822022-07-14 11:06:30 -0400137
Felix Held3c44c622022-01-10 20:57:29 +0100138config PSP_SHAREDMEM_BASE
139 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400140 default 0x201F000 if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +0100141 default 0x0
142 help
143 This variable defines the base address in DRAM memory where PSP copies
144 the vboot workbuf. This is used in the linker script to have a static
145 allocation for the buffer as well as for adding relevant entries in
146 the BIOS directory table for the PSP.
147
148config PSP_SHAREDMEM_SIZE
149 hex
150 default 0x8000 if VBOOT
151 default 0x0
152 help
153 Sets the maximum size for the PSP to pass the vboot workbuf and
154 any logs or timestamps back to coreboot. This will be copied
155 into main memory by the PSP and will be available when the x86 is
156 started. The workbuf's base depends on the address of the reset
157 vector.
158
Felix Held55614682022-01-25 04:31:15 +0100159config PRE_X86_CBMEM_CONSOLE_SIZE
160 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700161 default 0x1000
Felix Held55614682022-01-25 04:31:15 +0100162 help
163 Size of the CBMEM console used in PSP verstage.
164
Felix Held3c44c622022-01-10 20:57:29 +0100165config PRERAM_CBMEM_CONSOLE_SIZE
166 hex
167 default 0x1600
168 help
169 Increase this value if preram cbmem console is getting truncated
170
171config CBFS_MCACHE_SIZE
172 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700173 default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100174
175config C_ENV_BOOTBLOCK_SIZE
176 hex
177 default 0x10000
178 help
179 Sets the size of the bootblock stage that should be loaded in DRAM.
180 This variable controls the DRAM allocation size in linker script
181 for bootblock stage.
182
183config ROMSTAGE_ADDR
184 hex
185 default 0x2040000
186 help
187 Sets the address in DRAM where romstage should be loaded.
188
189config ROMSTAGE_SIZE
190 hex
191 default 0x80000
192 help
193 Sets the size of DRAM allocation for romstage in linker script.
194
195config FSP_M_ADDR
196 hex
197 default 0x20C0000
198 help
199 Sets the address in DRAM where FSP-M should be loaded. cbfstool
200 performs relocation of FSP-M to this address.
201
202config FSP_M_SIZE
203 hex
204 default 0xC0000
205 help
206 Sets the size of DRAM allocation for FSP-M in linker script.
207
208config FSP_TEMP_RAM_SIZE
209 hex
210 default 0x40000
211 help
212 The amount of coreboot-allocated heap and stack usage by the FSP.
213
214config VERSTAGE_ADDR
215 hex
216 depends on VBOOT_SEPARATE_VERSTAGE
217 default 0x2180000
218 help
219 Sets the address in DRAM where verstage should be loaded if running
220 as a separate stage on x86.
221
222config VERSTAGE_SIZE
223 hex
224 depends on VBOOT_SEPARATE_VERSTAGE
225 default 0x80000
226 help
227 Sets the size of DRAM allocation for verstage in linker script if
228 running as a separate stage on x86.
229
230config ASYNC_FILE_LOADING
231 bool "Loads files from SPI asynchronously"
232 select COOP_MULTITASKING
233 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
234 select CBFS_PRELOAD
235 help
236 When enabled, the platform will use the LPC SPI DMA controller to
237 asynchronously load contents from the SPI ROM. This will improve
238 boot time because the CPUs can be performing useful work while the
239 SPI contents are being preloaded.
240
241config CBFS_CACHE_SIZE
242 hex
243 default 0x40000 if CBFS_PRELOAD
244
Felix Held3c44c622022-01-10 20:57:29 +0100245config RO_REGION_ONLY
246 string
247 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
248 default "apu/amdfw"
249
250config ECAM_MMCONF_BASE_ADDRESS
251 default 0xF8000000
252
253config ECAM_MMCONF_BUS_NUMBER
254 default 64
255
256config MAX_CPUS
257 int
Jon Murphy4f732422022-08-05 15:43:44 -0600258 default 8 if SOC_AMD_MENDOCINO
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530259 default 16
Felix Held3c44c622022-01-10 20:57:29 +0100260 help
261 Maximum number of threads the platform can have.
262
Felix Helde68ddc72023-02-14 23:02:09 +0100263config VGA_BIOS_ID
264 string
265 default "1002,1506" if SOC_AMD_MENDOCINO
266 help
267 The default VGA BIOS PCI vendor/device ID of the GPU and VBIOS.
268
269config VGA_BIOS_FILE
270 string
271 default "3rdparty/amd_blobs/mendocino/MdnGenericVbios.bin" if SOC_AMD_MENDOCINO
272
Felix Held3c44c622022-01-10 20:57:29 +0100273config CONSOLE_UART_BASE_ADDRESS
274 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
275 hex
276 default 0xfedc9000 if UART_FOR_CONSOLE = 0
277 default 0xfedca000 if UART_FOR_CONSOLE = 1
Felix Heldb1fe9de2022-01-12 23:18:54 +0100278 default 0xfedce000 if UART_FOR_CONSOLE = 2
279 default 0xfedcf000 if UART_FOR_CONSOLE = 3
280 default 0xfedd1000 if UART_FOR_CONSOLE = 4
Felix Held3c44c622022-01-10 20:57:29 +0100281
282config SMM_TSEG_SIZE
283 hex
284 default 0x800000 if HAVE_SMI_HANDLER
285 default 0x0
286
287config SMM_RESERVED_SIZE
288 hex
289 default 0x180000
290
291config SMM_MODULE_STACK_SIZE
292 hex
293 default 0x800
294
295config ACPI_BERT
296 bool "Build ACPI BERT Table"
297 default y
298 depends on HAVE_ACPI_TABLES
299 help
300 Report Machine Check errors identified in POST to the OS in an
301 ACPI Boot Error Record Table.
302
303config ACPI_BERT_SIZE
304 hex
305 default 0x4000 if ACPI_BERT
306 default 0x0
307 help
308 Specify the amount of DRAM reserved for gathering the data used to
309 generate the ACPI table.
310
311config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
312 int
313 default 150
314
315config DISABLE_SPI_FLASH_ROM_SHARING
316 def_bool n
317 help
318 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
319 which indicates a board level ROM transaction request. This
320 removes arbitration with board and assumes the chipset controls
321 the SPI flash bus entirely.
322
323config DISABLE_KEYBOARD_RESET_PIN
324 bool
325 help
Martin Roth9ceac742023-02-08 14:26:02 -0700326 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Felix Held3c44c622022-01-10 20:57:29 +0100327
328config ACPI_SSDT_PSD_INDEPENDENT
329 bool "Allow core p-state independent transitions"
330 default y
331 help
332 AMD recommends the ACPI _PSD object to be configured to cause
333 cores to transition between p-states independently. A vendor may
334 choose to generate _PSD object to allow cores to transition together.
335
Chris.Wang9ac09842022-12-13 14:31:38 +0800336config FEATURE_DYNAMIC_DPTC
337 bool
338 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
339 help
340 Selected by mainboards that implement support for ALIB
341 to enable dynamic DPTC.
342
343config FEATURE_TABLET_MODE_DPTC
344 bool
345 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
346 help
347 Selected by mainboards that implement support for ALIB to
348 switch default and tablet mode.
349
Felix Held3c44c622022-01-10 20:57:29 +0100350menu "PSP Configuration Options"
351
352config AMD_FWM_POSITION_INDEX
353 int "Firmware Directory Table location (0 to 5)"
354 range 0 5
355 default 0 if BOARD_ROMSIZE_KB_512
356 default 1 if BOARD_ROMSIZE_KB_1024
357 default 2 if BOARD_ROMSIZE_KB_2048
358 default 3 if BOARD_ROMSIZE_KB_4096
359 default 4 if BOARD_ROMSIZE_KB_8192
360 default 5 if BOARD_ROMSIZE_KB_16384
361 help
362 Typically this is calculated by the ROM size, but there may
363 be situations where you want to put the firmware directory
364 table in a different location.
365 0: 512 KB - 0xFFFA0000
366 1: 1 MB - 0xFFF20000
367 2: 2 MB - 0xFFE20000
368 3: 4 MB - 0xFFC20000
369 4: 8 MB - 0xFF820000
370 5: 16 MB - 0xFF020000
371
372comment "AMD Firmware Directory Table set to location for 512KB ROM"
373 depends on AMD_FWM_POSITION_INDEX = 0
374comment "AMD Firmware Directory Table set to location for 1MB ROM"
375 depends on AMD_FWM_POSITION_INDEX = 1
376comment "AMD Firmware Directory Table set to location for 2MB ROM"
377 depends on AMD_FWM_POSITION_INDEX = 2
378comment "AMD Firmware Directory Table set to location for 4MB ROM"
379 depends on AMD_FWM_POSITION_INDEX = 3
380comment "AMD Firmware Directory Table set to location for 8MB ROM"
381 depends on AMD_FWM_POSITION_INDEX = 4
382comment "AMD Firmware Directory Table set to location for 16MB ROM"
383 depends on AMD_FWM_POSITION_INDEX = 5
384
385config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600386 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600387 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600388 help
389 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100390
391config PSP_DISABLE_POSTCODES
392 bool "Disable PSP post codes"
393 help
394 Disables the output of port80 post codes from PSP.
395
396config PSP_POSTCODES_ON_ESPI
397 bool "Use eSPI bus for PSP post codes"
398 default y
399 depends on !PSP_DISABLE_POSTCODES
400 help
401 Select to send PSP port80 post codes on eSPI bus.
402 If not selected, PSP port80 codes will be sent on LPC bus.
403
404config PSP_LOAD_MP2_FW
405 bool
406 default n
407 help
408 Include the MP2 firmwares and configuration into the PSP build.
409
410 If unsure, answer 'n'
411
412config PSP_UNLOCK_SECURE_DEBUG
413 bool "Unlock secure debug"
414 default y
415 help
416 Select this item to enable secure debug options in PSP.
417
418config HAVE_PSP_WHITELIST_FILE
419 bool "Include a debug whitelist file in PSP build"
420 default n
421 help
422 Support secured unlock prior to reset using a whitelisted
423 serial number. This feature requires a signed whitelist image
424 and bootloader from AMD.
425
426 If unsure, answer 'n'
427
428config PSP_WHITELIST_FILE
429 string "Debug whitelist file path"
430 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600431 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100432
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600433config HAVE_SPL_FILE
434 bool "Have a mainboard specific SPL table file"
435 default n
436 help
437 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
438 is required to support PSP FW anti-rollback and needs to be created by AMD.
439 The default SPL file applies to all boards that use the concerned SoC and
440 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
441 can be applied through SPL_TABLE_FILE config.
442
443 If unsure, answer 'n'
444
445config SPL_TABLE_FILE
446 string "SPL table file"
447 depends on HAVE_SPL_FILE
Marshall Dawson26d7d732022-08-05 12:44:03 -0600448 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600449
Felix Held40a38cc2022-09-12 16:18:45 +0200450config HAVE_SPL_RW_AB_FILE
451 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
452 default n
453 depends on HAVE_SPL_FILE
454 depends on VBOOT_SLOTS_RW_AB
455 help
456 Have separate mainboard-specific Security Patch Level (SPL) table
457 file for the RW A/B FMAP partitions. See the help text of
458 HAVE_SPL_FILE for a more detailed description.
459
460config SPL_RW_AB_TABLE_FILE
461 string "Separate SPL table file for RW A/B partitions"
462 depends on HAVE_SPL_RW_AB_FILE
463 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
464
Felix Held3c44c622022-01-10 20:57:29 +0100465config PSP_SOFTFUSE_BITS
466 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200467 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100468 help
469 Space separated list of Soft Fuse bits to enable.
470 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
471 Bit 7: Disable PSP postcodes on Renoir and newer chips only
472 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100473 Bit 15: PSP debug output destination:
474 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100475 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
476
477 See #55758 (NDA) for additional bit definitions.
478
479config PSP_VERSTAGE_FILE
480 string "Specify the PSP_verstage file path"
481 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
482 default "\$(obj)/psp_verstage.bin"
483 help
484 Add psp_verstage file to the build & PSP Directory Table
485
486config PSP_VERSTAGE_SIGNING_TOKEN
487 string "Specify the PSP_verstage Signature Token file path"
488 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
489 default ""
490 help
491 Add psp_verstage signature token to the build & PSP Directory Table
492
493endmenu
494
495config VBOOT
496 select VBOOT_VBNV_CMOS
497 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
498
499config VBOOT_STARTS_BEFORE_BOOTBLOCK
500 def_bool n
501 depends on VBOOT
502 select ARCH_VERSTAGE_ARMV7
503 help
504 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600505 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100506
507config VBOOT_HASH_BLOCK_SIZE
508 hex
509 default 0x9000
510 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
511 help
512 Because the bulk of the time in psp_verstage to hash the RO cbfs is
513 spent in the overhead of doing svc calls, increasing the hash block
514 size significantly cuts the verstage hashing time as seen below.
515
516 4k takes 180ms
517 16k takes 44ms
518 32k takes 33.7ms
519 36k takes 32.5ms
520 There's actually still room for an even bigger stack, but we've
521 reached a point of diminishing returns.
522
523config CMOS_RECOVERY_BYTE
524 hex
525 default 0x51
526 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
527 help
528 If the workbuf is not passed from the PSP to coreboot, set the
529 recovery flag and reboot. The PSP will read this byte, mark the
530 recovery request in VBNV, and reset the system into recovery mode.
531
532 This is the byte before the default first byte used by VBNV
533 (0x26 + 0x0E - 1)
534
Matt DeVillierf9fea862022-10-04 16:41:28 -0500535if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100536
537config RWA_REGION_ONLY
538 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700539 default "apu/amdfw_a apu/amdfw_a_body"
Felix Held3c44c622022-01-10 20:57:29 +0100540 help
541 Add a space-delimited list of filenames that should only be in the
542 RW-A section.
543
Matt DeVillierf9fea862022-10-04 16:41:28 -0500544endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
545
546if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
547
Felix Held3c44c622022-01-10 20:57:29 +0100548config RWB_REGION_ONLY
549 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700550 default "apu/amdfw_b apu/amdfw_b_body"
Felix Held3c44c622022-01-10 20:57:29 +0100551 help
552 Add a space-delimited list of filenames that should only be in the
553 RW-B section.
554
555endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
556
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530557endif # SOC_AMD_REMBRANDT_BASE