blob: d31b29dd434607a534e1563640f156984e5364ff [file] [log] [blame]
Felix Held3c44c622022-01-10 20:57:29 +01001# SPDX-License-Identifier: GPL-2.0-only
2
3# TODO: Check if this is still correct
4
Ritul Gurud3dae3d2022-04-04 13:33:01 +05305config SOC_AMD_REMBRANDT_BASE
6 bool
7
Jon Murphy4f732422022-08-05 15:43:44 -06008config SOC_AMD_MENDOCINO
Felix Held3c44c622022-01-10 20:57:29 +01009 bool
Ritul Gurud3dae3d2022-04-04 13:33:01 +053010 select SOC_AMD_REMBRANDT_BASE
Felix Held3c44c622022-01-10 20:57:29 +010011 help
Jon Murphy4f732422022-08-05 15:43:44 -060012 AMD Mendocino support
Felix Held3c44c622022-01-10 20:57:29 +010013
Ritul Gurud3dae3d2022-04-04 13:33:01 +053014config SOC_AMD_REMBRANDT
15 bool
16 select SOC_AMD_REMBRANDT_BASE
17 help
18 AMD Rembrandt support
19
20
21if SOC_AMD_REMBRANDT_BASE
Felix Held3c44c622022-01-10 20:57:29 +010022
23config SOC_SPECIFIC_OPTIONS
24 def_bool y
25 select ACPI_SOC_NVS
26 select ARCH_BOOTBLOCK_X86_32
27 select ARCH_VERSTAGE_X86_32 if !VBOOT_STARTS_BEFORE_BOOTBLOCK
28 select ARCH_ROMSTAGE_X86_32
29 select ARCH_RAMSTAGE_X86_32
30 select ARCH_X86
31 select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
Felix Held3c44c622022-01-10 20:57:29 +010032 select DRIVERS_USB_ACPI
Felix Held3c44c622022-01-10 20:57:29 +010033 select DRIVERS_USB_PCI_XHCI
34 select FSP_COMPRESS_FSP_M_LZMA if !ASYNC_FILE_LOADING
35 select FSP_COMPRESS_FSP_M_LZ4 if ASYNC_FILE_LOADING
36 select FSP_COMPRESS_FSP_S_LZ4
37 select GENERIC_GPIO_LIB
38 select HAVE_ACPI_TABLES
39 select HAVE_CF9_RESET
40 select HAVE_EM100_SUPPORT
41 select HAVE_FSP_GOP
42 select HAVE_SMI_HANDLER
43 select IDT_IN_EVERY_STAGE
44 select PARALLEL_MP_AP_WORK
45 select PLATFORM_USES_FSP2_0
46 select PROVIDES_ROM_SHARING
Karthikeyan Ramasubramanian8ebb04c2022-07-14 17:29:06 -060047 select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK
Karthikeyan Ramasubramanianb2af2e32022-08-04 14:16:38 -060048 select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +010049 select RESET_VECTOR_IN_RAM
50 select RTC
51 select SOC_AMD_COMMON
Fred Reitberger81d3cde2022-02-10 09:31:26 -050052 select SOC_AMD_COMMON_BLOCK_ACP_GEN2
Felix Held3c44c622022-01-10 20:57:29 +010053 select SOC_AMD_COMMON_BLOCK_ACPI # TODO: Check if this is still correct
Felix Held70f32bb2022-02-04 16:23:47 +010054 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Tim Van Patten92443582022-08-23 16:06:33 -060055 select SOC_AMD_COMMON_BLOCK_ACPI_ALIB
Felix Held665476d2022-08-03 22:18:18 +020056 select SOC_AMD_COMMON_BLOCK_ACPI_CPPC
Felix Heldaf803a62022-06-22 18:22:16 +020057 select SOC_AMD_COMMON_BLOCK_ACPI_GPIO
Felix Held3c44c622022-01-10 20:57:29 +010058 select SOC_AMD_COMMON_BLOCK_ACPI_IVRS # TODO: Check if this is still correct
Felix Held716ccb72022-02-03 18:27:29 +010059 select SOC_AMD_COMMON_BLOCK_AOAC
Fred Reitberger8b570bd2022-09-06 12:19:38 -040060 select SOC_AMD_COMMON_BLOCK_APOB
61 select SOC_AMD_COMMON_BLOCK_APOB_HASH
Felix Held3c44c622022-01-10 20:57:29 +010062 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS # TODO: Check if this is still correct
Felix Held75739d32022-02-03 18:44:27 +010063 select SOC_AMD_COMMON_BLOCK_DATA_FABRIC
Felix Held65d73cc2022-10-13 20:58:47 +020064 select SOC_AMD_COMMON_BLOCK_EMMC
Felix Heldc64f37d2022-02-12 17:30:59 +010065 select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES
Felix Held3c44c622022-01-10 20:57:29 +010066 select SOC_AMD_COMMON_BLOCK_GRAPHICS # TODO: Check if this is still correct
Felix Heldc64f37d2022-02-12 17:30:59 +010067 select SOC_AMD_COMMON_BLOCK_HAS_ESPI
Raul E Rangel5a5de332022-04-25 13:33:50 -060068 select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE
Felix Held8e4742d2022-02-03 15:15:37 +010069 select SOC_AMD_COMMON_BLOCK_I2C
Felix Held3bdbdb72022-02-02 22:55:34 +010070 select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL
Felix Held0eef54b2022-02-04 19:28:51 +010071 select SOC_AMD_COMMON_BLOCK_IOMMU
Felix Held3c44c622022-01-10 20:57:29 +010072 select SOC_AMD_COMMON_BLOCK_LPC # TODO: Check if this is still correct
Felix Held901481f2022-06-22 15:38:44 +020073 select SOC_AMD_COMMON_BLOCK_MCAX
Felix Held3c44c622022-01-10 20:57:29 +010074 select SOC_AMD_COMMON_BLOCK_NONCAR # TODO: Check if this is still correct
75 select SOC_AMD_COMMON_BLOCK_PCI # TODO: Check if this is still correct
Felix Heldceefc742022-02-07 15:27:27 +010076 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Felix Held3c44c622022-01-10 20:57:29 +010077 select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER # TODO: Check if this is still correct
78 select SOC_AMD_COMMON_BLOCK_PM # TODO: Check if this is still correct
79 select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE # TODO: Check if this is still correct
80 select SOC_AMD_COMMON_BLOCK_PSP_GEN2 # TODO: Check if this is still correct
81 select SOC_AMD_COMMON_BLOCK_SMBUS # TODO: Check if this is still correct
82 select SOC_AMD_COMMON_BLOCK_SMI # TODO: Check if this is still correct
83 select SOC_AMD_COMMON_BLOCK_SMM # TODO: Check if this is still correct
Felix Held6f9e4ab2022-02-03 18:34:23 +010084 select SOC_AMD_COMMON_BLOCK_SMU
Felix Held3c44c622022-01-10 20:57:29 +010085 select SOC_AMD_COMMON_BLOCK_SPI # TODO: Check if this is still correct
86 select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H # TODO: Check if this is still correct
Felix Heldb0789ed2022-02-04 22:36:32 +010087 select SOC_AMD_COMMON_BLOCK_UART
Felix Heldd9bb9fc2022-06-22 15:35:35 +020088 select SOC_AMD_COMMON_BLOCK_UCODE
Felix Held665476d2022-08-03 22:18:18 +020089 select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB
Felix Held3c44c622022-01-10 20:57:29 +010090 select SOC_AMD_COMMON_FSP_DMI_TABLES # TODO: Check if this is still correct
91 select SOC_AMD_COMMON_FSP_PCI # TODO: Check if this is still correct
92 select SSE2
93 select UDK_2017_BINDING
Subrata Banik34f26b22022-02-10 12:38:02 +053094 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
95 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
96 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Felix Held3c44c622022-01-10 20:57:29 +010097 select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK
98 select X86_AMD_FIXED_MTRRS
99 select X86_INIT_NEED_1_SIPI
100
101config ARCH_ALL_STAGES_X86
102 default n
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
157 default 0x1600
158 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
169 default 0x2000 if VBOOT_STARTS_BEFORE_BOOTBLOCK
170
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
325menu "PSP Configuration Options"
326
327config AMD_FWM_POSITION_INDEX
328 int "Firmware Directory Table location (0 to 5)"
329 range 0 5
330 default 0 if BOARD_ROMSIZE_KB_512
331 default 1 if BOARD_ROMSIZE_KB_1024
332 default 2 if BOARD_ROMSIZE_KB_2048
333 default 3 if BOARD_ROMSIZE_KB_4096
334 default 4 if BOARD_ROMSIZE_KB_8192
335 default 5 if BOARD_ROMSIZE_KB_16384
336 help
337 Typically this is calculated by the ROM size, but there may
338 be situations where you want to put the firmware directory
339 table in a different location.
340 0: 512 KB - 0xFFFA0000
341 1: 1 MB - 0xFFF20000
342 2: 2 MB - 0xFFE20000
343 3: 4 MB - 0xFFC20000
344 4: 8 MB - 0xFF820000
345 5: 16 MB - 0xFF020000
346
347comment "AMD Firmware Directory Table set to location for 512KB ROM"
348 depends on AMD_FWM_POSITION_INDEX = 0
349comment "AMD Firmware Directory Table set to location for 1MB ROM"
350 depends on AMD_FWM_POSITION_INDEX = 1
351comment "AMD Firmware Directory Table set to location for 2MB ROM"
352 depends on AMD_FWM_POSITION_INDEX = 2
353comment "AMD Firmware Directory Table set to location for 4MB ROM"
354 depends on AMD_FWM_POSITION_INDEX = 3
355comment "AMD Firmware Directory Table set to location for 8MB ROM"
356 depends on AMD_FWM_POSITION_INDEX = 4
357comment "AMD Firmware Directory Table set to location for 16MB ROM"
358 depends on AMD_FWM_POSITION_INDEX = 5
359
360config AMDFW_CONFIG_FILE
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600361 string "AMD PSP Firmware config file"
Jon Murphy4f732422022-08-05 15:43:44 -0600362 default "src/soc/amd/mendocino/fw.cfg"
Karthikeyan Ramasubramanian9cb0a052022-03-21 17:49:11 -0600363 help
364 Specify the path/location of AMD PSP Firmware config file.
Felix Held3c44c622022-01-10 20:57:29 +0100365
366config PSP_DISABLE_POSTCODES
367 bool "Disable PSP post codes"
368 help
369 Disables the output of port80 post codes from PSP.
370
371config PSP_POSTCODES_ON_ESPI
372 bool "Use eSPI bus for PSP post codes"
373 default y
374 depends on !PSP_DISABLE_POSTCODES
375 help
376 Select to send PSP port80 post codes on eSPI bus.
377 If not selected, PSP port80 codes will be sent on LPC bus.
378
379config PSP_LOAD_MP2_FW
380 bool
381 default n
382 help
383 Include the MP2 firmwares and configuration into the PSP build.
384
385 If unsure, answer 'n'
386
387config PSP_UNLOCK_SECURE_DEBUG
388 bool "Unlock secure debug"
389 default y
390 help
391 Select this item to enable secure debug options in PSP.
392
393config HAVE_PSP_WHITELIST_FILE
394 bool "Include a debug whitelist file in PSP build"
395 default n
396 help
397 Support secured unlock prior to reset using a whitelisted
398 serial number. This feature requires a signed whitelist image
399 and bootloader from AMD.
400
401 If unsure, answer 'n'
402
403config PSP_WHITELIST_FILE
404 string "Debug whitelist file path"
405 depends on HAVE_PSP_WHITELIST_FILE
Marshall Dawson84fef892022-08-05 12:13:49 -0600406 default "site-local/3rdparty/amd_blobs/mendocino/PSP/wtl-mdn.sbin"
Felix Held3c44c622022-01-10 20:57:29 +0100407
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600408config HAVE_SPL_FILE
409 bool "Have a mainboard specific SPL table file"
410 default n
411 help
412 Have a mainboard specific Security Patch Level (SPL) table file. SPL file
413 is required to support PSP FW anti-rollback and needs to be created by AMD.
414 The default SPL file applies to all boards that use the concerned SoC and
415 is dropped under 3rdparty/blobs. The mainboard specific SPL file override
416 can be applied through SPL_TABLE_FILE config.
417
418 If unsure, answer 'n'
419
420config SPL_TABLE_FILE
421 string "SPL table file"
422 depends on HAVE_SPL_FILE
Marshall Dawson26d7d732022-08-05 12:44:03 -0600423 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
Karthikeyan Ramasubramanian8ee94292022-04-01 17:21:14 -0600424
Felix Held40a38cc2022-09-12 16:18:45 +0200425config HAVE_SPL_RW_AB_FILE
426 bool "Have a separate mainboard-specific SPL file in RW A/B partitions"
427 default n
428 depends on HAVE_SPL_FILE
429 depends on VBOOT_SLOTS_RW_AB
430 help
431 Have separate mainboard-specific Security Patch Level (SPL) table
432 file for the RW A/B FMAP partitions. See the help text of
433 HAVE_SPL_FILE for a more detailed description.
434
435config SPL_RW_AB_TABLE_FILE
436 string "Separate SPL table file for RW A/B partitions"
437 depends on HAVE_SPL_RW_AB_FILE
438 default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MDN.sbin"
439
Felix Held3c44c622022-01-10 20:57:29 +0100440config PSP_SOFTFUSE_BITS
441 string "PSP Soft Fuse bits to enable"
Felix Helded694502022-06-22 15:09:23 +0200442 default "34 28 6"
Felix Held3c44c622022-01-10 20:57:29 +0100443 help
444 Space separated list of Soft Fuse bits to enable.
445 Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG)
446 Bit 7: Disable PSP postcodes on Renoir and newer chips only
447 (Set by PSP_DISABLE_PORT80)
Felix Heldc3579002022-03-23 22:15:56 +0100448 Bit 15: PSP debug output destination:
449 0=SoC MMIO UART, 1=IO port 0x3F8
Felix Held3c44c622022-01-10 20:57:29 +0100450 Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW)
451
452 See #55758 (NDA) for additional bit definitions.
453
454config PSP_VERSTAGE_FILE
455 string "Specify the PSP_verstage file path"
456 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
457 default "\$(obj)/psp_verstage.bin"
458 help
459 Add psp_verstage file to the build & PSP Directory Table
460
461config PSP_VERSTAGE_SIGNING_TOKEN
462 string "Specify the PSP_verstage Signature Token file path"
463 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
464 default ""
465 help
466 Add psp_verstage signature token to the build & PSP Directory Table
467
468endmenu
469
470config VBOOT
471 select VBOOT_VBNV_CMOS
472 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
473
474config VBOOT_STARTS_BEFORE_BOOTBLOCK
475 def_bool n
476 depends on VBOOT
477 select ARCH_VERSTAGE_ARMV7
478 help
479 Runs verstage on the PSP. Only available on
Jon Murphyc4e90452022-06-28 10:36:23 -0600480 certain ChromeOS branded parts from AMD.
Felix Held3c44c622022-01-10 20:57:29 +0100481
482config VBOOT_HASH_BLOCK_SIZE
483 hex
484 default 0x9000
485 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
486 help
487 Because the bulk of the time in psp_verstage to hash the RO cbfs is
488 spent in the overhead of doing svc calls, increasing the hash block
489 size significantly cuts the verstage hashing time as seen below.
490
491 4k takes 180ms
492 16k takes 44ms
493 32k takes 33.7ms
494 36k takes 32.5ms
495 There's actually still room for an even bigger stack, but we've
496 reached a point of diminishing returns.
497
498config CMOS_RECOVERY_BYTE
499 hex
500 default 0x51
501 depends on VBOOT_STARTS_BEFORE_BOOTBLOCK
502 help
503 If the workbuf is not passed from the PSP to coreboot, set the
504 recovery flag and reboot. The PSP will read this byte, mark the
505 recovery request in VBNV, and reset the system into recovery mode.
506
507 This is the byte before the default first byte used by VBNV
508 (0x26 + 0x0E - 1)
509
Matt DeVillierf9fea862022-10-04 16:41:28 -0500510if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
Felix Held3c44c622022-01-10 20:57:29 +0100511
512config RWA_REGION_ONLY
513 string
514 default "apu/amdfw_a"
515 help
516 Add a space-delimited list of filenames that should only be in the
517 RW-A section.
518
Matt DeVillierf9fea862022-10-04 16:41:28 -0500519endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK
520
521if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
522
Felix Held3c44c622022-01-10 20:57:29 +0100523config RWB_REGION_ONLY
524 string
525 default "apu/amdfw_b"
526 help
527 Add a space-delimited list of filenames that should only be in the
528 RW-B section.
529
530endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK
531
Ritul Gurud3dae3d2022-04-04 13:33:01 +0530532endif # SOC_AMD_REMBRANDT_BASE