blob: ba204818fa63bf1a55f266be80422969bb6ff98f [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
20 select HAVE_SMI_HANDLER
21 select IDT_IN_EVERY_STAGE
22 select PARALLEL_MP_AP_WORK
23 select PLATFORM_USES_FSP2_0
24 select PROVIDES_ROM_SHARING
Karthikeyan Ramasubramanianef129762022-12-22 13:07:28 -070025 select PSP_INCLUDES_HSP
Karthikeyan Ramasubramanian8ebb04c2022-07-14 17:29:06 -060026 select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK
Karthikeyan Ramasubramanianb2af2e32022-08-04 14:16:38 -060027 select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +010028 select RESET_VECTOR_IN_RAM
29 select RTC
30 select SOC_AMD_COMMON
Fred Reitberger81d3cde2022-02-10 09:31:26 -050031 select SOC_AMD_COMMON_BLOCK_ACP_GEN2
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050032 select SOC_AMD_COMMON_BLOCK_ACPI
Felix Held70f32bb2022-02-04 16:23:47 +010033 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Held9ab8a782023-07-14 18:44:13 +020034 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_PM_IO_ACCESS
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 Helde23c4252023-03-07 00:03:46 +010037 select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE
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 Helda63f8592023-03-24 16:30:55 +010044 select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H
Matt DeVillier37cae5c2023-07-28 14:51:15 -050045 select SOC_AMD_COMMON_BLOCK_CPU_SYNC_PSP_ADDR_MSR
Felix Held75739d32022-02-03 18:44:27 +010046 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
Felix Helda4f4b0a2023-05-31 16:21:35 +020047 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN
Felix Heldd6326972023-09-15 22:40:02 +020048 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_NP_REGION
Felix Heldc64f37d2022-02-12 17:30:59 +010049 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050050 select SOC_AMD_COMMON_BLOCK_GRAPHICS
Felix Heldc64f37d2022-02-12 17:30:59 +010051 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Raul E Rangel5a5de332022-04-25 13:33:50 -060052 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Felix Held8e4742d2022-02-03 15:15:37 +010053 select SOC_AMD_COMMON_BLOCK_I2C
Felix Held3bdbdb72022-02-02 22:55:34 +010054 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
Felix Held0eef54b2022-02-04 19:28:51 +010055 select SOC_AMD_COMMON_BLOCK_IOMMU
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050056 select SOC_AMD_COMMON_BLOCK_LPC
Karthikeyan Ramasubramanian5d5f6822022-12-05 17:08:08 -070057 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held901481f2022-06-22 15:38:44 +020058 select SOC_AMD_COMMON_BLOCK_MCAX
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050059 select SOC_AMD_COMMON_BLOCK_NONCAR
60 select SOC_AMD_COMMON_BLOCK_PCI
Felix Heldceefc742022-02-07 15:27:27 +010061 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050062 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER
Robert Ziebab3b27f72022-10-03 14:50:55 -060063 select SOC_AMD_COMMON_BLOCK_PCIE_CLK_REQ
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050064 select SOC_AMD_COMMON_BLOCK_PM
65 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE
66 select SOC_AMD_COMMON_BLOCK_PSP_GEN2
Martin Roth440c8232023-02-01 14:27:18 -070067 select SOC_AMD_COMMON_BLOCK_RESET
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050068 select SOC_AMD_COMMON_BLOCK_SMBUS
69 select SOC_AMD_COMMON_BLOCK_SMI
70 select SOC_AMD_COMMON_BLOCK_SMM
Felix Held6f9e4ab2022-02-03 18:34:23 +010071 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held7a2c1c72023-01-12 23:11:22 +010072 select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050073 select SOC_AMD_COMMON_BLOCK_SPI
Martin Roth300338f2022-10-14 14:55:25 -060074 select SOC_AMD_COMMON_BLOCK_STB
Felix Held23a398e2023-03-23 23:44:03 +010075 select SOC_AMD_COMMON_BLOCK_SVI3
Felix Held60df7ca2023-03-24 20:33:15 +010076 select SOC_AMD_COMMON_BLOCK_TSC
Felix Heldb0789ed2022-02-04 22:36:32 +010077 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020078 select SOC_AMD_COMMON_BLOCK_UCODE
Robert Zieba3b28aef2022-09-15 15:25:55 -060079 select SOC_AMD_COMMON_BLOCK_XHCI
Felix Held665476d2022-08-03 22:18:18 +020080 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Fred Reitbergerb77f9a32023-01-06 10:46:23 -050081 select SOC_AMD_COMMON_FSP_DMI_TABLES
82 select SOC_AMD_COMMON_FSP_PCI
Fred Reitberger41c7e312023-01-11 15:11:08 -050083 select SOC_AMD_COMMON_FSP_PRELOAD_FSPS
Felix Held3c44c622022-01-10 20:57:29 +010084 select SSE2
85 select UDK_2017_BINDING
Martin Rothbcb610a2022-10-29 13:31:54 -060086 select USE_DDR5
Subrata Banik34f26b22022-02-10 12:38:02 +053087 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
88 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
89 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010090 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
Matt DeVillier65a44452023-02-16 09:57:40 -060091 select VBOOT_MUST_REQUEST_DISPLAY if VBOOT
Karthikeyan Ramasubramanian06d5b8b2022-10-27 22:50:07 -060092 select VBOOT_X86_SHA256_ACCELERATION if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +010093 select X86_AMD_FIXED_MTRRS
94 select X86_INIT_NEED_1_SIPI
95
Elyes Haouas3cd06cc2023-01-05 07:42:24 +010096config SOC_AMD_MENDOCINO
97 bool
98 select SOC_AMD_REMBRANDT_BASE
99 help
100 AMD Mendocino support
101
102config SOC_AMD_REMBRANDT
103 bool
104 select SOC_AMD_REMBRANDT_BASE
105 help
106 AMD Rembrandt support
107
108
109if SOC_AMD_REMBRANDT_BASE
110
Felix Held3c44c622022-01-10 20:57:29 +0100111config CHIPSET_DEVICETREE
112 string
Jon Murphy4f732422022-08-05 15:43:44 -0600113 default "soc/amd/mendocino/chipset_mendocino.cb" if SOC_AMD_MENDOCINO
114 default "soc/amd/mendocino/chipset_rembrandt.cb"
Felix Held3c44c622022-01-10 20:57:29 +0100115
Matt DeVillier6dadf7f2023-09-01 09:29:14 -0500116config FSP_M_FILE
117 string "FSP-M (memory init) binary path and filename"
118 depends on ADD_FSP_BINARIES
119 default "3rdparty/amd_blobs/mendocino/MENDOCINO_M.fd" if SOC_AMD_MENDOCINO
120 help
121 The path and filename of the FSP-M binary for this platform.
122
123config FSP_S_FILE
124 string "FSP-S (silicon init) binary path and filename"
125 depends on ADD_FSP_BINARIES
126 default "3rdparty/amd_blobs/mendocino/MENDOCINO_S.fd" if SOC_AMD_MENDOCINO
127 help
128 The path and filename of the FSP-S binary for this platform.
129
Felix Held3c44c622022-01-10 20:57:29 +0100130config EARLY_RESERVED_DRAM_BASE
131 hex
132 default 0x2000000
133 help
134 This variable defines the base address of the DRAM which is reserved
135 for usage by coreboot in early stages (i.e. before ramstage is up).
136 This memory gets reserved in BIOS tables to ensure that the OS does
137 not use it, thus preventing corruption of OS memory in case of S3
138 resume.
139
140config EARLYRAM_BSP_STACK_SIZE
141 hex
142 default 0x1000
143
144config PSP_APOB_DRAM_ADDRESS
145 hex
146 default 0x2001000
147 help
148 Location in DRAM where the PSP will copy the AGESA PSP Output
149 Block.
150
Fred Reitberger475e2822022-07-14 11:06:30 -0400151config PSP_APOB_DRAM_SIZE
152 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400153 default 0x1E000
Fred Reitberger475e2822022-07-14 11:06:30 -0400154
Felix Held3c44c622022-01-10 20:57:29 +0100155config PSP_SHAREDMEM_BASE
156 hex
Fred Reitbergerfdb07582022-07-15 08:05:56 -0400157 default 0x201F000 if VBOOT
Felix Held3c44c622022-01-10 20:57:29 +0100158 default 0x0
159 help
160 This variable defines the base address in DRAM memory where PSP copies
161 the vboot workbuf. This is used in the linker script to have a static
162 allocation for the buffer as well as for adding relevant entries in
163 the BIOS directory table for the PSP.
164
165config PSP_SHAREDMEM_SIZE
166 hex
167 default 0x8000 if VBOOT
168 default 0x0
169 help
170 Sets the maximum size for the PSP to pass the vboot workbuf and
171 any logs or timestamps back to coreboot. This will be copied
172 into main memory by the PSP and will be available when the x86 is
173 started. The workbuf's base depends on the address of the reset
174 vector.
175
Felix Held55614682022-01-25 04:31:15 +0100176config PRE_X86_CBMEM_CONSOLE_SIZE
177 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700178 default 0x1000
Felix Held55614682022-01-25 04:31:15 +0100179 help
180 Size of the CBMEM console used in PSP verstage.
181
Felix Held3c44c622022-01-10 20:57:29 +0100182config PRERAM_CBMEM_CONSOLE_SIZE
183 hex
184 default 0x1600
185 help
186 Increase this value if preram cbmem console is getting truncated
187
188config CBFS_MCACHE_SIZE
189 hex
Karthikeyan Ramasubramanian4763a5a42022-11-17 23:07:28 -0700190 default 0x3800 if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100191
192config C_ENV_BOOTBLOCK_SIZE
193 hex
194 default 0x10000
195 help
196 Sets the size of the bootblock stage that should be loaded in DRAM.
197 This variable controls the DRAM allocation size in linker script
198 for bootblock stage.
199
200config ROMSTAGE_ADDR
201 hex
202 default 0x2040000
203 help
204 Sets the address in DRAM where romstage should be loaded.
205
206config ROMSTAGE_SIZE
207 hex
208 default 0x80000
209 help
210 Sets the size of DRAM allocation for romstage in linker script.
211
212config FSP_M_ADDR
213 hex
214 default 0x20C0000
215 help
216 Sets the address in DRAM where FSP-M should be loaded. cbfstool
217 performs relocation of FSP-M to this address.
218
219config FSP_M_SIZE
220 hex
221 default 0xC0000
222 help
223 Sets the size of DRAM allocation for FSP-M in linker script.
224
225config FSP_TEMP_RAM_SIZE
226 hex
227 default 0x40000
228 help
229 The amount of coreboot-allocated heap and stack usage by the FSP.
230
231config VERSTAGE_ADDR
232 hex
233 depends on VBOOT_SEPARATE_VERSTAGE
234 default 0x2180000
235 help
236 Sets the address in DRAM where verstage should be loaded if running
237 as a separate stage on x86.
238
239config VERSTAGE_SIZE
240 hex
241 depends on VBOOT_SEPARATE_VERSTAGE
242 default 0x80000
243 help
244 Sets the size of DRAM allocation for verstage in linker script if
245 running as a separate stage on x86.
246
247config ASYNC_FILE_LOADING
248 bool "Loads files from SPI asynchronously"
249 select COOP_MULTITASKING
250 select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
251 select CBFS_PRELOAD
252 help
253 When enabled, the platform will use the LPC SPI DMA controller to
254 asynchronously load contents from the SPI ROM. This will improve
255 boot time because the CPUs can be performing useful work while the
256 SPI contents are being preloaded.
257
258config CBFS_CACHE_SIZE
259 hex
Karthikeyan Ramasubramaniane4fd7dc2023-04-10 17:46:41 -0600260 default 0x40000 if CBFS_PRELOAD || SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA
Felix Held3c44c622022-01-10 20:57:29 +0100261
Felix Held3c44c622022-01-10 20:57:29 +0100262config RO_REGION_ONLY
263 string
264 depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A
265 default "apu/amdfw"
266
267config ECAM_MMCONF_BASE_ADDRESS
268 default 0xF8000000
269
270config ECAM_MMCONF_BUS_NUMBER
271 default 64
272
273config MAX_CPUS
274 int
Jon Murphy4f732422022-08-05 15:43:44 -0600275 default 8 if SOC_AMD_MENDOCINO
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530276 default 16
Felix Held3c44c622022-01-10 20:57:29 +0100277 help
278 Maximum number of threads the platform can have.
279
Felix Helde68ddc72023-02-14 23:02:09 +0100280config VGA_BIOS_ID
281 string
282 default "1002,1506" if SOC_AMD_MENDOCINO
283 help
284 The default VGA BIOS PCI vendor/device ID of the GPU and VBIOS.
285
286config VGA_BIOS_FILE
287 string
288 default "3rdparty/amd_blobs/mendocino/MdnGenericVbios.bin" if SOC_AMD_MENDOCINO
289
Felix Held3c44c622022-01-10 20:57:29 +0100290config CONSOLE_UART_BASE_ADDRESS
291 depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART
292 hex
293 default 0xfedc9000 if UART_FOR_CONSOLE = 0
294 default 0xfedca000 if UART_FOR_CONSOLE = 1
Felix Heldb1fe9de2022-01-12 23:18:54 +0100295 default 0xfedce000 if UART_FOR_CONSOLE = 2
296 default 0xfedcf000 if UART_FOR_CONSOLE = 3
297 default 0xfedd1000 if UART_FOR_CONSOLE = 4
Felix Held3c44c622022-01-10 20:57:29 +0100298
299config SMM_TSEG_SIZE
300 hex
301 default 0x800000 if HAVE_SMI_HANDLER
302 default 0x0
303
304config SMM_RESERVED_SIZE
305 hex
306 default 0x180000
307
308config SMM_MODULE_STACK_SIZE
309 hex
310 default 0x800
311
312config ACPI_BERT
313 bool "Build ACPI BERT Table"
314 default y
315 depends on HAVE_ACPI_TABLES
316 help
317 Report Machine Check errors identified in POST to the OS in an
318 ACPI Boot Error Record Table.
319
320config ACPI_BERT_SIZE
321 hex
322 default 0x4000 if ACPI_BERT
323 default 0x0
324 help
325 Specify the amount of DRAM reserved for gathering the data used to
326 generate the ACPI table.
327
328config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
329 int
330 default 150
331
332config DISABLE_SPI_FLASH_ROM_SHARING
333 def_bool n
334 help
335 Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin
336 which indicates a board level ROM transaction request. This
337 removes arbitration with board and assumes the chipset controls
338 the SPI flash bus entirely.
339
340config DISABLE_KEYBOARD_RESET_PIN
341 bool
342 help
Martin Roth9ceac742023-02-08 14:26:02 -0700343 Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L.
Felix Held3c44c622022-01-10 20:57:29 +0100344
Chris.Wang9ac09842022-12-13 14:31:38 +0800345config FEATURE_DYNAMIC_DPTC
346 bool
347 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
348 help
349 Selected by mainboards that implement support for ALIB
350 to enable dynamic DPTC.
351
352config FEATURE_TABLET_MODE_DPTC
353 bool
354 depends on SOC_AMD_COMMON_BLOCK_ACPI_DPTC
355 help
356 Selected by mainboards that implement support for ALIB to
357 switch default and tablet mode.
358
Felix Held3c44c622022-01-10 20:57:29 +0100359menu "PSP Configuration Options"
360
Felix Held3c44c622022-01-10 20:57:29 +0100361config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600362 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600363 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600364 help
365 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100366
367config PSP_DISABLE_POSTCODES
368 bool "Disable PSP post codes"
369 help
370 Disables the output of port80 post codes from PSP.
371
372config PSP_POSTCODES_ON_ESPI
373 bool "Use eSPI bus for PSP post codes"
374 default y
375 depends on !PSP_DISABLE_POSTCODES
376 help
377 Select to send PSP port80 post codes on eSPI bus.
378 If not selected, PSP port80 codes will be sent on LPC bus.
379
380config PSP_LOAD_MP2_FW
381 bool
382 default n
383 help
384 Include the MP2 firmwares and configuration into the PSP build.
385
386 If unsure, answer 'n'
387
388config PSP_UNLOCK_SECURE_DEBUG
389 bool "Unlock secure debug"
390 default y
391 help
392 Select this item to enable secure debug options in PSP.
393
394config HAVE_PSP_WHITELIST_FILE
395 bool "Include a debug whitelist file in PSP build"
396 default n
397 help
398 Support secured unlock prior to reset using a whitelisted
399 serial number. This feature requires a signed whitelist image
400 and bootloader from AMD.
401
402 If unsure, answer 'n'
403
404config PSP_WHITELIST_FILE
405 string "Debug whitelist file path"
406 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600407 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100408
Felix Held4ab1db82023-09-28 19:54:55 +0200409config PERFORM_SPL_FUSING
410 bool "Send SPL fuse command to PSP"
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600411 default n
412 help
Felix Held4ab1db82023-09-28 19:54:55 +0200413 Send the Security Patch Level (SPL) fusing command to the PSP in
414 order to update the minimum SPL version to be written to the SoC's
415 fuse bits. This will prevent using any embedded firmware components
416 with lower SPL version.
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600417
418 If unsure, answer 'n'
419
420config SPL_TABLE_FILE
Felix Held4ab1db82023-09-28 19:54:55 +0200421 string "SPL table file override"
422 help
423 Provide a mainboard-specific Security Patch Level (SPL) table file
424 override. The SPL file is required to support PSP FW anti-rollback
425 and needs to be created by AMD. The default SPL file specified in the
426 SoC's fw.cfg is in the corresponding folder of the amd_blobs submodule
427 and applies to all boards that use the SoC without verstage on PSP.
428 In the verstage on PSP case, a different SPL file is specific as an
429 override via this Kconfig option.
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600430
Felix Held40a38cc2022-09-12 16:18:45 +0200431config HAVE_SPL_RW_AB_FILE
432 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
433 default n
Felix Held40a38cc2022-09-12 16:18:45 +0200434 depends on VBOOT_SLOTS_RW_AB
435 help
436 Have separate mainboard-specific Security Patch Level (SPL) table
Felix Held4ab1db82023-09-28 19:54:55 +0200437 file for the RW A/B FMAP partitions.
Felix Held40a38cc2022-09-12 16:18:45 +0200438
439config SPL_RW_AB_TABLE_FILE
Felix Held4ab1db82023-09-28 19:54:55 +0200440 string "Separate SPL table file override for RW A/B partitions"
Felix Held40a38cc2022-09-12 16:18:45 +0200441
Felix Held3c44c622022-01-10 20:57:29 +0100442config PSP_SOFTFUSE_BITS
443 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200444 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100445 help
446 Space separated list of Soft Fuse bits to enable.
447 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
448 Bit 7: Disable PSP postcodes on Renoir and newer chips only
449 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100450 Bit 15: PSP debug output destination:
451 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100452 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
453
454 See #55758 (NDA) for additional bit definitions.
455
456config PSP_VERSTAGE_FILE
457 string "Specify the PSP_verstage file path"
458 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
459 default "\$(obj)/psp_verstage.bin"
460 help
461 Add psp_verstage file to the build & PSP Directory Table
462
463config PSP_VERSTAGE_SIGNING_TOKEN
464 string "Specify the PSP_verstage Signature Token file path"
465 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
466 default ""
467 help
468 Add psp_verstage signature token to the build & PSP Directory Table
469
470endmenu
471
472config VBOOT
473 select VBOOT_VBNV_CMOS
474 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
475
476config VBOOT_STARTS_BEFORE_BOOTBLOCK
477 def_bool n
478 depends on VBOOT
479 select ARCH_VERSTAGE_ARMV7
480 help
481 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600482 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100483
484config VBOOT_HASH_BLOCK_SIZE
485 hex
486 default 0x9000
487 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
488 help
489 Because the bulk of the time in psp_verstage to hash the RO cbfs is
490 spent in the overhead of doing svc calls, increasing the hash block
491 size significantly cuts the verstage hashing time as seen below.
492
493 4k takes 180ms
494 16k takes 44ms
495 32k takes 33.7ms
496 36k takes 32.5ms
497 There's actually still room for an even bigger stack, but we've
498 reached a point of diminishing returns.
499
500config CMOS_RECOVERY_BYTE
501 hex
502 default 0x51
503 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
504 help
505 If the workbuf is not passed from the PSP to coreboot, set the
506 recovery flag and reboot. The PSP will read this byte, mark the
507 recovery request in VBNV, and reset the system into recovery mode.
508
509 This is the byte before the default first byte used by VBNV
510 (0x26 + 0x0E - 1)
511
Matt DeVillierf9fea862022-10-04 16:41:28 -0500512if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100513
514config RWA_REGION_ONLY
515 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700516 default "apu/amdfw_a apu/amdfw_a_body"
Felix Held3c44c622022-01-10 20:57:29 +0100517 help
518 Add a space-delimited list of filenames that should only be in the
519 RW-A section.
520
Matt DeVillierf9fea862022-10-04 16:41:28 -0500521endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
522
523if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
524
Felix Held3c44c622022-01-10 20:57:29 +0100525config RWB_REGION_ONLY
526 string
Karthikeyan Ramasubramanian716c8f02022-12-15 14:57:05 -0700527 default "apu/amdfw_b apu/amdfw_b_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-B section.
531
532endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
533
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530534endif # SOC_AMD_REMBRANDT_BASE