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