blob: 90a4fc9907808dec277e5896bffae55bf8c6688a [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
Felix Held9ab8a782023-07-14 18:44:13 +020037 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_PM_IO_ACCESS
Tim Van Patten92443582022-08-23 16:06:33 -060038 select SOC_AMD_COMMON_BLOCK_ACPI_ALIB
Felix Held665476d2022-08-03 22:18:18 +020039 select SOC_AMD_COMMON_BLOCK_ACPI_CPPC
Felix Helde23c4252023-03-07 00:03:46 +010040 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
Felix Heldaf803a62022-06-22 18:22:16 +020041 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050042 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS
Felix Held716ccb72022-02-03 18:27:29 +010043 select SOC_AMD_COMMON_BLOCK_AOAC
Fred Reitberger8b570bd2022-09-06 12:19:38 -040044 select SOC_AMD_COMMON_BLOCK_APOB
45 select SOC_AMD_COMMON_BLOCK_APOB_HASH
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050046 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Helda63f8592023-03-24 16:30:55 +010047 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Felix Held75739d32022-02-03 18:44:27 +010048 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
Felix Helda4f4b0a2023-05-31 16:21:35 +020049 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN
Felix Heldc64f37d2022-02-12 17:30:59 +010050 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050051 select SOC_AMD_COMMON_BLOCK_GRAPHICS
Felix Heldc64f37d2022-02-12 17:30:59 +010052 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Raul E Rangel5a5de332022-04-25 13:33:50 -060053 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Felix Held8e4742d2022-02-03 15:15:37 +010054 select SOC_AMD_COMMON_BLOCK_I2C
Felix Held3bdbdb72022-02-02 22:55:34 +010055 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
Felix Held0eef54b2022-02-04 19:28:51 +010056 select SOC_AMD_COMMON_BLOCK_IOMMU
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050057 select SOC_AMD_COMMON_BLOCK_LPC
Karthikeyan Ramasubramanian5d5f6822022-12-05 17:08:08 -070058 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held901481f2022-06-22 15:38:44 +020059 select SOC_AMD_COMMON_BLOCK_MCAX
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050060 select SOC_AMD_COMMON_BLOCK_NONCAR
61 select SOC_AMD_COMMON_BLOCK_PCI
Felix Heldceefc742022-02-07 15:27:27 +010062 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050063 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER
Robert Ziebab3b27f72022-10-03 14:50:55 -060064 select SOC_AMD_COMMON_BLOCK_PCIE_CLK_REQ
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050065 select SOC_AMD_COMMON_BLOCK_PM
66 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE
67 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Martin Roth440c8232023-02-01 14:27:18 -070068 select SOC_AMD_COMMON_BLOCK_RESET
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050069 select SOC_AMD_COMMON_BLOCK_SMBUS
70 select SOC_AMD_COMMON_BLOCK_SMI
71 select SOC_AMD_COMMON_BLOCK_SMM
Felix Held6f9e4ab2022-02-03 18:34:23 +010072 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held7a2c1c72023-01-12 23:11:22 +010073 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050074 select SOC_AMD_COMMON_BLOCK_SPI
Martin Roth300338f2022-10-14 14:55:25 -060075 select SOC_AMD_COMMON_BLOCK_STB
Felix Held23a398e2023-03-23 23:44:03 +010076 select SOC_AMD_COMMON_BLOCK_SVI3
Felix Held60df7ca2023-03-24 20:33:15 +010077 select SOC_AMD_COMMON_BLOCK_TSC
Felix Heldb0789ed2022-02-04 22:36:32 +010078 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020079 select SOC_AMD_COMMON_BLOCK_UCODE
Robert Zieba3b28aef2022-09-15 15:25:55 -060080 select SOC_AMD_COMMON_BLOCK_XHCI
Felix Held665476d2022-08-03 22:18:18 +020081 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050082 select SOC_AMD_COMMON_FSP_DMI_TABLES
83 select SOC_AMD_COMMON_FSP_PCI
Fred Reitberger41c7e312023-01-11 15:11:08 -050084 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Felix Held3c44c622022-01-10 20:57:29 +010085 select SSE2
86 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060087 select USE_DDR5
Subrata Banik34f26b22022-02-10 12:38:02 +053088 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
89 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
90 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010091 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
Matt DeVillier65a44452023-02-16 09:57:40 -060092 select VBOOT_MUST_REQUEST_DISPLAY if VBOOT
Karthikeyan Ramasubramanian06d5b8b2022-10-27 22:50:07 -060093 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +010094 select X86_AMD_FIXED_MTRRS
95 select X86_INIT_NEED_1_SIPI
96
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010097config SOC_AMD_MENDOCINO
98 bool
99 select SOC_AMD_REMBRANDT_BASE
100 help
101 AMD Mendocino support
102
103config SOC_AMD_REMBRANDT
104 bool
105 select SOC_AMD_REMBRANDT_BASE
106 help
107 AMD Rembrandt support
108
109
110if SOC_AMD_REMBRANDT_BASE
111
Felix Held3c44c622022-01-10 20:57:29 +0100112config CHIPSET_DEVICETREE
113 string
Jon Murphy4f732422022-08-05 15:43:44 -0600114 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
115 default "soc/amd/mendocino/chipset_rembrandt.cb"
Felix Held3c44c622022-01-10 20:57:29 +0100116
117config EARLY_RESERVED_DRAM_BASE
118 hex
119 default 0x2000000
120 help
121 This variable defines the base address of the DRAM which is reserved
122 for usage by coreboot in early stages (i.e. before ramstage is up).
123 This memory gets reserved in BIOS tables to ensure that the OS does
124 not use it, thus preventing corruption of OS memory in case of S3
125 resume.
126
127config EARLYRAM_BSP_STACK_SIZE
128 hex
129 default 0x1000
130
131config PSP_APOB_DRAM_ADDRESS
132 hex
133 default 0x2001000
134 help
135 Location in DRAM where the PSP will copy the AGESA PSP Output
136 Block.
137
Fred Reitberger475e2822022-07-14 11:06:30 -0400138config PSP_APOB_DRAM_SIZE
139 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400140 default 0x1E000
Fred Reitberger475e2822022-07-14 11:06:30 -0400141
Felix Held3c44c622022-01-10 20:57:29 +0100142config PSP_SHAREDMEM_BASE
143 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400144 default 0x201F000 if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +0100145 default 0x0
146 help
147 This variable defines the base address in DRAM memory where PSP copies
148 the vboot workbuf. This is used in the linker script to have a static
149 allocation for the buffer as well as for adding relevant entries in
150 the BIOS directory table for the PSP.
151
152config PSP_SHAREDMEM_SIZE
153 hex
154 default 0x8000 if VBOOT
155 default 0x0
156 help
157 Sets the maximum size for the PSP to pass the vboot workbuf and
158 any logs or timestamps back to coreboot. This will be copied
159 into main memory by the PSP and will be available when the x86 is
160 started. The workbuf's base depends on the address of the reset
161 vector.
162
Felix Held55614682022-01-25 04:31:15 +0100163config PRE_X86_CBMEM_CONSOLE_SIZE
164 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700165 default 0x1000
Felix Held55614682022-01-25 04:31:15 +0100166 help
167 Size of the CBMEM console used in PSP verstage.
168
Felix Held3c44c622022-01-10 20:57:29 +0100169config PRERAM_CBMEM_CONSOLE_SIZE
170 hex
171 default 0x1600
172 help
173 Increase this value if preram cbmem console is getting truncated
174
175config CBFS_MCACHE_SIZE
176 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700177 default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100178
179config C_ENV_BOOTBLOCK_SIZE
180 hex
181 default 0x10000
182 help
183 Sets the size of the bootblock stage that should be loaded in DRAM.
184 This variable controls the DRAM allocation size in linker script
185 for bootblock stage.
186
187config ROMSTAGE_ADDR
188 hex
189 default 0x2040000
190 help
191 Sets the address in DRAM where romstage should be loaded.
192
193config ROMSTAGE_SIZE
194 hex
195 default 0x80000
196 help
197 Sets the size of DRAM allocation for romstage in linker script.
198
199config FSP_M_ADDR
200 hex
201 default 0x20C0000
202 help
203 Sets the address in DRAM where FSP-M should be loaded. cbfstool
204 performs relocation of FSP-M to this address.
205
206config FSP_M_SIZE
207 hex
208 default 0xC0000
209 help
210 Sets the size of DRAM allocation for FSP-M in linker script.
211
212config FSP_TEMP_RAM_SIZE
213 hex
214 default 0x40000
215 help
216 The amount of coreboot-allocated heap and stack usage by the FSP.
217
218config VERSTAGE_ADDR
219 hex
220 depends on VBOOT_SEPARATE_VERSTAGE
221 default 0x2180000
222 help
223 Sets the address in DRAM where verstage should be loaded if running
224 as a separate stage on x86.
225
226config VERSTAGE_SIZE
227 hex
228 depends on VBOOT_SEPARATE_VERSTAGE
229 default 0x80000
230 help
231 Sets the size of DRAM allocation for verstage in linker script if
232 running as a separate stage on x86.
233
234config ASYNC_FILE_LOADING
235 bool "Loads files from SPI asynchronously"
236 select COOP_MULTITASKING
237 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
238 select CBFS_PRELOAD
239 help
240 When enabled, the platform will use the LPC SPI DMA controller to
241 asynchronously load contents from the SPI ROM. This will improve
242 boot time because the CPUs can be performing useful work while the
243 SPI contents are being preloaded.
244
245config CBFS_CACHE_SIZE
246 hex
Karthikeyan Ramasubramaniane4fd7dc2023-04-10 17:46:41 -0600247 default 0x40000 if CBFS_PRELOAD || SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held3c44c622022-01-10 20:57:29 +0100248
Felix Held3c44c622022-01-10 20:57:29 +0100249config RO_REGION_ONLY
250 string
251 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
252 default "apu/amdfw"
253
254config ECAM_MMCONF_BASE_ADDRESS
255 default 0xF8000000
256
257config ECAM_MMCONF_BUS_NUMBER
258 default 64
259
260config MAX_CPUS
261 int
Jon Murphy4f732422022-08-05 15:43:44 -0600262 default 8 if SOC_AMD_MENDOCINO
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530263 default 16
Felix Held3c44c622022-01-10 20:57:29 +0100264 help
265 Maximum number of threads the platform can have.
266
Felix Helde68ddc72023-02-14 23:02:09 +0100267config VGA_BIOS_ID
268 string
269 default "1002,1506" if SOC_AMD_MENDOCINO
270 help
271 The default VGA BIOS PCI vendor/device ID of the GPU and VBIOS.
272
273config VGA_BIOS_FILE
274 string
275 default "3rdparty/amd_blobs/mendocino/MdnGenericVbios.bin" if SOC_AMD_MENDOCINO
276
Felix Held3c44c622022-01-10 20:57:29 +0100277config CONSOLE_UART_BASE_ADDRESS
278 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
279 hex
280 default 0xfedc9000 if UART_FOR_CONSOLE = 0
281 default 0xfedca000 if UART_FOR_CONSOLE = 1
Felix Heldb1fe9de2022-01-12 23:18:54 +0100282 default 0xfedce000 if UART_FOR_CONSOLE = 2
283 default 0xfedcf000 if UART_FOR_CONSOLE = 3
284 default 0xfedd1000 if UART_FOR_CONSOLE = 4
Felix Held3c44c622022-01-10 20:57:29 +0100285
286config SMM_TSEG_SIZE
287 hex
288 default 0x800000 if HAVE_SMI_HANDLER
289 default 0x0
290
291config SMM_RESERVED_SIZE
292 hex
293 default 0x180000
294
295config SMM_MODULE_STACK_SIZE
296 hex
297 default 0x800
298
299config ACPI_BERT
300 bool "Build ACPI BERT Table"
301 default y
302 depends on HAVE_ACPI_TABLES
303 help
304 Report Machine Check errors identified in POST to the OS in an
305 ACPI Boot Error Record Table.
306
307config ACPI_BERT_SIZE
308 hex
309 default 0x4000 if ACPI_BERT
310 default 0x0
311 help
312 Specify the amount of DRAM reserved for gathering the data used to
313 generate the ACPI table.
314
315config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
316 int
317 default 150
318
319config DISABLE_SPI_FLASH_ROM_SHARING
320 def_bool n
321 help
322 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
323 which indicates a board level ROM transaction request. This
324 removes arbitration with board and assumes the chipset controls
325 the SPI flash bus entirely.
326
327config DISABLE_KEYBOARD_RESET_PIN
328 bool
329 help
Martin Roth9ceac742023-02-08 14:26:02 -0700330 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Felix Held3c44c622022-01-10 20:57:29 +0100331
Chris.Wang9ac09842022-12-13 14:31:38 +0800332config FEATURE_DYNAMIC_DPTC
333 bool
334 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
335 help
336 Selected by mainboards that implement support for ALIB
337 to enable dynamic DPTC.
338
339config FEATURE_TABLET_MODE_DPTC
340 bool
341 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
342 help
343 Selected by mainboards that implement support for ALIB to
344 switch default and tablet mode.
345
Felix Held3c44c622022-01-10 20:57:29 +0100346menu "PSP Configuration Options"
347
348config AMD_FWM_POSITION_INDEX
349 int "Firmware Directory Table location (0 to 5)"
350 range 0 5
351 default 0 if BOARD_ROMSIZE_KB_512
352 default 1 if BOARD_ROMSIZE_KB_1024
353 default 2 if BOARD_ROMSIZE_KB_2048
354 default 3 if BOARD_ROMSIZE_KB_4096
355 default 4 if BOARD_ROMSIZE_KB_8192
356 default 5 if BOARD_ROMSIZE_KB_16384
357 help
358 Typically this is calculated by the ROM size, but there may
359 be situations where you want to put the firmware directory
360 table in a different location.
361 0: 512 KB - 0xFFFA0000
362 1: 1 MB - 0xFFF20000
363 2: 2 MB - 0xFFE20000
364 3: 4 MB - 0xFFC20000
365 4: 8 MB - 0xFF820000
366 5: 16 MB - 0xFF020000
367
368comment "AMD Firmware Directory Table set to location for 512KB ROM"
369 depends on AMD_FWM_POSITION_INDEX = 0
370comment "AMD Firmware Directory Table set to location for 1MB ROM"
371 depends on AMD_FWM_POSITION_INDEX = 1
372comment "AMD Firmware Directory Table set to location for 2MB ROM"
373 depends on AMD_FWM_POSITION_INDEX = 2
374comment "AMD Firmware Directory Table set to location for 4MB ROM"
375 depends on AMD_FWM_POSITION_INDEX = 3
376comment "AMD Firmware Directory Table set to location for 8MB ROM"
377 depends on AMD_FWM_POSITION_INDEX = 4
378comment "AMD Firmware Directory Table set to location for 16MB ROM"
379 depends on AMD_FWM_POSITION_INDEX = 5
380
381config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600382 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600383 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600384 help
385 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100386
387config PSP_DISABLE_POSTCODES
388 bool "Disable PSP post codes"
389 help
390 Disables the output of port80 post codes from PSP.
391
392config PSP_POSTCODES_ON_ESPI
393 bool "Use eSPI bus for PSP post codes"
394 default y
395 depends on !PSP_DISABLE_POSTCODES
396 help
397 Select to send PSP port80 post codes on eSPI bus.
398 If not selected, PSP port80 codes will be sent on LPC bus.
399
400config PSP_LOAD_MP2_FW
401 bool
402 default n
403 help
404 Include the MP2 firmwares and configuration into the PSP build.
405
406 If unsure, answer 'n'
407
408config PSP_UNLOCK_SECURE_DEBUG
409 bool "Unlock secure debug"
410 default y
411 help
412 Select this item to enable secure debug options in PSP.
413
414config HAVE_PSP_WHITELIST_FILE
415 bool "Include a debug whitelist file in PSP build"
416 default n
417 help
418 Support secured unlock prior to reset using a whitelisted
419 serial number. This feature requires a signed whitelist image
420 and bootloader from AMD.
421
422 If unsure, answer 'n'
423
424config PSP_WHITELIST_FILE
425 string "Debug whitelist file path"
426 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600427 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100428
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600429config HAVE_SPL_FILE
430 bool "Have a mainboard specific SPL table file"
431 default n
432 help
433 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
434 is required to support PSP FW anti-rollback and needs to be created by AMD.
435 The default SPL file applies to all boards that use the concerned SoC and
436 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
437 can be applied through SPL_TABLE_FILE config.
438
439 If unsure, answer 'n'
440
441config SPL_TABLE_FILE
442 string "SPL table file"
443 depends on HAVE_SPL_FILE
Marshall Dawson26d7d732022-08-05 12:44:03 -0600444 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600445
Felix Held40a38cc2022-09-12 16:18:45 +0200446config HAVE_SPL_RW_AB_FILE
447 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
448 default n
449 depends on HAVE_SPL_FILE
450 depends on VBOOT_SLOTS_RW_AB
451 help
452 Have separate mainboard-specific Security Patch Level (SPL) table
453 file for the RW A/B FMAP partitions. See the help text of
454 HAVE_SPL_FILE for a more detailed description.
455
456config SPL_RW_AB_TABLE_FILE
457 string "Separate SPL table file for RW A/B partitions"
458 depends on HAVE_SPL_RW_AB_FILE
459 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
460
Felix Held3c44c622022-01-10 20:57:29 +0100461config PSP_SOFTFUSE_BITS
462 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200463 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100464 help
465 Space separated list of Soft Fuse bits to enable.
466 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
467 Bit 7: Disable PSP postcodes on Renoir and newer chips only
468 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100469 Bit 15: PSP debug output destination:
470 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100471 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
472
473 See #55758 (NDA) for additional bit definitions.
474
475config PSP_VERSTAGE_FILE
476 string "Specify the PSP_verstage file path"
477 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
478 default "\$(obj)/psp_verstage.bin"
479 help
480 Add psp_verstage file to the build & PSP Directory Table
481
482config PSP_VERSTAGE_SIGNING_TOKEN
483 string "Specify the PSP_verstage Signature Token file path"
484 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
485 default ""
486 help
487 Add psp_verstage signature token to the build & PSP Directory Table
488
489endmenu
490
491config VBOOT
492 select VBOOT_VBNV_CMOS
493 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
494
495config VBOOT_STARTS_BEFORE_BOOTBLOCK
496 def_bool n
497 depends on VBOOT
498 select ARCH_VERSTAGE_ARMV7
499 help
500 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600501 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100502
503config VBOOT_HASH_BLOCK_SIZE
504 hex
505 default 0x9000
506 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
507 help
508 Because the bulk of the time in psp_verstage to hash the RO cbfs is
509 spent in the overhead of doing svc calls, increasing the hash block
510 size significantly cuts the verstage hashing time as seen below.
511
512 4k takes 180ms
513 16k takes 44ms
514 32k takes 33.7ms
515 36k takes 32.5ms
516 There's actually still room for an even bigger stack, but we've
517 reached a point of diminishing returns.
518
519config CMOS_RECOVERY_BYTE
520 hex
521 default 0x51
522 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
523 help
524 If the workbuf is not passed from the PSP to coreboot, set the
525 recovery flag and reboot. The PSP will read this byte, mark the
526 recovery request in VBNV, and reset the system into recovery mode.
527
528 This is the byte before the default first byte used by VBNV
529 (0x26 + 0x0E - 1)
530
Matt DeVillierf9fea862022-10-04 16:41:28 -0500531if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100532
533config RWA_REGION_ONLY
534 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700535 default "apu/amdfw_a apu/amdfw_a_body"
Felix Held3c44c622022-01-10 20:57:29 +0100536 help
537 Add a space-delimited list of filenames that should only be in the
538 RW-A section.
539
Matt DeVillierf9fea862022-10-04 16:41:28 -0500540endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
541
542if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
543
Felix Held3c44c622022-01-10 20:57:29 +0100544config RWB_REGION_ONLY
545 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700546 default "apu/amdfw_b apu/amdfw_b_body"
Felix Held3c44c622022-01-10 20:57:29 +0100547 help
548 Add a space-delimited list of filenames that should only be in the
549 RW-B section.
550
551endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
552
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530553endif # SOC_AMD_REMBRANDT_BASE