blob: 7192106922ac6402af7114766226b8f88c4ddc05 [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
Matt DeVillier6dadf7f2023-09-01 09:29:14 -05006 select ADD_FSP_BINARIES if USE_AMD_BLOBS
Felix Held3c44c622022-01-10 20:57:29 +01007 select ARCH_X86
8 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
Karthikeyan Ramasubramanianb9a62232023-02-23 15:53:59 -07009 select CACHE_MRC_SETTINGS
Felix Held3c44c622022-01-10 20:57:29 +010010 select DRIVERS_USB_ACPI
Felix Held3c44c622022-01-10 20:57:29 +010011 select DRIVERS_USB_PCI_XHCI
12 select FSP_COMPRESS_FSP_M_LZMA if !ASYNC_FILE_LOADING
13 select FSP_COMPRESS_FSP_M_LZ4 if ASYNC_FILE_LOADING
14 select FSP_COMPRESS_FSP_S_LZ4
15 select GENERIC_GPIO_LIB
16 select HAVE_ACPI_TABLES
17 select HAVE_CF9_RESET
18 select HAVE_EM100_SUPPORT
19 select HAVE_FSP_GOP
Karthikeyan Ramasubramanian93cf2f12023-10-13 16:18:56 +000020 select HAVE_FSP_LOGO_SUPPORT if RUN_FSP_GOP
Felix Held3c44c622022-01-10 20:57:29 +010021 select HAVE_SMI_HANDLER
22 select IDT_IN_EVERY_STAGE
23 select PARALLEL_MP_AP_WORK
24 select PLATFORM_USES_FSP2_0
25 select PROVIDES_ROM_SHARING
Karthikeyan Ramasubramanianef129762022-12-22 13:07:28 -070026 select PSP_INCLUDES_HSP
Karthikeyan Ramasubramanian8ebb04c2022-07-14 17:29:06 -060027 select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK
Karthikeyan Ramasubramanianb2af2e32022-08-04 14:16:38 -060028 select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +010029 select RESET_VECTOR_IN_RAM
30 select RTC
31 select SOC_AMD_COMMON
Fred Reitberger81d3cde2022-02-10 09:31:26 -050032 select SOC_AMD_COMMON_BLOCK_ACP_GEN2
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050033 select SOC_AMD_COMMON_BLOCK_ACPI
Felix Held70f32bb2022-02-04 16:23:47 +010034 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Held9ab8a782023-07-14 18:44:13 +020035 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_PM_IO_ACCESS
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 Helde23c4252023-03-07 00:03:46 +010038 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
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 Heldaab8a222024-01-08 23:30:38 +010041 select SOC_AMD_COMMON_BLOCK_ACPI_MADT
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 Helda63f8592023-03-24 16:30:55 +010046 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Matt DeVillier37cae5c2023-07-28 14:51:15 -050047 select SOC_AMD_COMMON_BLOCK_CPU_SYNC_PSP_ADDR_MSR
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 Heldd6326972023-09-15 22:40:02 +020050 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_NP_REGION
Felix Heldc64f37d2022-02-12 17:30:59 +010051 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050052 select SOC_AMD_COMMON_BLOCK_GRAPHICS
Felix Heldc64f37d2022-02-12 17:30:59 +010053 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Raul E Rangel5a5de332022-04-25 13:33:50 -060054 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Felix Held8e4742d2022-02-03 15:15:37 +010055 select SOC_AMD_COMMON_BLOCK_I2C
Felix Held3bdbdb72022-02-02 22:55:34 +010056 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
Felix Held0eef54b2022-02-04 19:28:51 +010057 select SOC_AMD_COMMON_BLOCK_IOMMU
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050058 select SOC_AMD_COMMON_BLOCK_LPC
Karthikeyan Ramasubramanian5d5f6822022-12-05 17:08:08 -070059 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held901481f2022-06-22 15:38:44 +020060 select SOC_AMD_COMMON_BLOCK_MCAX
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050061 select SOC_AMD_COMMON_BLOCK_NONCAR
62 select SOC_AMD_COMMON_BLOCK_PCI
Felix Heldceefc742022-02-07 15:27:27 +010063 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050064 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER
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
Felix Held51d1f302023-10-04 21:10:36 +020068 select SOC_AMD_COMMON_BLOCK_PSP_SPL
Martin Roth440c8232023-02-01 14:27:18 -070069 select SOC_AMD_COMMON_BLOCK_RESET
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050070 select SOC_AMD_COMMON_BLOCK_SMBUS
71 select SOC_AMD_COMMON_BLOCK_SMI
72 select SOC_AMD_COMMON_BLOCK_SMM
Felix Held6f9e4ab2022-02-03 18:34:23 +010073 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held7a2c1c72023-01-12 23:11:22 +010074 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050075 select SOC_AMD_COMMON_BLOCK_SPI
Martin Roth300338f2022-10-14 14:55:25 -060076 select SOC_AMD_COMMON_BLOCK_STB
Felix Held23a398e2023-03-23 23:44:03 +010077 select SOC_AMD_COMMON_BLOCK_SVI3
Felix Held60df7ca2023-03-24 20:33:15 +010078 select SOC_AMD_COMMON_BLOCK_TSC
Felix Heldb0789ed2022-02-04 22:36:32 +010079 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020080 select SOC_AMD_COMMON_BLOCK_UCODE
Robert Zieba3b28aef2022-09-15 15:25:55 -060081 select SOC_AMD_COMMON_BLOCK_XHCI
Felix Held665476d2022-08-03 22:18:18 +020082 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050083 select SOC_AMD_COMMON_FSP_DMI_TABLES
84 select SOC_AMD_COMMON_FSP_PCI
Matt DeVillier6bb0f8a2023-11-13 20:57:12 -060085 select SOC_AMD_COMMON_FSP_PCIE_CLK_REQ
Fred Reitberger41c7e312023-01-11 15:11:08 -050086 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Felix Held3c44c622022-01-10 20:57:29 +010087 select SSE2
88 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060089 select USE_DDR5
Subrata Banik34f26b22022-02-10 12:38:02 +053090 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
91 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
92 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010093 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
Matt DeVillier65a44452023-02-16 09:57:40 -060094 select VBOOT_MUST_REQUEST_DISPLAY if VBOOT
Karthikeyan Ramasubramanian06d5b8b2022-10-27 22:50:07 -060095 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +010096 select X86_AMD_FIXED_MTRRS
97 select X86_INIT_NEED_1_SIPI
98
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010099config SOC_AMD_MENDOCINO
100 bool
101 select SOC_AMD_REMBRANDT_BASE
102 help
103 AMD Mendocino support
104
105config SOC_AMD_REMBRANDT
106 bool
107 select SOC_AMD_REMBRANDT_BASE
108 help
109 AMD Rembrandt support
110
111
112if SOC_AMD_REMBRANDT_BASE
113
Felix Held3c44c622022-01-10 20:57:29 +0100114config CHIPSET_DEVICETREE
115 string
Jon Murphy4f732422022-08-05 15:43:44 -0600116 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
117 default "soc/amd/mendocino/chipset_rembrandt.cb"
Felix Held3c44c622022-01-10 20:57:29 +0100118
Matt DeVillier6dadf7f2023-09-01 09:29:14 -0500119config FSP_M_FILE
120 string "FSP-M (memory init) binary path and filename"
121 depends on ADD_FSP_BINARIES
122 default "3rdparty/amd_blobs/mendocino/MENDOCINO_M.fd" if SOC_AMD_MENDOCINO
123 help
124 The path and filename of the FSP-M binary for this platform.
125
126config FSP_S_FILE
127 string "FSP-S (silicon init) binary path and filename"
128 depends on ADD_FSP_BINARIES
129 default "3rdparty/amd_blobs/mendocino/MENDOCINO_S.fd" if SOC_AMD_MENDOCINO
130 help
131 The path and filename of the FSP-S binary for this platform.
132
Felix Held3c44c622022-01-10 20:57:29 +0100133config EARLY_RESERVED_DRAM_BASE
134 hex
135 default 0x2000000
136 help
137 This variable defines the base address of the DRAM which is reserved
138 for usage by coreboot in early stages (i.e. before ramstage is up).
139 This memory gets reserved in BIOS tables to ensure that the OS does
140 not use it, thus preventing corruption of OS memory in case of S3
141 resume.
142
143config EARLYRAM_BSP_STACK_SIZE
144 hex
145 default 0x1000
146
147config PSP_APOB_DRAM_ADDRESS
148 hex
149 default 0x2001000
150 help
151 Location in DRAM where the PSP will copy the AGESA PSP Output
152 Block.
153
Fred Reitberger475e2822022-07-14 11:06:30 -0400154config PSP_APOB_DRAM_SIZE
155 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400156 default 0x1E000
Fred Reitberger475e2822022-07-14 11:06:30 -0400157
Felix Held3c44c622022-01-10 20:57:29 +0100158config PSP_SHAREDMEM_BASE
159 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400160 default 0x201F000 if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +0100161 default 0x0
162 help
163 This variable defines the base address in DRAM memory where PSP copies
164 the vboot workbuf. This is used in the linker script to have a static
165 allocation for the buffer as well as for adding relevant entries in
166 the BIOS directory table for the PSP.
167
168config PSP_SHAREDMEM_SIZE
169 hex
170 default 0x8000 if VBOOT
171 default 0x0
172 help
173 Sets the maximum size for the PSP to pass the vboot workbuf and
174 any logs or timestamps back to coreboot. This will be copied
175 into main memory by the PSP and will be available when the x86 is
176 started. The workbuf's base depends on the address of the reset
177 vector.
178
Felix Held55614682022-01-25 04:31:15 +0100179config PRE_X86_CBMEM_CONSOLE_SIZE
180 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700181 default 0x1000
Felix Held55614682022-01-25 04:31:15 +0100182 help
183 Size of the CBMEM console used in PSP verstage.
184
Felix Held3c44c622022-01-10 20:57:29 +0100185config PRERAM_CBMEM_CONSOLE_SIZE
186 hex
187 default 0x1600
188 help
189 Increase this value if preram cbmem console is getting truncated
190
191config CBFS_MCACHE_SIZE
192 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700193 default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100194
195config C_ENV_BOOTBLOCK_SIZE
196 hex
197 default 0x10000
198 help
199 Sets the size of the bootblock stage that should be loaded in DRAM.
200 This variable controls the DRAM allocation size in linker script
201 for bootblock stage.
202
203config ROMSTAGE_ADDR
204 hex
205 default 0x2040000
206 help
207 Sets the address in DRAM where romstage should be loaded.
208
209config ROMSTAGE_SIZE
210 hex
211 default 0x80000
212 help
213 Sets the size of DRAM allocation for romstage in linker script.
214
215config FSP_M_ADDR
216 hex
217 default 0x20C0000
218 help
219 Sets the address in DRAM where FSP-M should be loaded. cbfstool
220 performs relocation of FSP-M to this address.
221
222config FSP_M_SIZE
223 hex
224 default 0xC0000
225 help
226 Sets the size of DRAM allocation for FSP-M in linker script.
227
228config FSP_TEMP_RAM_SIZE
229 hex
230 default 0x40000
231 help
232 The amount of coreboot-allocated heap and stack usage by the FSP.
233
234config VERSTAGE_ADDR
235 hex
236 depends on VBOOT_SEPARATE_VERSTAGE
237 default 0x2180000
238 help
239 Sets the address in DRAM where verstage should be loaded if running
240 as a separate stage on x86.
241
242config VERSTAGE_SIZE
243 hex
244 depends on VBOOT_SEPARATE_VERSTAGE
245 default 0x80000
246 help
247 Sets the size of DRAM allocation for verstage in linker script if
248 running as a separate stage on x86.
249
250config ASYNC_FILE_LOADING
251 bool "Loads files from SPI asynchronously"
252 select COOP_MULTITASKING
253 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
254 select CBFS_PRELOAD
255 help
256 When enabled, the platform will use the LPC SPI DMA controller to
257 asynchronously load contents from the SPI ROM. This will improve
258 boot time because the CPUs can be performing useful work while the
259 SPI contents are being preloaded.
260
261config CBFS_CACHE_SIZE
262 hex
Karthikeyan Ramasubramaniane4fd7dc2023-04-10 17:46:41 -0600263 default 0x40000 if CBFS_PRELOAD || SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held3c44c622022-01-10 20:57:29 +0100264
Felix Held3c44c622022-01-10 20:57:29 +0100265config RO_REGION_ONLY
266 string
267 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
268 default "apu/amdfw"
269
270config ECAM_MMCONF_BASE_ADDRESS
271 default 0xF8000000
272
273config ECAM_MMCONF_BUS_NUMBER
274 default 64
275
276config MAX_CPUS
277 int
Jon Murphy4f732422022-08-05 15:43:44 -0600278 default 8 if SOC_AMD_MENDOCINO
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530279 default 16
Felix Held3c44c622022-01-10 20:57:29 +0100280 help
281 Maximum number of threads the platform can have.
282
Felix Helde68ddc72023-02-14 23:02:09 +0100283config VGA_BIOS_ID
284 string
285 default "1002,1506" if SOC_AMD_MENDOCINO
286 help
287 The default VGA BIOS PCI vendor/device ID of the GPU and VBIOS.
288
289config VGA_BIOS_FILE
290 string
291 default "3rdparty/amd_blobs/mendocino/MdnGenericVbios.bin" if SOC_AMD_MENDOCINO
292
Felix Held3c44c622022-01-10 20:57:29 +0100293config CONSOLE_UART_BASE_ADDRESS
294 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
295 hex
296 default 0xfedc9000 if UART_FOR_CONSOLE = 0
297 default 0xfedca000 if UART_FOR_CONSOLE = 1
Felix Heldb1fe9de2022-01-12 23:18:54 +0100298 default 0xfedce000 if UART_FOR_CONSOLE = 2
299 default 0xfedcf000 if UART_FOR_CONSOLE = 3
300 default 0xfedd1000 if UART_FOR_CONSOLE = 4
Felix Held3c44c622022-01-10 20:57:29 +0100301
302config SMM_TSEG_SIZE
303 hex
304 default 0x800000 if HAVE_SMI_HANDLER
305 default 0x0
306
307config SMM_RESERVED_SIZE
308 hex
309 default 0x180000
310
311config SMM_MODULE_STACK_SIZE
312 hex
313 default 0x800
314
315config ACPI_BERT
316 bool "Build ACPI BERT Table"
317 default y
318 depends on HAVE_ACPI_TABLES
319 help
320 Report Machine Check errors identified in POST to the OS in an
321 ACPI Boot Error Record Table.
322
323config ACPI_BERT_SIZE
324 hex
325 default 0x4000 if ACPI_BERT
326 default 0x0
327 help
328 Specify the amount of DRAM reserved for gathering the data used to
329 generate the ACPI table.
330
331config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
332 int
333 default 150
334
335config DISABLE_SPI_FLASH_ROM_SHARING
336 def_bool n
337 help
338 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
339 which indicates a board level ROM transaction request. This
340 removes arbitration with board and assumes the chipset controls
341 the SPI flash bus entirely.
342
343config DISABLE_KEYBOARD_RESET_PIN
344 bool
345 help
Martin Roth9ceac742023-02-08 14:26:02 -0700346 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Felix Held3c44c622022-01-10 20:57:29 +0100347
Chris.Wang9ac09842022-12-13 14:31:38 +0800348config FEATURE_DYNAMIC_DPTC
349 bool
350 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
351 help
352 Selected by mainboards that implement support for ALIB
353 to enable dynamic DPTC.
354
355config FEATURE_TABLET_MODE_DPTC
356 bool
357 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
358 help
359 Selected by mainboards that implement support for ALIB to
360 switch default and tablet mode.
361
Felix Held3c44c622022-01-10 20:57:29 +0100362menu "PSP Configuration Options"
363
Felix Held3c44c622022-01-10 20:57:29 +0100364config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600365 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600366 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600367 help
368 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100369
370config PSP_DISABLE_POSTCODES
371 bool "Disable PSP post codes"
372 help
373 Disables the output of port80 post codes from PSP.
374
375config PSP_POSTCODES_ON_ESPI
376 bool "Use eSPI bus for PSP post codes"
377 default y
378 depends on !PSP_DISABLE_POSTCODES
379 help
380 Select to send PSP port80 post codes on eSPI bus.
381 If not selected, PSP port80 codes will be sent on LPC bus.
382
383config PSP_LOAD_MP2_FW
384 bool
385 default n
386 help
387 Include the MP2 firmwares and configuration into the PSP build.
388
389 If unsure, answer 'n'
390
391config PSP_UNLOCK_SECURE_DEBUG
392 bool "Unlock secure debug"
393 default y
394 help
395 Select this item to enable secure debug options in PSP.
396
397config HAVE_PSP_WHITELIST_FILE
398 bool "Include a debug whitelist file in PSP build"
399 default n
400 help
401 Support secured unlock prior to reset using a whitelisted
402 serial number. This feature requires a signed whitelist image
403 and bootloader from AMD.
404
405 If unsure, answer 'n'
406
407config PSP_WHITELIST_FILE
408 string "Debug whitelist file path"
409 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600410 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100411
412config PSP_SOFTFUSE_BITS
413 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200414 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100415 help
416 Space separated list of Soft Fuse bits to enable.
417 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
418 Bit 7: Disable PSP postcodes on Renoir and newer chips only
419 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100420 Bit 15: PSP debug output destination:
421 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100422 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
423
424 See #55758 (NDA) for additional bit definitions.
425
426config PSP_VERSTAGE_FILE
427 string "Specify the PSP_verstage file path"
428 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
429 default "\$(obj)/psp_verstage.bin"
430 help
431 Add psp_verstage file to the build & PSP Directory Table
432
433config PSP_VERSTAGE_SIGNING_TOKEN
434 string "Specify the PSP_verstage Signature Token file path"
435 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
436 default ""
437 help
438 Add psp_verstage signature token to the build & PSP Directory Table
439
440endmenu
441
442config VBOOT
443 select VBOOT_VBNV_CMOS
444 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
445
446config VBOOT_STARTS_BEFORE_BOOTBLOCK
447 def_bool n
448 depends on VBOOT
449 select ARCH_VERSTAGE_ARMV7
450 help
451 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600452 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100453
454config VBOOT_HASH_BLOCK_SIZE
455 hex
456 default 0x9000
457 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
458 help
459 Because the bulk of the time in psp_verstage to hash the RO cbfs is
460 spent in the overhead of doing svc calls, increasing the hash block
461 size significantly cuts the verstage hashing time as seen below.
462
463 4k takes 180ms
464 16k takes 44ms
465 32k takes 33.7ms
466 36k takes 32.5ms
467 There's actually still room for an even bigger stack, but we've
468 reached a point of diminishing returns.
469
470config CMOS_RECOVERY_BYTE
471 hex
472 default 0x51
473 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
474 help
475 If the workbuf is not passed from the PSP to coreboot, set the
476 recovery flag and reboot. The PSP will read this byte, mark the
477 recovery request in VBNV, and reset the system into recovery mode.
478
479 This is the byte before the default first byte used by VBNV
480 (0x26 + 0x0E - 1)
481
Matt DeVillierf9fea862022-10-04 16:41:28 -0500482if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100483
484config RWA_REGION_ONLY
485 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700486 default "apu/amdfw_a apu/amdfw_a_body"
Felix Held3c44c622022-01-10 20:57:29 +0100487 help
488 Add a space-delimited list of filenames that should only be in the
489 RW-A section.
490
Matt DeVillierf9fea862022-10-04 16:41:28 -0500491endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
492
493if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
494
Felix Held3c44c622022-01-10 20:57:29 +0100495config RWB_REGION_ONLY
496 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700497 default "apu/amdfw_b apu/amdfw_b_body"
Felix Held3c44c622022-01-10 20:57:29 +0100498 help
499 Add a space-delimited list of filenames that should only be in the
500 RW-B section.
501
502endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
503
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530504endif # SOC_AMD_REMBRANDT_BASE