blob: 6fc73de102d5a6ea6606ee1291235d0ad7e11f96 [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
Felix Held3c44c622022-01-10 20:57:29 +01008 select DRIVERS_USB_ACPI
Felix Held3c44c622022-01-10 20:57:29 +01009 select DRIVERS_USB_PCI_XHCI
10 select FSP_COMPRESS_FSP_M_LZMA if !ASYNC_FILE_LOADING
11 select FSP_COMPRESS_FSP_M_LZ4 if ASYNC_FILE_LOADING
12 select FSP_COMPRESS_FSP_S_LZ4
13 select GENERIC_GPIO_LIB
14 select HAVE_ACPI_TABLES
15 select HAVE_CF9_RESET
16 select HAVE_EM100_SUPPORT
17 select HAVE_FSP_GOP
18 select HAVE_SMI_HANDLER
19 select IDT_IN_EVERY_STAGE
Martin Rothbcb610a2022-10-29 13:31:54 -060020 select NO_DDR4
21 select NO_DDR3
22 select NO_DDR2
23 select NO_LPDDR4
Felix Held3c44c622022-01-10 20:57:29 +010024 select PARALLEL_MP_AP_WORK
25 select PLATFORM_USES_FSP2_0
26 select PROVIDES_ROM_SHARING
Karthikeyan Ramasubramanianef129762022-12-22 13:07:28 -070027 select PSP_INCLUDES_HSP
Karthikeyan Ramasubramanian8ebb04c2022-07-14 17:29:06 -060028 select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK
Karthikeyan Ramasubramanianb2af2e32022-08-04 14:16:38 -060029 select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +010030 select RESET_VECTOR_IN_RAM
31 select RTC
32 select SOC_AMD_COMMON
Fred Reitberger81d3cde2022-02-10 09:31:26 -050033 select SOC_AMD_COMMON_BLOCK_ACP_GEN2
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050034 select SOC_AMD_COMMON_BLOCK_ACPI
Felix Held70f32bb2022-02-04 16:23:47 +010035 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Tim Van Patten92443582022-08-23 16:06:33 -060036 select SOC_AMD_COMMON_BLOCK_ACPI_ALIB
Felix Held665476d2022-08-03 22:18:18 +020037 select SOC_AMD_COMMON_BLOCK_ACPI_CPPC
Felix Heldaf803a62022-06-22 18:22:16 +020038 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050039 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS
Felix Held716ccb72022-02-03 18:27:29 +010040 select SOC_AMD_COMMON_BLOCK_AOAC
Fred Reitberger8b570bd2022-09-06 12:19:38 -040041 select SOC_AMD_COMMON_BLOCK_APOB
42 select SOC_AMD_COMMON_BLOCK_APOB_HASH
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050043 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Held75739d32022-02-03 18:44:27 +010044 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
Felix Held65d73cc2022-10-13 20:58:47 +020045 select SOC_AMD_COMMON_BLOCK_EMMC
Felix Heldc64f37d2022-02-12 17:30:59 +010046 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050047 select SOC_AMD_COMMON_BLOCK_GRAPHICS
Felix Heldc64f37d2022-02-12 17:30:59 +010048 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Raul E Rangel5a5de332022-04-25 13:33:50 -060049 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Felix Held8e4742d2022-02-03 15:15:37 +010050 select SOC_AMD_COMMON_BLOCK_I2C
Felix Held3bdbdb72022-02-02 22:55:34 +010051 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
Felix Held0eef54b2022-02-04 19:28:51 +010052 select SOC_AMD_COMMON_BLOCK_IOMMU
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050053 select SOC_AMD_COMMON_BLOCK_LPC
Karthikeyan Ramasubramanian5d5f6822022-12-05 17:08:08 -070054 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held901481f2022-06-22 15:38:44 +020055 select SOC_AMD_COMMON_BLOCK_MCAX
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050056 select SOC_AMD_COMMON_BLOCK_NONCAR
57 select SOC_AMD_COMMON_BLOCK_PCI
Felix Heldceefc742022-02-07 15:27:27 +010058 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050059 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER
Robert Ziebab3b27f72022-10-03 14:50:55 -060060 select SOC_AMD_COMMON_BLOCK_PCIE_CLK_REQ
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050061 select SOC_AMD_COMMON_BLOCK_PM
62 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE
63 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Martin Roth440c8232023-02-01 14:27:18 -070064 select SOC_AMD_COMMON_BLOCK_RESET
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050065 select SOC_AMD_COMMON_BLOCK_SMBUS
66 select SOC_AMD_COMMON_BLOCK_SMI
67 select SOC_AMD_COMMON_BLOCK_SMM
Felix Held6f9e4ab2022-02-03 18:34:23 +010068 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held7a2c1c72023-01-12 23:11:22 +010069 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050070 select SOC_AMD_COMMON_BLOCK_SPI
Martin Roth300338f2022-10-14 14:55:25 -060071 select SOC_AMD_COMMON_BLOCK_STB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050072 select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
Felix Heldb0789ed2022-02-04 22:36:32 +010073 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020074 select SOC_AMD_COMMON_BLOCK_UCODE
Felix Held665476d2022-08-03 22:18:18 +020075 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050076 select SOC_AMD_COMMON_FSP_DMI_TABLES
77 select SOC_AMD_COMMON_FSP_PCI
Fred Reitberger41c7e312023-01-11 15:11:08 -050078 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Felix Held3c44c622022-01-10 20:57:29 +010079 select SSE2
80 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060081 select USE_DDR5
Subrata Banik34f26b22022-02-10 12:38:02 +053082 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
83 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
84 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010085 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
Karthikeyan Ramasubramanian06d5b8b2022-10-27 22:50:07 -060086 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +010087 select X86_AMD_FIXED_MTRRS
88 select X86_INIT_NEED_1_SIPI
89
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010090config SOC_AMD_MENDOCINO
91 bool
92 select SOC_AMD_REMBRANDT_BASE
93 help
94 AMD Mendocino support
95
96config SOC_AMD_REMBRANDT
97 bool
98 select SOC_AMD_REMBRANDT_BASE
99 help
100 AMD Rembrandt support
101
102
103if SOC_AMD_REMBRANDT_BASE
104
Felix Held3c44c622022-01-10 20:57:29 +0100105config CHIPSET_DEVICETREE
106 string
Jon Murphy4f732422022-08-05 15:43:44 -0600107 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
108 default "soc/amd/mendocino/chipset_rembrandt.cb"
Felix Held3c44c622022-01-10 20:57:29 +0100109
110config EARLY_RESERVED_DRAM_BASE
111 hex
112 default 0x2000000
113 help
114 This variable defines the base address of the DRAM which is reserved
115 for usage by coreboot in early stages (i.e. before ramstage is up).
116 This memory gets reserved in BIOS tables to ensure that the OS does
117 not use it, thus preventing corruption of OS memory in case of S3
118 resume.
119
120config EARLYRAM_BSP_STACK_SIZE
121 hex
122 default 0x1000
123
124config PSP_APOB_DRAM_ADDRESS
125 hex
126 default 0x2001000
127 help
128 Location in DRAM where the PSP will copy the AGESA PSP Output
129 Block.
130
Fred Reitberger475e2822022-07-14 11:06:30 -0400131config PSP_APOB_DRAM_SIZE
132 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400133 default 0x1E000
Fred Reitberger475e2822022-07-14 11:06:30 -0400134
Felix Held3c44c622022-01-10 20:57:29 +0100135config PSP_SHAREDMEM_BASE
136 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400137 default 0x201F000 if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +0100138 default 0x0
139 help
140 This variable defines the base address in DRAM memory where PSP copies
141 the vboot workbuf. This is used in the linker script to have a static
142 allocation for the buffer as well as for adding relevant entries in
143 the BIOS directory table for the PSP.
144
145config PSP_SHAREDMEM_SIZE
146 hex
147 default 0x8000 if VBOOT
148 default 0x0
149 help
150 Sets the maximum size for the PSP to pass the vboot workbuf and
151 any logs or timestamps back to coreboot. This will be copied
152 into main memory by the PSP and will be available when the x86 is
153 started. The workbuf's base depends on the address of the reset
154 vector.
155
Felix Held55614682022-01-25 04:31:15 +0100156config PRE_X86_CBMEM_CONSOLE_SIZE
157 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700158 default 0x1000
Felix Held55614682022-01-25 04:31:15 +0100159 help
160 Size of the CBMEM console used in PSP verstage.
161
Felix Held3c44c622022-01-10 20:57:29 +0100162config PRERAM_CBMEM_CONSOLE_SIZE
163 hex
164 default 0x1600
165 help
166 Increase this value if preram cbmem console is getting truncated
167
168config CBFS_MCACHE_SIZE
169 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700170 default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100171
172config C_ENV_BOOTBLOCK_SIZE
173 hex
174 default 0x10000
175 help
176 Sets the size of the bootblock stage that should be loaded in DRAM.
177 This variable controls the DRAM allocation size in linker script
178 for bootblock stage.
179
180config ROMSTAGE_ADDR
181 hex
182 default 0x2040000
183 help
184 Sets the address in DRAM where romstage should be loaded.
185
186config ROMSTAGE_SIZE
187 hex
188 default 0x80000
189 help
190 Sets the size of DRAM allocation for romstage in linker script.
191
192config FSP_M_ADDR
193 hex
194 default 0x20C0000
195 help
196 Sets the address in DRAM where FSP-M should be loaded. cbfstool
197 performs relocation of FSP-M to this address.
198
199config FSP_M_SIZE
200 hex
201 default 0xC0000
202 help
203 Sets the size of DRAM allocation for FSP-M in linker script.
204
205config FSP_TEMP_RAM_SIZE
206 hex
207 default 0x40000
208 help
209 The amount of coreboot-allocated heap and stack usage by the FSP.
210
211config VERSTAGE_ADDR
212 hex
213 depends on VBOOT_SEPARATE_VERSTAGE
214 default 0x2180000
215 help
216 Sets the address in DRAM where verstage should be loaded if running
217 as a separate stage on x86.
218
219config VERSTAGE_SIZE
220 hex
221 depends on VBOOT_SEPARATE_VERSTAGE
222 default 0x80000
223 help
224 Sets the size of DRAM allocation for verstage in linker script if
225 running as a separate stage on x86.
226
227config ASYNC_FILE_LOADING
228 bool "Loads files from SPI asynchronously"
229 select COOP_MULTITASKING
230 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
231 select CBFS_PRELOAD
232 help
233 When enabled, the platform will use the LPC SPI DMA controller to
234 asynchronously load contents from the SPI ROM. This will improve
235 boot time because the CPUs can be performing useful work while the
236 SPI contents are being preloaded.
237
238config CBFS_CACHE_SIZE
239 hex
240 default 0x40000 if CBFS_PRELOAD
241
Felix Held3c44c622022-01-10 20:57:29 +0100242config RO_REGION_ONLY
243 string
244 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
245 default "apu/amdfw"
246
247config ECAM_MMCONF_BASE_ADDRESS
248 default 0xF8000000
249
250config ECAM_MMCONF_BUS_NUMBER
251 default 64
252
253config MAX_CPUS
254 int
Jon Murphy4f732422022-08-05 15:43:44 -0600255 default 8 if SOC_AMD_MENDOCINO
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530256 default 16
Felix Held3c44c622022-01-10 20:57:29 +0100257 help
258 Maximum number of threads the platform can have.
259
Felix Helde68ddc72023-02-14 23:02:09 +0100260config VGA_BIOS_ID
261 string
262 default "1002,1506" if SOC_AMD_MENDOCINO
263 help
264 The default VGA BIOS PCI vendor/device ID of the GPU and VBIOS.
265
266config VGA_BIOS_FILE
267 string
268 default "3rdparty/amd_blobs/mendocino/MdnGenericVbios.bin" if SOC_AMD_MENDOCINO
269
Felix Held3c44c622022-01-10 20:57:29 +0100270config CONSOLE_UART_BASE_ADDRESS
271 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
272 hex
273 default 0xfedc9000 if UART_FOR_CONSOLE = 0
274 default 0xfedca000 if UART_FOR_CONSOLE = 1
Felix Heldb1fe9de2022-01-12 23:18:54 +0100275 default 0xfedce000 if UART_FOR_CONSOLE = 2
276 default 0xfedcf000 if UART_FOR_CONSOLE = 3
277 default 0xfedd1000 if UART_FOR_CONSOLE = 4
Felix Held3c44c622022-01-10 20:57:29 +0100278
279config SMM_TSEG_SIZE
280 hex
281 default 0x800000 if HAVE_SMI_HANDLER
282 default 0x0
283
284config SMM_RESERVED_SIZE
285 hex
286 default 0x180000
287
288config SMM_MODULE_STACK_SIZE
289 hex
290 default 0x800
291
292config ACPI_BERT
293 bool "Build ACPI BERT Table"
294 default y
295 depends on HAVE_ACPI_TABLES
296 help
297 Report Machine Check errors identified in POST to the OS in an
298 ACPI Boot Error Record Table.
299
300config ACPI_BERT_SIZE
301 hex
302 default 0x4000 if ACPI_BERT
303 default 0x0
304 help
305 Specify the amount of DRAM reserved for gathering the data used to
306 generate the ACPI table.
307
308config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
309 int
310 default 150
311
312config DISABLE_SPI_FLASH_ROM_SHARING
313 def_bool n
314 help
315 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
316 which indicates a board level ROM transaction request. This
317 removes arbitration with board and assumes the chipset controls
318 the SPI flash bus entirely.
319
320config DISABLE_KEYBOARD_RESET_PIN
321 bool
322 help
Martin Roth9ceac742023-02-08 14:26:02 -0700323 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Felix Held3c44c622022-01-10 20:57:29 +0100324
325config ACPI_SSDT_PSD_INDEPENDENT
326 bool "Allow core p-state independent transitions"
327 default y
328 help
329 AMD recommends the ACPI _PSD object to be configured to cause
330 cores to transition between p-states independently. A vendor may
331 choose to generate _PSD object to allow cores to transition together.
332
Chris.Wang9ac09842022-12-13 14:31:38 +0800333config FEATURE_DYNAMIC_DPTC
334 bool
335 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
336 help
337 Selected by mainboards that implement support for ALIB
338 to enable dynamic DPTC.
339
340config FEATURE_TABLET_MODE_DPTC
341 bool
342 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
343 help
344 Selected by mainboards that implement support for ALIB to
345 switch default and tablet mode.
346
Felix Held3c44c622022-01-10 20:57:29 +0100347menu "PSP Configuration Options"
348
349config AMD_FWM_POSITION_INDEX
350 int "Firmware Directory Table location (0 to 5)"
351 range 0 5
352 default 0 if BOARD_ROMSIZE_KB_512
353 default 1 if BOARD_ROMSIZE_KB_1024
354 default 2 if BOARD_ROMSIZE_KB_2048
355 default 3 if BOARD_ROMSIZE_KB_4096
356 default 4 if BOARD_ROMSIZE_KB_8192
357 default 5 if BOARD_ROMSIZE_KB_16384
358 help
359 Typically this is calculated by the ROM size, but there may
360 be situations where you want to put the firmware directory
361 table in a different location.
362 0: 512 KB - 0xFFFA0000
363 1: 1 MB - 0xFFF20000
364 2: 2 MB - 0xFFE20000
365 3: 4 MB - 0xFFC20000
366 4: 8 MB - 0xFF820000
367 5: 16 MB - 0xFF020000
368
369comment "AMD Firmware Directory Table set to location for 512KB ROM"
370 depends on AMD_FWM_POSITION_INDEX = 0
371comment "AMD Firmware Directory Table set to location for 1MB ROM"
372 depends on AMD_FWM_POSITION_INDEX = 1
373comment "AMD Firmware Directory Table set to location for 2MB ROM"
374 depends on AMD_FWM_POSITION_INDEX = 2
375comment "AMD Firmware Directory Table set to location for 4MB ROM"
376 depends on AMD_FWM_POSITION_INDEX = 3
377comment "AMD Firmware Directory Table set to location for 8MB ROM"
378 depends on AMD_FWM_POSITION_INDEX = 4
379comment "AMD Firmware Directory Table set to location for 16MB ROM"
380 depends on AMD_FWM_POSITION_INDEX = 5
381
382config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600383 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600384 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600385 help
386 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100387
388config PSP_DISABLE_POSTCODES
389 bool "Disable PSP post codes"
390 help
391 Disables the output of port80 post codes from PSP.
392
393config PSP_POSTCODES_ON_ESPI
394 bool "Use eSPI bus for PSP post codes"
395 default y
396 depends on !PSP_DISABLE_POSTCODES
397 help
398 Select to send PSP port80 post codes on eSPI bus.
399 If not selected, PSP port80 codes will be sent on LPC bus.
400
401config PSP_LOAD_MP2_FW
402 bool
403 default n
404 help
405 Include the MP2 firmwares and configuration into the PSP build.
406
407 If unsure, answer 'n'
408
409config PSP_UNLOCK_SECURE_DEBUG
410 bool "Unlock secure debug"
411 default y
412 help
413 Select this item to enable secure debug options in PSP.
414
415config HAVE_PSP_WHITELIST_FILE
416 bool "Include a debug whitelist file in PSP build"
417 default n
418 help
419 Support secured unlock prior to reset using a whitelisted
420 serial number. This feature requires a signed whitelist image
421 and bootloader from AMD.
422
423 If unsure, answer 'n'
424
425config PSP_WHITELIST_FILE
426 string "Debug whitelist file path"
427 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600428 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100429
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600430config HAVE_SPL_FILE
431 bool "Have a mainboard specific SPL table file"
432 default n
433 help
434 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
435 is required to support PSP FW anti-rollback and needs to be created by AMD.
436 The default SPL file applies to all boards that use the concerned SoC and
437 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
438 can be applied through SPL_TABLE_FILE config.
439
440 If unsure, answer 'n'
441
442config SPL_TABLE_FILE
443 string "SPL table file"
444 depends on HAVE_SPL_FILE
Marshall Dawson26d7d732022-08-05 12:44:03 -0600445 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600446
Felix Held40a38cc2022-09-12 16:18:45 +0200447config HAVE_SPL_RW_AB_FILE
448 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
449 default n
450 depends on HAVE_SPL_FILE
451 depends on VBOOT_SLOTS_RW_AB
452 help
453 Have separate mainboard-specific Security Patch Level (SPL) table
454 file for the RW A/B FMAP partitions. See the help text of
455 HAVE_SPL_FILE for a more detailed description.
456
457config SPL_RW_AB_TABLE_FILE
458 string "Separate SPL table file for RW A/B partitions"
459 depends on HAVE_SPL_RW_AB_FILE
460 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
461
Felix Held3c44c622022-01-10 20:57:29 +0100462config PSP_SOFTFUSE_BITS
463 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200464 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100465 help
466 Space separated list of Soft Fuse bits to enable.
467 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
468 Bit 7: Disable PSP postcodes on Renoir and newer chips only
469 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100470 Bit 15: PSP debug output destination:
471 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100472 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
473
474 See #55758 (NDA) for additional bit definitions.
475
476config PSP_VERSTAGE_FILE
477 string "Specify the PSP_verstage file path"
478 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
479 default "\$(obj)/psp_verstage.bin"
480 help
481 Add psp_verstage file to the build & PSP Directory Table
482
483config PSP_VERSTAGE_SIGNING_TOKEN
484 string "Specify the PSP_verstage Signature Token file path"
485 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
486 default ""
487 help
488 Add psp_verstage signature token to the build & PSP Directory Table
489
490endmenu
491
492config VBOOT
493 select VBOOT_VBNV_CMOS
494 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
495
496config VBOOT_STARTS_BEFORE_BOOTBLOCK
497 def_bool n
498 depends on VBOOT
499 select ARCH_VERSTAGE_ARMV7
500 help
501 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600502 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100503
504config VBOOT_HASH_BLOCK_SIZE
505 hex
506 default 0x9000
507 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
508 help
509 Because the bulk of the time in psp_verstage to hash the RO cbfs is
510 spent in the overhead of doing svc calls, increasing the hash block
511 size significantly cuts the verstage hashing time as seen below.
512
513 4k takes 180ms
514 16k takes 44ms
515 32k takes 33.7ms
516 36k takes 32.5ms
517 There's actually still room for an even bigger stack, but we've
518 reached a point of diminishing returns.
519
520config CMOS_RECOVERY_BYTE
521 hex
522 default 0x51
523 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
524 help
525 If the workbuf is not passed from the PSP to coreboot, set the
526 recovery flag and reboot. The PSP will read this byte, mark the
527 recovery request in VBNV, and reset the system into recovery mode.
528
529 This is the byte before the default first byte used by VBNV
530 (0x26 + 0x0E - 1)
531
Matt DeVillierf9fea862022-10-04 16:41:28 -0500532if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100533
534config RWA_REGION_ONLY
535 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700536 default "apu/amdfw_a apu/amdfw_a_body"
Felix Held3c44c622022-01-10 20:57:29 +0100537 help
538 Add a space-delimited list of filenames that should only be in the
539 RW-A section.
540
Matt DeVillierf9fea862022-10-04 16:41:28 -0500541endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
542
543if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
544
Felix Held3c44c622022-01-10 20:57:29 +0100545config RWB_REGION_ONLY
546 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700547 default "apu/amdfw_b apu/amdfw_b_body"
Felix Held3c44c622022-01-10 20:57:29 +0100548 help
549 Add a space-delimited list of filenames that should only be in the
550 RW-B section.
551
552endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
553
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530554endif # SOC_AMD_REMBRANDT_BASE