blob: 7faa479363838a774d9a73944c4ce5c5c3c01ae2 [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
64 select SOC_AMD_COMMON_BLOCK_SMBUS
65 select SOC_AMD_COMMON_BLOCK_SMI
66 select SOC_AMD_COMMON_BLOCK_SMM
Felix Held6f9e4ab2022-02-03 18:34:23 +010067 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held7a2c1c72023-01-12 23:11:22 +010068 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050069 select SOC_AMD_COMMON_BLOCK_SPI
Martin Roth300338f2022-10-14 14:55:25 -060070 select SOC_AMD_COMMON_BLOCK_STB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050071 select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H
Felix Heldb0789ed2022-02-04 22:36:32 +010072 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020073 select SOC_AMD_COMMON_BLOCK_UCODE
Felix Held665476d2022-08-03 22:18:18 +020074 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050075 select SOC_AMD_COMMON_FSP_DMI_TABLES
76 select SOC_AMD_COMMON_FSP_PCI
Fred Reitberger41c7e312023-01-11 15:11:08 -050077 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Felix Held3c44c622022-01-10 20:57:29 +010078 select SSE2
79 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060080 select USE_DDR5
Subrata Banik34f26b22022-02-10 12:38:02 +053081 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
82 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
83 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010084 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
Karthikeyan Ramasubramanian06d5b8b2022-10-27 22:50:07 -060085 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +010086 select X86_AMD_FIXED_MTRRS
87 select X86_INIT_NEED_1_SIPI
88
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010089config SOC_AMD_MENDOCINO
90 bool
91 select SOC_AMD_REMBRANDT_BASE
92 help
93 AMD Mendocino support
94
95config SOC_AMD_REMBRANDT
96 bool
97 select SOC_AMD_REMBRANDT_BASE
98 help
99 AMD Rembrandt support
100
101
102if SOC_AMD_REMBRANDT_BASE
103
Felix Held3c44c622022-01-10 20:57:29 +0100104config CHIPSET_DEVICETREE
105 string
Jon Murphy4f732422022-08-05 15:43:44 -0600106 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
107 default "soc/amd/mendocino/chipset_rembrandt.cb"
Felix Held3c44c622022-01-10 20:57:29 +0100108
109config EARLY_RESERVED_DRAM_BASE
110 hex
111 default 0x2000000
112 help
113 This variable defines the base address of the DRAM which is reserved
114 for usage by coreboot in early stages (i.e. before ramstage is up).
115 This memory gets reserved in BIOS tables to ensure that the OS does
116 not use it, thus preventing corruption of OS memory in case of S3
117 resume.
118
119config EARLYRAM_BSP_STACK_SIZE
120 hex
121 default 0x1000
122
123config PSP_APOB_DRAM_ADDRESS
124 hex
125 default 0x2001000
126 help
127 Location in DRAM where the PSP will copy the AGESA PSP Output
128 Block.
129
Fred Reitberger475e2822022-07-14 11:06:30 -0400130config PSP_APOB_DRAM_SIZE
131 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400132 default 0x1E000
Fred Reitberger475e2822022-07-14 11:06:30 -0400133
Felix Held3c44c622022-01-10 20:57:29 +0100134config PSP_SHAREDMEM_BASE
135 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400136 default 0x201F000 if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +0100137 default 0x0
138 help
139 This variable defines the base address in DRAM memory where PSP copies
140 the vboot workbuf. This is used in the linker script to have a static
141 allocation for the buffer as well as for adding relevant entries in
142 the BIOS directory table for the PSP.
143
144config PSP_SHAREDMEM_SIZE
145 hex
146 default 0x8000 if VBOOT
147 default 0x0
148 help
149 Sets the maximum size for the PSP to pass the vboot workbuf and
150 any logs or timestamps back to coreboot. This will be copied
151 into main memory by the PSP and will be available when the x86 is
152 started. The workbuf's base depends on the address of the reset
153 vector.
154
Felix Held55614682022-01-25 04:31:15 +0100155config PRE_X86_CBMEM_CONSOLE_SIZE
156 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700157 default 0x1000
Felix Held55614682022-01-25 04:31:15 +0100158 help
159 Size of the CBMEM console used in PSP verstage.
160
Felix Held3c44c622022-01-10 20:57:29 +0100161config PRERAM_CBMEM_CONSOLE_SIZE
162 hex
163 default 0x1600
164 help
165 Increase this value if preram cbmem console is getting truncated
166
167config CBFS_MCACHE_SIZE
168 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700169 default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100170
171config C_ENV_BOOTBLOCK_SIZE
172 hex
173 default 0x10000
174 help
175 Sets the size of the bootblock stage that should be loaded in DRAM.
176 This variable controls the DRAM allocation size in linker script
177 for bootblock stage.
178
179config ROMSTAGE_ADDR
180 hex
181 default 0x2040000
182 help
183 Sets the address in DRAM where romstage should be loaded.
184
185config ROMSTAGE_SIZE
186 hex
187 default 0x80000
188 help
189 Sets the size of DRAM allocation for romstage in linker script.
190
191config FSP_M_ADDR
192 hex
193 default 0x20C0000
194 help
195 Sets the address in DRAM where FSP-M should be loaded. cbfstool
196 performs relocation of FSP-M to this address.
197
198config FSP_M_SIZE
199 hex
200 default 0xC0000
201 help
202 Sets the size of DRAM allocation for FSP-M in linker script.
203
204config FSP_TEMP_RAM_SIZE
205 hex
206 default 0x40000
207 help
208 The amount of coreboot-allocated heap and stack usage by the FSP.
209
210config VERSTAGE_ADDR
211 hex
212 depends on VBOOT_SEPARATE_VERSTAGE
213 default 0x2180000
214 help
215 Sets the address in DRAM where verstage should be loaded if running
216 as a separate stage on x86.
217
218config VERSTAGE_SIZE
219 hex
220 depends on VBOOT_SEPARATE_VERSTAGE
221 default 0x80000
222 help
223 Sets the size of DRAM allocation for verstage in linker script if
224 running as a separate stage on x86.
225
226config ASYNC_FILE_LOADING
227 bool "Loads files from SPI asynchronously"
228 select COOP_MULTITASKING
229 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
230 select CBFS_PRELOAD
231 help
232 When enabled, the platform will use the LPC SPI DMA controller to
233 asynchronously load contents from the SPI ROM. This will improve
234 boot time because the CPUs can be performing useful work while the
235 SPI contents are being preloaded.
236
237config CBFS_CACHE_SIZE
238 hex
239 default 0x40000 if CBFS_PRELOAD
240
Felix Held3c44c622022-01-10 20:57:29 +0100241config RO_REGION_ONLY
242 string
243 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
244 default "apu/amdfw"
245
246config ECAM_MMCONF_BASE_ADDRESS
247 default 0xF8000000
248
249config ECAM_MMCONF_BUS_NUMBER
250 default 64
251
252config MAX_CPUS
253 int
Jon Murphy4f732422022-08-05 15:43:44 -0600254 default 8 if SOC_AMD_MENDOCINO
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530255 default 16
Felix Held3c44c622022-01-10 20:57:29 +0100256 help
257 Maximum number of threads the platform can have.
258
259config CONSOLE_UART_BASE_ADDRESS
260 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
261 hex
262 default 0xfedc9000 if UART_FOR_CONSOLE = 0
263 default 0xfedca000 if UART_FOR_CONSOLE = 1
Felix Heldb1fe9de2022-01-12 23:18:54 +0100264 default 0xfedce000 if UART_FOR_CONSOLE = 2
265 default 0xfedcf000 if UART_FOR_CONSOLE = 3
266 default 0xfedd1000 if UART_FOR_CONSOLE = 4
Felix Held3c44c622022-01-10 20:57:29 +0100267
268config SMM_TSEG_SIZE
269 hex
270 default 0x800000 if HAVE_SMI_HANDLER
271 default 0x0
272
273config SMM_RESERVED_SIZE
274 hex
275 default 0x180000
276
277config SMM_MODULE_STACK_SIZE
278 hex
279 default 0x800
280
281config ACPI_BERT
282 bool "Build ACPI BERT Table"
283 default y
284 depends on HAVE_ACPI_TABLES
285 help
286 Report Machine Check errors identified in POST to the OS in an
287 ACPI Boot Error Record Table.
288
289config ACPI_BERT_SIZE
290 hex
291 default 0x4000 if ACPI_BERT
292 default 0x0
293 help
294 Specify the amount of DRAM reserved for gathering the data used to
295 generate the ACPI table.
296
297config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
298 int
299 default 150
300
301config DISABLE_SPI_FLASH_ROM_SHARING
302 def_bool n
303 help
304 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
305 which indicates a board level ROM transaction request. This
306 removes arbitration with board and assumes the chipset controls
307 the SPI flash bus entirely.
308
309config DISABLE_KEYBOARD_RESET_PIN
310 bool
311 help
312 Instruct the SoC to not use the state of GPIO_129 as keyboard reset
313 signal. When this pin is used as GPIO and the keyboard reset
314 functionality isn't disabled, configuring it as an output and driving
315 it as 0 will cause a reset.
316
317config ACPI_SSDT_PSD_INDEPENDENT
318 bool "Allow core p-state independent transitions"
319 default y
320 help
321 AMD recommends the ACPI _PSD object to be configured to cause
322 cores to transition between p-states independently. A vendor may
323 choose to generate _PSD object to allow cores to transition together.
324
Chris.Wang9ac09842022-12-13 14:31:38 +0800325config FEATURE_DYNAMIC_DPTC
326 bool
327 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
328 help
329 Selected by mainboards that implement support for ALIB
330 to enable dynamic DPTC.
331
332config FEATURE_TABLET_MODE_DPTC
333 bool
334 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
335 help
336 Selected by mainboards that implement support for ALIB to
337 switch default and tablet mode.
338
Felix Held3c44c622022-01-10 20:57:29 +0100339menu "PSP Configuration Options"
340
341config AMD_FWM_POSITION_INDEX
342 int "Firmware Directory Table location (0 to 5)"
343 range 0 5
344 default 0 if BOARD_ROMSIZE_KB_512
345 default 1 if BOARD_ROMSIZE_KB_1024
346 default 2 if BOARD_ROMSIZE_KB_2048
347 default 3 if BOARD_ROMSIZE_KB_4096
348 default 4 if BOARD_ROMSIZE_KB_8192
349 default 5 if BOARD_ROMSIZE_KB_16384
350 help
351 Typically this is calculated by the ROM size, but there may
352 be situations where you want to put the firmware directory
353 table in a different location.
354 0: 512 KB - 0xFFFA0000
355 1: 1 MB - 0xFFF20000
356 2: 2 MB - 0xFFE20000
357 3: 4 MB - 0xFFC20000
358 4: 8 MB - 0xFF820000
359 5: 16 MB - 0xFF020000
360
361comment "AMD Firmware Directory Table set to location for 512KB ROM"
362 depends on AMD_FWM_POSITION_INDEX = 0
363comment "AMD Firmware Directory Table set to location for 1MB ROM"
364 depends on AMD_FWM_POSITION_INDEX = 1
365comment "AMD Firmware Directory Table set to location for 2MB ROM"
366 depends on AMD_FWM_POSITION_INDEX = 2
367comment "AMD Firmware Directory Table set to location for 4MB ROM"
368 depends on AMD_FWM_POSITION_INDEX = 3
369comment "AMD Firmware Directory Table set to location for 8MB ROM"
370 depends on AMD_FWM_POSITION_INDEX = 4
371comment "AMD Firmware Directory Table set to location for 16MB ROM"
372 depends on AMD_FWM_POSITION_INDEX = 5
373
374config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600375 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600376 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600377 help
378 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100379
380config PSP_DISABLE_POSTCODES
381 bool "Disable PSP post codes"
382 help
383 Disables the output of port80 post codes from PSP.
384
385config PSP_POSTCODES_ON_ESPI
386 bool "Use eSPI bus for PSP post codes"
387 default y
388 depends on !PSP_DISABLE_POSTCODES
389 help
390 Select to send PSP port80 post codes on eSPI bus.
391 If not selected, PSP port80 codes will be sent on LPC bus.
392
393config PSP_LOAD_MP2_FW
394 bool
395 default n
396 help
397 Include the MP2 firmwares and configuration into the PSP build.
398
399 If unsure, answer 'n'
400
401config PSP_UNLOCK_SECURE_DEBUG
402 bool "Unlock secure debug"
403 default y
404 help
405 Select this item to enable secure debug options in PSP.
406
407config HAVE_PSP_WHITELIST_FILE
408 bool "Include a debug whitelist file in PSP build"
409 default n
410 help
411 Support secured unlock prior to reset using a whitelisted
412 serial number. This feature requires a signed whitelist image
413 and bootloader from AMD.
414
415 If unsure, answer 'n'
416
417config PSP_WHITELIST_FILE
418 string "Debug whitelist file path"
419 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600420 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100421
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600422config HAVE_SPL_FILE
423 bool "Have a mainboard specific SPL table file"
424 default n
425 help
426 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
427 is required to support PSP FW anti-rollback and needs to be created by AMD.
428 The default SPL file applies to all boards that use the concerned SoC and
429 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
430 can be applied through SPL_TABLE_FILE config.
431
432 If unsure, answer 'n'
433
434config SPL_TABLE_FILE
435 string "SPL table file"
436 depends on HAVE_SPL_FILE
Marshall Dawson26d7d732022-08-05 12:44:03 -0600437 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600438
Felix Held40a38cc2022-09-12 16:18:45 +0200439config HAVE_SPL_RW_AB_FILE
440 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
441 default n
442 depends on HAVE_SPL_FILE
443 depends on VBOOT_SLOTS_RW_AB
444 help
445 Have separate mainboard-specific Security Patch Level (SPL) table
446 file for the RW A/B FMAP partitions. See the help text of
447 HAVE_SPL_FILE for a more detailed description.
448
449config SPL_RW_AB_TABLE_FILE
450 string "Separate SPL table file for RW A/B partitions"
451 depends on HAVE_SPL_RW_AB_FILE
452 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
453
Felix Held3c44c622022-01-10 20:57:29 +0100454config PSP_SOFTFUSE_BITS
455 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200456 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100457 help
458 Space separated list of Soft Fuse bits to enable.
459 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
460 Bit 7: Disable PSP postcodes on Renoir and newer chips only
461 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100462 Bit 15: PSP debug output destination:
463 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100464 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
465
466 See #55758 (NDA) for additional bit definitions.
467
468config PSP_VERSTAGE_FILE
469 string "Specify the PSP_verstage file path"
470 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
471 default "\$(obj)/psp_verstage.bin"
472 help
473 Add psp_verstage file to the build & PSP Directory Table
474
475config PSP_VERSTAGE_SIGNING_TOKEN
476 string "Specify the PSP_verstage Signature Token file path"
477 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
478 default ""
479 help
480 Add psp_verstage signature token to the build & PSP Directory Table
481
482endmenu
483
484config VBOOT
485 select VBOOT_VBNV_CMOS
486 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
487
488config VBOOT_STARTS_BEFORE_BOOTBLOCK
489 def_bool n
490 depends on VBOOT
491 select ARCH_VERSTAGE_ARMV7
492 help
493 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600494 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100495
496config VBOOT_HASH_BLOCK_SIZE
497 hex
498 default 0x9000
499 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
500 help
501 Because the bulk of the time in psp_verstage to hash the RO cbfs is
502 spent in the overhead of doing svc calls, increasing the hash block
503 size significantly cuts the verstage hashing time as seen below.
504
505 4k takes 180ms
506 16k takes 44ms
507 32k takes 33.7ms
508 36k takes 32.5ms
509 There's actually still room for an even bigger stack, but we've
510 reached a point of diminishing returns.
511
512config CMOS_RECOVERY_BYTE
513 hex
514 default 0x51
515 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
516 help
517 If the workbuf is not passed from the PSP to coreboot, set the
518 recovery flag and reboot. The PSP will read this byte, mark the
519 recovery request in VBNV, and reset the system into recovery mode.
520
521 This is the byte before the default first byte used by VBNV
522 (0x26 + 0x0E - 1)
523
Matt DeVillierf9fea862022-10-04 16:41:28 -0500524if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100525
526config RWA_REGION_ONLY
527 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700528 default "apu/amdfw_a apu/amdfw_a_body"
Felix Held3c44c622022-01-10 20:57:29 +0100529 help
530 Add a space-delimited list of filenames that should only be in the
531 RW-A section.
532
Matt DeVillierf9fea862022-10-04 16:41:28 -0500533endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
534
535if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
536
Felix Held3c44c622022-01-10 20:57:29 +0100537config RWB_REGION_ONLY
538 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700539 default "apu/amdfw_b apu/amdfw_b_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-B section.
543
544endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
545
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530546endif # SOC_AMD_REMBRANDT_BASE