blob: 50c71de77d3895138077be3a3227410f148d4705 [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 Heldaf803a62022-06-22 18:22:16 +020039 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050040 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS
Felix Held716ccb72022-02-03 18:27:29 +010041 select SOC_AMD_COMMON_BLOCK_AOAC
Fred Reitberger8b570bd2022-09-06 12:19:38 -040042 select SOC_AMD_COMMON_BLOCK_APOB
43 select SOC_AMD_COMMON_BLOCK_APOB_HASH
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050044 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Held75739d32022-02-03 18:44:27 +010045 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
Felix Held65d73cc2022-10-13 20:58:47 +020046 select SOC_AMD_COMMON_BLOCK_EMMC
Felix Heldc64f37d2022-02-12 17:30:59 +010047 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050048 select SOC_AMD_COMMON_BLOCK_GRAPHICS
Felix Heldc64f37d2022-02-12 17:30:59 +010049 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Raul E Rangel5a5de332022-04-25 13:33:50 -060050 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Felix Held8e4742d2022-02-03 15:15:37 +010051 select SOC_AMD_COMMON_BLOCK_I2C
Felix Held3bdbdb72022-02-02 22:55:34 +010052 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
Felix Held0eef54b2022-02-04 19:28:51 +010053 select SOC_AMD_COMMON_BLOCK_IOMMU
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050054 select SOC_AMD_COMMON_BLOCK_LPC
Karthikeyan Ramasubramanian5d5f6822022-12-05 17:08:08 -070055 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held901481f2022-06-22 15:38:44 +020056 select SOC_AMD_COMMON_BLOCK_MCAX
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050057 select SOC_AMD_COMMON_BLOCK_NONCAR
58 select SOC_AMD_COMMON_BLOCK_PCI
Felix Heldceefc742022-02-07 15:27:27 +010059 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050060 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER
Robert Ziebab3b27f72022-10-03 14:50:55 -060061 select SOC_AMD_COMMON_BLOCK_PCIE_CLK_REQ
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050062 select SOC_AMD_COMMON_BLOCK_PM
63 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE
64 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Martin Roth440c8232023-02-01 14:27:18 -070065 select SOC_AMD_COMMON_BLOCK_RESET
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050066 select SOC_AMD_COMMON_BLOCK_SMBUS
67 select SOC_AMD_COMMON_BLOCK_SMI
68 select SOC_AMD_COMMON_BLOCK_SMM
Felix Held6f9e4ab2022-02-03 18:34:23 +010069 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held7a2c1c72023-01-12 23:11:22 +010070 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050071 select SOC_AMD_COMMON_BLOCK_SPI
Martin Roth300338f2022-10-14 14:55:25 -060072 select SOC_AMD_COMMON_BLOCK_STB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050073 select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
Felix Heldb0789ed2022-02-04 22:36:32 +010074 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020075 select SOC_AMD_COMMON_BLOCK_UCODE
Felix Held665476d2022-08-03 22:18:18 +020076 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050077 select SOC_AMD_COMMON_FSP_DMI_TABLES
78 select SOC_AMD_COMMON_FSP_PCI
Fred Reitberger41c7e312023-01-11 15:11:08 -050079 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Felix Held3c44c622022-01-10 20:57:29 +010080 select SSE2
81 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060082 select USE_DDR5
Subrata Banik34f26b22022-02-10 12:38:02 +053083 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
84 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
85 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010086 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
Matt DeVillier65a44452023-02-16 09:57:40 -060087 select VBOOT_MUST_REQUEST_DISPLAY if VBOOT
Karthikeyan Ramasubramanian06d5b8b2022-10-27 22:50:07 -060088 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +010089 select X86_AMD_FIXED_MTRRS
90 select X86_INIT_NEED_1_SIPI
91
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010092config SOC_AMD_MENDOCINO
93 bool
94 select SOC_AMD_REMBRANDT_BASE
95 help
96 AMD Mendocino support
97
98config SOC_AMD_REMBRANDT
99 bool
100 select SOC_AMD_REMBRANDT_BASE
101 help
102 AMD Rembrandt support
103
104
105if SOC_AMD_REMBRANDT_BASE
106
Felix Held3c44c622022-01-10 20:57:29 +0100107config CHIPSET_DEVICETREE
108 string
Jon Murphy4f732422022-08-05 15:43:44 -0600109 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
110 default "soc/amd/mendocino/chipset_rembrandt.cb"
Felix Held3c44c622022-01-10 20:57:29 +0100111
112config EARLY_RESERVED_DRAM_BASE
113 hex
114 default 0x2000000
115 help
116 This variable defines the base address of the DRAM which is reserved
117 for usage by coreboot in early stages (i.e. before ramstage is up).
118 This memory gets reserved in BIOS tables to ensure that the OS does
119 not use it, thus preventing corruption of OS memory in case of S3
120 resume.
121
122config EARLYRAM_BSP_STACK_SIZE
123 hex
124 default 0x1000
125
126config PSP_APOB_DRAM_ADDRESS
127 hex
128 default 0x2001000
129 help
130 Location in DRAM where the PSP will copy the AGESA PSP Output
131 Block.
132
Fred Reitberger475e2822022-07-14 11:06:30 -0400133config PSP_APOB_DRAM_SIZE
134 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400135 default 0x1E000
Fred Reitberger475e2822022-07-14 11:06:30 -0400136
Felix Held3c44c622022-01-10 20:57:29 +0100137config PSP_SHAREDMEM_BASE
138 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400139 default 0x201F000 if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +0100140 default 0x0
141 help
142 This variable defines the base address in DRAM memory where PSP copies
143 the vboot workbuf. This is used in the linker script to have a static
144 allocation for the buffer as well as for adding relevant entries in
145 the BIOS directory table for the PSP.
146
147config PSP_SHAREDMEM_SIZE
148 hex
149 default 0x8000 if VBOOT
150 default 0x0
151 help
152 Sets the maximum size for the PSP to pass the vboot workbuf and
153 any logs or timestamps back to coreboot. This will be copied
154 into main memory by the PSP and will be available when the x86 is
155 started. The workbuf's base depends on the address of the reset
156 vector.
157
Felix Held55614682022-01-25 04:31:15 +0100158config PRE_X86_CBMEM_CONSOLE_SIZE
159 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700160 default 0x1000
Felix Held55614682022-01-25 04:31:15 +0100161 help
162 Size of the CBMEM console used in PSP verstage.
163
Felix Held3c44c622022-01-10 20:57:29 +0100164config PRERAM_CBMEM_CONSOLE_SIZE
165 hex
166 default 0x1600
167 help
168 Increase this value if preram cbmem console is getting truncated
169
170config CBFS_MCACHE_SIZE
171 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700172 default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100173
174config C_ENV_BOOTBLOCK_SIZE
175 hex
176 default 0x10000
177 help
178 Sets the size of the bootblock stage that should be loaded in DRAM.
179 This variable controls the DRAM allocation size in linker script
180 for bootblock stage.
181
182config ROMSTAGE_ADDR
183 hex
184 default 0x2040000
185 help
186 Sets the address in DRAM where romstage should be loaded.
187
188config ROMSTAGE_SIZE
189 hex
190 default 0x80000
191 help
192 Sets the size of DRAM allocation for romstage in linker script.
193
194config FSP_M_ADDR
195 hex
196 default 0x20C0000
197 help
198 Sets the address in DRAM where FSP-M should be loaded. cbfstool
199 performs relocation of FSP-M to this address.
200
201config FSP_M_SIZE
202 hex
203 default 0xC0000
204 help
205 Sets the size of DRAM allocation for FSP-M in linker script.
206
207config FSP_TEMP_RAM_SIZE
208 hex
209 default 0x40000
210 help
211 The amount of coreboot-allocated heap and stack usage by the FSP.
212
213config VERSTAGE_ADDR
214 hex
215 depends on VBOOT_SEPARATE_VERSTAGE
216 default 0x2180000
217 help
218 Sets the address in DRAM where verstage should be loaded if running
219 as a separate stage on x86.
220
221config VERSTAGE_SIZE
222 hex
223 depends on VBOOT_SEPARATE_VERSTAGE
224 default 0x80000
225 help
226 Sets the size of DRAM allocation for verstage in linker script if
227 running as a separate stage on x86.
228
229config ASYNC_FILE_LOADING
230 bool "Loads files from SPI asynchronously"
231 select COOP_MULTITASKING
232 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
233 select CBFS_PRELOAD
234 help
235 When enabled, the platform will use the LPC SPI DMA controller to
236 asynchronously load contents from the SPI ROM. This will improve
237 boot time because the CPUs can be performing useful work while the
238 SPI contents are being preloaded.
239
240config CBFS_CACHE_SIZE
241 hex
242 default 0x40000 if CBFS_PRELOAD
243
Felix Held3c44c622022-01-10 20:57:29 +0100244config RO_REGION_ONLY
245 string
246 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
247 default "apu/amdfw"
248
249config ECAM_MMCONF_BASE_ADDRESS
250 default 0xF8000000
251
252config ECAM_MMCONF_BUS_NUMBER
253 default 64
254
255config MAX_CPUS
256 int
Jon Murphy4f732422022-08-05 15:43:44 -0600257 default 8 if SOC_AMD_MENDOCINO
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530258 default 16
Felix Held3c44c622022-01-10 20:57:29 +0100259 help
260 Maximum number of threads the platform can have.
261
Felix Helde68ddc72023-02-14 23:02:09 +0100262config VGA_BIOS_ID
263 string
264 default "1002,1506" if SOC_AMD_MENDOCINO
265 help
266 The default VGA BIOS PCI vendor/device ID of the GPU and VBIOS.
267
268config VGA_BIOS_FILE
269 string
270 default "3rdparty/amd_blobs/mendocino/MdnGenericVbios.bin" if SOC_AMD_MENDOCINO
271
Felix Held3c44c622022-01-10 20:57:29 +0100272config CONSOLE_UART_BASE_ADDRESS
273 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
274 hex
275 default 0xfedc9000 if UART_FOR_CONSOLE = 0
276 default 0xfedca000 if UART_FOR_CONSOLE = 1
Felix Heldb1fe9de2022-01-12 23:18:54 +0100277 default 0xfedce000 if UART_FOR_CONSOLE = 2
278 default 0xfedcf000 if UART_FOR_CONSOLE = 3
279 default 0xfedd1000 if UART_FOR_CONSOLE = 4
Felix Held3c44c622022-01-10 20:57:29 +0100280
281config SMM_TSEG_SIZE
282 hex
283 default 0x800000 if HAVE_SMI_HANDLER
284 default 0x0
285
286config SMM_RESERVED_SIZE
287 hex
288 default 0x180000
289
290config SMM_MODULE_STACK_SIZE
291 hex
292 default 0x800
293
294config ACPI_BERT
295 bool "Build ACPI BERT Table"
296 default y
297 depends on HAVE_ACPI_TABLES
298 help
299 Report Machine Check errors identified in POST to the OS in an
300 ACPI Boot Error Record Table.
301
302config ACPI_BERT_SIZE
303 hex
304 default 0x4000 if ACPI_BERT
305 default 0x0
306 help
307 Specify the amount of DRAM reserved for gathering the data used to
308 generate the ACPI table.
309
310config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
311 int
312 default 150
313
314config DISABLE_SPI_FLASH_ROM_SHARING
315 def_bool n
316 help
317 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
318 which indicates a board level ROM transaction request. This
319 removes arbitration with board and assumes the chipset controls
320 the SPI flash bus entirely.
321
322config DISABLE_KEYBOARD_RESET_PIN
323 bool
324 help
Martin Roth9ceac742023-02-08 14:26:02 -0700325 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Felix Held3c44c622022-01-10 20:57:29 +0100326
327config ACPI_SSDT_PSD_INDEPENDENT
328 bool "Allow core p-state independent transitions"
329 default y
330 help
331 AMD recommends the ACPI _PSD object to be configured to cause
332 cores to transition between p-states independently. A vendor may
333 choose to generate _PSD object to allow cores to transition together.
334
Chris.Wang9ac09842022-12-13 14:31:38 +0800335config FEATURE_DYNAMIC_DPTC
336 bool
337 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
338 help
339 Selected by mainboards that implement support for ALIB
340 to enable dynamic DPTC.
341
342config FEATURE_TABLET_MODE_DPTC
343 bool
344 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
345 help
346 Selected by mainboards that implement support for ALIB to
347 switch default and tablet mode.
348
Felix Held3c44c622022-01-10 20:57:29 +0100349menu "PSP Configuration Options"
350
351config AMD_FWM_POSITION_INDEX
352 int "Firmware Directory Table location (0 to 5)"
353 range 0 5
354 default 0 if BOARD_ROMSIZE_KB_512
355 default 1 if BOARD_ROMSIZE_KB_1024
356 default 2 if BOARD_ROMSIZE_KB_2048
357 default 3 if BOARD_ROMSIZE_KB_4096
358 default 4 if BOARD_ROMSIZE_KB_8192
359 default 5 if BOARD_ROMSIZE_KB_16384
360 help
361 Typically this is calculated by the ROM size, but there may
362 be situations where you want to put the firmware directory
363 table in a different location.
364 0: 512 KB - 0xFFFA0000
365 1: 1 MB - 0xFFF20000
366 2: 2 MB - 0xFFE20000
367 3: 4 MB - 0xFFC20000
368 4: 8 MB - 0xFF820000
369 5: 16 MB - 0xFF020000
370
371comment "AMD Firmware Directory Table set to location for 512KB ROM"
372 depends on AMD_FWM_POSITION_INDEX = 0
373comment "AMD Firmware Directory Table set to location for 1MB ROM"
374 depends on AMD_FWM_POSITION_INDEX = 1
375comment "AMD Firmware Directory Table set to location for 2MB ROM"
376 depends on AMD_FWM_POSITION_INDEX = 2
377comment "AMD Firmware Directory Table set to location for 4MB ROM"
378 depends on AMD_FWM_POSITION_INDEX = 3
379comment "AMD Firmware Directory Table set to location for 8MB ROM"
380 depends on AMD_FWM_POSITION_INDEX = 4
381comment "AMD Firmware Directory Table set to location for 16MB ROM"
382 depends on AMD_FWM_POSITION_INDEX = 5
383
384config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600385 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600386 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600387 help
388 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100389
390config PSP_DISABLE_POSTCODES
391 bool "Disable PSP post codes"
392 help
393 Disables the output of port80 post codes from PSP.
394
395config PSP_POSTCODES_ON_ESPI
396 bool "Use eSPI bus for PSP post codes"
397 default y
398 depends on !PSP_DISABLE_POSTCODES
399 help
400 Select to send PSP port80 post codes on eSPI bus.
401 If not selected, PSP port80 codes will be sent on LPC bus.
402
403config PSP_LOAD_MP2_FW
404 bool
405 default n
406 help
407 Include the MP2 firmwares and configuration into the PSP build.
408
409 If unsure, answer 'n'
410
411config PSP_UNLOCK_SECURE_DEBUG
412 bool "Unlock secure debug"
413 default y
414 help
415 Select this item to enable secure debug options in PSP.
416
417config HAVE_PSP_WHITELIST_FILE
418 bool "Include a debug whitelist file in PSP build"
419 default n
420 help
421 Support secured unlock prior to reset using a whitelisted
422 serial number. This feature requires a signed whitelist image
423 and bootloader from AMD.
424
425 If unsure, answer 'n'
426
427config PSP_WHITELIST_FILE
428 string "Debug whitelist file path"
429 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600430 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100431
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600432config HAVE_SPL_FILE
433 bool "Have a mainboard specific SPL table file"
434 default n
435 help
436 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
437 is required to support PSP FW anti-rollback and needs to be created by AMD.
438 The default SPL file applies to all boards that use the concerned SoC and
439 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
440 can be applied through SPL_TABLE_FILE config.
441
442 If unsure, answer 'n'
443
444config SPL_TABLE_FILE
445 string "SPL table file"
446 depends on HAVE_SPL_FILE
Marshall Dawson26d7d732022-08-05 12:44:03 -0600447 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600448
Felix Held40a38cc2022-09-12 16:18:45 +0200449config HAVE_SPL_RW_AB_FILE
450 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
451 default n
452 depends on HAVE_SPL_FILE
453 depends on VBOOT_SLOTS_RW_AB
454 help
455 Have separate mainboard-specific Security Patch Level (SPL) table
456 file for the RW A/B FMAP partitions. See the help text of
457 HAVE_SPL_FILE for a more detailed description.
458
459config SPL_RW_AB_TABLE_FILE
460 string "Separate SPL table file for RW A/B partitions"
461 depends on HAVE_SPL_RW_AB_FILE
462 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
463
Felix Held3c44c622022-01-10 20:57:29 +0100464config PSP_SOFTFUSE_BITS
465 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200466 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100467 help
468 Space separated list of Soft Fuse bits to enable.
469 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
470 Bit 7: Disable PSP postcodes on Renoir and newer chips only
471 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100472 Bit 15: PSP debug output destination:
473 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100474 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
475
476 See #55758 (NDA) for additional bit definitions.
477
478config PSP_VERSTAGE_FILE
479 string "Specify the PSP_verstage file path"
480 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
481 default "\$(obj)/psp_verstage.bin"
482 help
483 Add psp_verstage file to the build & PSP Directory Table
484
485config PSP_VERSTAGE_SIGNING_TOKEN
486 string "Specify the PSP_verstage Signature Token file path"
487 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
488 default ""
489 help
490 Add psp_verstage signature token to the build & PSP Directory Table
491
492endmenu
493
494config VBOOT
495 select VBOOT_VBNV_CMOS
496 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
497
498config VBOOT_STARTS_BEFORE_BOOTBLOCK
499 def_bool n
500 depends on VBOOT
501 select ARCH_VERSTAGE_ARMV7
502 help
503 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600504 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100505
506config VBOOT_HASH_BLOCK_SIZE
507 hex
508 default 0x9000
509 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
510 help
511 Because the bulk of the time in psp_verstage to hash the RO cbfs is
512 spent in the overhead of doing svc calls, increasing the hash block
513 size significantly cuts the verstage hashing time as seen below.
514
515 4k takes 180ms
516 16k takes 44ms
517 32k takes 33.7ms
518 36k takes 32.5ms
519 There's actually still room for an even bigger stack, but we've
520 reached a point of diminishing returns.
521
522config CMOS_RECOVERY_BYTE
523 hex
524 default 0x51
525 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
526 help
527 If the workbuf is not passed from the PSP to coreboot, set the
528 recovery flag and reboot. The PSP will read this byte, mark the
529 recovery request in VBNV, and reset the system into recovery mode.
530
531 This is the byte before the default first byte used by VBNV
532 (0x26 + 0x0E - 1)
533
Matt DeVillierf9fea862022-10-04 16:41:28 -0500534if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100535
536config RWA_REGION_ONLY
537 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700538 default "apu/amdfw_a apu/amdfw_a_body"
Felix Held3c44c622022-01-10 20:57:29 +0100539 help
540 Add a space-delimited list of filenames that should only be in the
541 RW-A section.
542
Matt DeVillierf9fea862022-10-04 16:41:28 -0500543endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
544
545if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
546
Felix Held3c44c622022-01-10 20:57:29 +0100547config RWB_REGION_ONLY
548 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700549 default "apu/amdfw_b apu/amdfw_b_body"
Felix Held3c44c622022-01-10 20:57:29 +0100550 help
551 Add a space-delimited list of filenames that should only be in the
552 RW-B section.
553
554endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
555
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530556endif # SOC_AMD_REMBRANDT_BASE