Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | # TODO: Evaluate what can be moved to a common directory |
| 4 | # TODO: Update for Glinda |
| 5 | |
| 6 | config SOC_AMD_GLINDA |
| 7 | bool |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 8 | select ACPI_SOC_NVS |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 9 | select ARCH_X86 |
| 10 | select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH |
| 11 | select DRIVERS_USB_ACPI |
| 12 | select DRIVERS_USB_PCI_XHCI |
| 13 | select FSP_COMPRESS_FSP_M_LZMA if !ASYNC_FILE_LOADING |
| 14 | select FSP_COMPRESS_FSP_M_LZ4 if ASYNC_FILE_LOADING |
| 15 | select FSP_COMPRESS_FSP_S_LZ4 |
| 16 | select GENERIC_GPIO_LIB |
| 17 | select HAVE_ACPI_TABLES |
| 18 | select HAVE_CF9_RESET |
| 19 | select HAVE_EM100_SUPPORT |
| 20 | select HAVE_FSP_GOP |
| 21 | select HAVE_SMI_HANDLER |
| 22 | select IDT_IN_EVERY_STAGE |
Martin Roth | bcb610a | 2022-10-29 13:31:54 -0600 | [diff] [blame] | 23 | select NO_DDR4 |
| 24 | select NO_DDR3 |
| 25 | select NO_DDR2 |
| 26 | select NO_LPDDR4 |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 27 | select PARALLEL_MP_AP_WORK |
| 28 | select PLATFORM_USES_FSP2_0 |
| 29 | select PROVIDES_ROM_SHARING |
| 30 | select PSP_SUPPORTS_EFS2_RELATIVE_ADDR if VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 31 | select PSP_VERSTAGE_CCP_DMA if VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 32 | select RESET_VECTOR_IN_RAM |
| 33 | select RTC |
| 34 | select SOC_AMD_COMMON |
| 35 | select SOC_AMD_COMMON_BLOCK_ACP_GEN2 # TODO: Check if this is still correct |
| 36 | select SOC_AMD_COMMON_BLOCK_ACPI # TODO: Check if this is still correct |
| 37 | select SOC_AMD_COMMON_BLOCK_ACPIMMIO # TODO: Check if this is still correct |
| 38 | select SOC_AMD_COMMON_BLOCK_ACPI_ALIB # TODO: Check if this is still correct |
| 39 | select SOC_AMD_COMMON_BLOCK_ACPI_CPPC # TODO: Check if this is still correct |
Felix Held | 21a5ecd | 2023-03-07 01:15:42 +0100 | [diff] [blame] | 40 | select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 41 | select SOC_AMD_COMMON_BLOCK_ACPI_GPIO # TODO: Check if this is still correct |
| 42 | select SOC_AMD_COMMON_BLOCK_ACPI_IVRS # TODO: Check if this is still correct |
| 43 | select SOC_AMD_COMMON_BLOCK_AOAC # TODO: Check if this is still correct |
| 44 | select SOC_AMD_COMMON_BLOCK_APOB # TODO: Check if this is still correct |
| 45 | select SOC_AMD_COMMON_BLOCK_APOB_HASH # TODO: Check if this is still correct |
| 46 | select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS # TODO: Check if this is still correct |
Felix Held | a63f859 | 2023-03-24 16:30:55 +0100 | [diff] [blame] | 47 | select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM1AH |
Fred Reitberger | 2890841 | 2022-11-01 10:49:16 -0400 | [diff] [blame] | 48 | select SOC_AMD_COMMON_BLOCK_DATA_FABRIC |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 49 | select SOC_AMD_COMMON_BLOCK_EMMC # TODO: Check if this is still correct |
| 50 | select SOC_AMD_COMMON_BLOCK_ESPI_EXTENDED_DECODE_RANGES # TODO: Check if this is still correct |
| 51 | select SOC_AMD_COMMON_BLOCK_GRAPHICS # TODO: Check if this is still correct |
| 52 | select SOC_AMD_COMMON_BLOCK_HAS_ESPI # TODO: Check if this is still correct |
| 53 | select SOC_AMD_COMMON_BLOCK_HAS_ESPI_ALERT_ENABLE # TODO: Check if this is still correct |
| 54 | select SOC_AMD_COMMON_BLOCK_I2C # TODO: Check if this is still correct |
| 55 | select SOC_AMD_COMMON_BLOCK_I23C_PAD_CTRL # TODO: Check if this is still correct |
| 56 | select SOC_AMD_COMMON_BLOCK_IOMMU # TODO: Check if this is still correct |
| 57 | select SOC_AMD_COMMON_BLOCK_LPC # TODO: Check if this is still correct |
| 58 | select SOC_AMD_COMMON_BLOCK_MCAX # TODO: Check if this is still correct |
| 59 | select SOC_AMD_COMMON_BLOCK_NONCAR # TODO: Check if this is still correct |
| 60 | select SOC_AMD_COMMON_BLOCK_PCI # TODO: Check if this is still correct |
| 61 | select SOC_AMD_COMMON_BLOCK_PCI_MMCONF # TODO: Check if this is still correct |
| 62 | select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER # TODO: Check if this is still correct |
| 63 | select SOC_AMD_COMMON_BLOCK_PM # TODO: Check if this is still correct |
| 64 | select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE # TODO: Check if this is still correct |
| 65 | select SOC_AMD_COMMON_BLOCK_PSP_GEN2 # TODO: Check if this is still correct |
Martin Roth | 10c43a2 | 2023-02-02 17:21:37 -0700 | [diff] [blame] | 66 | select SOC_AMD_COMMON_BLOCK_RESET |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 67 | select SOC_AMD_COMMON_BLOCK_SMBUS # TODO: Check if this is still correct |
| 68 | select SOC_AMD_COMMON_BLOCK_SMI # TODO: Check if this is still correct |
| 69 | select SOC_AMD_COMMON_BLOCK_SMM # TODO: Check if this is still correct |
| 70 | select SOC_AMD_COMMON_BLOCK_SMU # TODO: Check if this is still correct |
Felix Held | 7137562 | 2023-01-12 23:11:54 +0100 | [diff] [blame] | 71 | select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY # TODO: Check if this is still correct |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 72 | select SOC_AMD_COMMON_BLOCK_SPI # TODO: Check if this is still correct |
Felix Held | 23a398e | 2023-03-23 23:44:03 +0100 | [diff] [blame] | 73 | select SOC_AMD_COMMON_BLOCK_SVI3 |
Felix Held | 60df7ca | 2023-03-24 20:33:15 +0100 | [diff] [blame^] | 74 | select SOC_AMD_COMMON_BLOCK_TSC |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 75 | select SOC_AMD_COMMON_BLOCK_UART # TODO: Check if this is still correct |
| 76 | select SOC_AMD_COMMON_BLOCK_UCODE # TODO: Check if this is still correct |
| 77 | select SOC_AMD_COMMON_FSP_CCX_CPPC_HOB # TODO: Check if this is still correct |
| 78 | select SOC_AMD_COMMON_FSP_DMI_TABLES # TODO: Check if this is still correct |
| 79 | select SOC_AMD_COMMON_FSP_PCI # TODO: Check if this is still correct |
Fred Reitberger | eb59493 | 2023-01-11 15:12:21 -0500 | [diff] [blame] | 80 | select SOC_AMD_COMMON_FSP_PRELOAD_FSPS |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 81 | select SSE2 |
| 82 | select UDK_2017_BINDING |
Martin Roth | bcb610a | 2022-10-29 13:31:54 -0600 | [diff] [blame] | 83 | select USE_DDR5 |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 84 | select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM |
| 85 | select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT |
| 86 | select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE |
| 87 | select VBOOT_DEFINE_WIDEVINE_COUNTERS if VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 88 | select X86_AMD_FIXED_MTRRS |
| 89 | select X86_INIT_NEED_1_SIPI |
Elyes Haouas | 3cd06cc | 2023-01-05 07:42:24 +0100 | [diff] [blame] | 90 | help |
| 91 | AMD Glinda support |
| 92 | |
| 93 | if SOC_AMD_GLINDA |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 94 | |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 95 | config CHIPSET_DEVICETREE |
| 96 | string |
| 97 | default "soc/amd/glinda/chipset.cb" |
| 98 | |
| 99 | config EARLY_RESERVED_DRAM_BASE |
| 100 | hex |
| 101 | default 0x2000000 |
| 102 | help |
| 103 | This variable defines the base address of the DRAM which is reserved |
| 104 | for usage by coreboot in early stages (i.e. before ramstage is up). |
| 105 | This memory gets reserved in BIOS tables to ensure that the OS does |
| 106 | not use it, thus preventing corruption of OS memory in case of S3 |
| 107 | resume. |
| 108 | |
| 109 | config EARLYRAM_BSP_STACK_SIZE |
| 110 | hex |
| 111 | default 0x1000 |
| 112 | |
| 113 | config PSP_APOB_DRAM_ADDRESS |
| 114 | hex |
| 115 | default 0x2001000 |
| 116 | help |
| 117 | Location in DRAM where the PSP will copy the AGESA PSP Output |
| 118 | Block. |
| 119 | |
| 120 | config PSP_APOB_DRAM_SIZE |
| 121 | hex |
| 122 | default 0x1E000 |
| 123 | |
| 124 | config PSP_SHAREDMEM_BASE |
| 125 | hex |
| 126 | default 0x201F000 if VBOOT |
| 127 | default 0x0 |
| 128 | help |
| 129 | This variable defines the base address in DRAM memory where PSP copies |
| 130 | the vboot workbuf. This is used in the linker script to have a static |
| 131 | allocation for the buffer as well as for adding relevant entries in |
| 132 | the BIOS directory table for the PSP. |
| 133 | |
| 134 | config PSP_SHAREDMEM_SIZE |
| 135 | hex |
| 136 | default 0x8000 if VBOOT |
| 137 | default 0x0 |
| 138 | help |
| 139 | Sets the maximum size for the PSP to pass the vboot workbuf and |
| 140 | any logs or timestamps back to coreboot. This will be copied |
| 141 | into main memory by the PSP and will be available when the x86 is |
| 142 | started. The workbuf's base depends on the address of the reset |
| 143 | vector. |
| 144 | |
| 145 | config PRE_X86_CBMEM_CONSOLE_SIZE |
| 146 | hex |
| 147 | default 0x1600 |
| 148 | help |
| 149 | Size of the CBMEM console used in PSP verstage. |
| 150 | |
| 151 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 152 | hex |
| 153 | default 0x1600 |
| 154 | help |
| 155 | Increase this value if preram cbmem console is getting truncated |
| 156 | |
| 157 | config CBFS_MCACHE_SIZE |
| 158 | hex |
| 159 | default 0x2000 if VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 160 | |
| 161 | config C_ENV_BOOTBLOCK_SIZE |
| 162 | hex |
| 163 | default 0x10000 |
| 164 | help |
| 165 | Sets the size of the bootblock stage that should be loaded in DRAM. |
| 166 | This variable controls the DRAM allocation size in linker script |
| 167 | for bootblock stage. |
| 168 | |
| 169 | config ROMSTAGE_ADDR |
| 170 | hex |
| 171 | default 0x2040000 |
| 172 | help |
| 173 | Sets the address in DRAM where romstage should be loaded. |
| 174 | |
| 175 | config ROMSTAGE_SIZE |
| 176 | hex |
| 177 | default 0x80000 |
| 178 | help |
| 179 | Sets the size of DRAM allocation for romstage in linker script. |
| 180 | |
| 181 | config FSP_M_ADDR |
| 182 | hex |
| 183 | default 0x20C0000 |
| 184 | help |
| 185 | Sets the address in DRAM where FSP-M should be loaded. cbfstool |
| 186 | performs relocation of FSP-M to this address. |
| 187 | |
| 188 | config FSP_M_SIZE |
| 189 | hex |
| 190 | default 0xC0000 |
| 191 | help |
| 192 | Sets the size of DRAM allocation for FSP-M in linker script. |
| 193 | |
| 194 | config FSP_TEMP_RAM_SIZE |
| 195 | hex |
| 196 | default 0x40000 |
| 197 | help |
| 198 | The amount of coreboot-allocated heap and stack usage by the FSP. |
| 199 | |
| 200 | config VERSTAGE_ADDR |
| 201 | hex |
| 202 | depends on VBOOT_SEPARATE_VERSTAGE |
| 203 | default 0x2180000 |
| 204 | help |
| 205 | Sets the address in DRAM where verstage should be loaded if running |
| 206 | as a separate stage on x86. |
| 207 | |
| 208 | config VERSTAGE_SIZE |
| 209 | hex |
| 210 | depends on VBOOT_SEPARATE_VERSTAGE |
| 211 | default 0x80000 |
| 212 | help |
| 213 | Sets the size of DRAM allocation for verstage in linker script if |
| 214 | running as a separate stage on x86. |
| 215 | |
| 216 | config ASYNC_FILE_LOADING |
| 217 | bool "Loads files from SPI asynchronously" |
| 218 | select COOP_MULTITASKING |
| 219 | select SOC_AMD_COMMON_BLOCK_LPC_SPI_DMA |
| 220 | select CBFS_PRELOAD |
| 221 | help |
| 222 | When enabled, the platform will use the LPC SPI DMA controller to |
| 223 | asynchronously load contents from the SPI ROM. This will improve |
| 224 | boot time because the CPUs can be performing useful work while the |
| 225 | SPI contents are being preloaded. |
| 226 | |
| 227 | config CBFS_CACHE_SIZE |
| 228 | hex |
| 229 | default 0x40000 if CBFS_PRELOAD |
| 230 | |
| 231 | config RO_REGION_ONLY |
| 232 | string |
| 233 | depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A |
| 234 | default "apu/amdfw" |
| 235 | |
| 236 | config ECAM_MMCONF_BASE_ADDRESS |
| 237 | default 0xF8000000 |
| 238 | |
| 239 | config ECAM_MMCONF_BUS_NUMBER |
| 240 | default 64 |
| 241 | |
| 242 | config MAX_CPUS |
| 243 | int |
| 244 | default 8 if SOC_AMD_GLINDA |
| 245 | default 16 |
| 246 | help |
| 247 | Maximum number of threads the platform can have. |
| 248 | |
| 249 | config CONSOLE_UART_BASE_ADDRESS |
| 250 | depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART |
| 251 | hex |
| 252 | default 0xfedc9000 if UART_FOR_CONSOLE = 0 |
| 253 | default 0xfedca000 if UART_FOR_CONSOLE = 1 |
| 254 | default 0xfedce000 if UART_FOR_CONSOLE = 2 |
| 255 | default 0xfedcf000 if UART_FOR_CONSOLE = 3 |
| 256 | default 0xfedd1000 if UART_FOR_CONSOLE = 4 |
| 257 | |
| 258 | config SMM_TSEG_SIZE |
| 259 | hex |
| 260 | default 0x800000 if HAVE_SMI_HANDLER |
| 261 | default 0x0 |
| 262 | |
| 263 | config SMM_RESERVED_SIZE |
| 264 | hex |
| 265 | default 0x180000 |
| 266 | |
| 267 | config SMM_MODULE_STACK_SIZE |
| 268 | hex |
| 269 | default 0x800 |
| 270 | |
| 271 | config ACPI_BERT |
| 272 | bool "Build ACPI BERT Table" |
| 273 | default y |
| 274 | depends on HAVE_ACPI_TABLES |
| 275 | help |
| 276 | Report Machine Check errors identified in POST to the OS in an |
| 277 | ACPI Boot Error Record Table. |
| 278 | |
| 279 | config ACPI_BERT_SIZE |
| 280 | hex |
| 281 | default 0x4000 if ACPI_BERT |
| 282 | default 0x0 |
| 283 | help |
| 284 | Specify the amount of DRAM reserved for gathering the data used to |
| 285 | generate the ACPI table. |
| 286 | |
| 287 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 288 | int |
| 289 | default 150 |
| 290 | |
| 291 | config DISABLE_SPI_FLASH_ROM_SHARING |
| 292 | def_bool n |
| 293 | help |
| 294 | Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin |
| 295 | which indicates a board level ROM transaction request. This |
| 296 | removes arbitration with board and assumes the chipset controls |
| 297 | the SPI flash bus entirely. |
| 298 | |
| 299 | config DISABLE_KEYBOARD_RESET_PIN |
| 300 | bool |
| 301 | help |
Martin Roth | 9ceac74 | 2023-02-08 14:26:02 -0700 | [diff] [blame] | 302 | Instruct the SoC to not to reset based on the state of GPIO_21, KBDRST_L. |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 303 | |
Martin Roth | f95a11e | 2022-10-21 16:43:08 -0600 | [diff] [blame] | 304 | menu "PSP Configuration Options" |
| 305 | |
| 306 | config AMD_FWM_POSITION_INDEX |
| 307 | int "Firmware Directory Table location (0 to 5)" |
| 308 | range 0 5 |
| 309 | default 0 if BOARD_ROMSIZE_KB_512 |
| 310 | default 1 if BOARD_ROMSIZE_KB_1024 |
| 311 | default 2 if BOARD_ROMSIZE_KB_2048 |
| 312 | default 3 if BOARD_ROMSIZE_KB_4096 |
| 313 | default 4 if BOARD_ROMSIZE_KB_8192 |
| 314 | default 5 if BOARD_ROMSIZE_KB_16384 |
| 315 | help |
| 316 | Typically this is calculated by the ROM size, but there may |
| 317 | be situations where you want to put the firmware directory |
| 318 | table in a different location. |
| 319 | 0: 512 KB - 0xFFFA0000 |
| 320 | 1: 1 MB - 0xFFF20000 |
| 321 | 2: 2 MB - 0xFFE20000 |
| 322 | 3: 4 MB - 0xFFC20000 |
| 323 | 4: 8 MB - 0xFF820000 |
| 324 | 5: 16 MB - 0xFF020000 |
| 325 | |
| 326 | comment "AMD Firmware Directory Table set to location for 512KB ROM" |
| 327 | depends on AMD_FWM_POSITION_INDEX = 0 |
| 328 | comment "AMD Firmware Directory Table set to location for 1MB ROM" |
| 329 | depends on AMD_FWM_POSITION_INDEX = 1 |
| 330 | comment "AMD Firmware Directory Table set to location for 2MB ROM" |
| 331 | depends on AMD_FWM_POSITION_INDEX = 2 |
| 332 | comment "AMD Firmware Directory Table set to location for 4MB ROM" |
| 333 | depends on AMD_FWM_POSITION_INDEX = 3 |
| 334 | comment "AMD Firmware Directory Table set to location for 8MB ROM" |
| 335 | depends on AMD_FWM_POSITION_INDEX = 4 |
| 336 | comment "AMD Firmware Directory Table set to location for 16MB ROM" |
| 337 | depends on AMD_FWM_POSITION_INDEX = 5 |
| 338 | |
| 339 | config AMDFW_CONFIG_FILE |
| 340 | string "AMD PSP Firmware config file" |
| 341 | default "src/soc/amd/glinda/fw.cfg" |
| 342 | help |
| 343 | Specify the path/location of AMD PSP Firmware config file. |
| 344 | |
| 345 | config PSP_DISABLE_POSTCODES |
| 346 | bool "Disable PSP post codes" |
| 347 | help |
| 348 | Disables the output of port80 post codes from PSP. |
| 349 | |
| 350 | config PSP_POSTCODES_ON_ESPI |
| 351 | bool "Use eSPI bus for PSP post codes" |
| 352 | default y |
| 353 | depends on !PSP_DISABLE_POSTCODES |
| 354 | help |
| 355 | Select to send PSP port80 post codes on eSPI bus. |
| 356 | If not selected, PSP port80 codes will be sent on LPC bus. |
| 357 | |
| 358 | config PSP_LOAD_MP2_FW |
| 359 | bool |
| 360 | default n |
| 361 | help |
| 362 | Include the MP2 firmwares and configuration into the PSP build. |
| 363 | |
| 364 | If unsure, answer 'n' |
| 365 | |
| 366 | config PSP_UNLOCK_SECURE_DEBUG |
| 367 | bool "Unlock secure debug" |
| 368 | default y |
| 369 | help |
| 370 | Select this item to enable secure debug options in PSP. |
| 371 | |
| 372 | config HAVE_PSP_WHITELIST_FILE |
| 373 | bool "Include a debug whitelist file in PSP build" |
| 374 | default n |
| 375 | help |
| 376 | Support secured unlock prior to reset using a whitelisted |
| 377 | serial number. This feature requires a signed whitelist image |
| 378 | and bootloader from AMD. |
| 379 | |
| 380 | If unsure, answer 'n' |
| 381 | |
| 382 | config PSP_WHITELIST_FILE |
| 383 | string "Debug whitelist file path" |
| 384 | depends on HAVE_PSP_WHITELIST_FILE |
| 385 | default "site-local/3rdparty/amd_blobs/glinda/PSP/wtl-mrg.sbin" |
| 386 | |
| 387 | config HAVE_SPL_FILE |
| 388 | bool "Have a mainboard specific SPL table file" |
| 389 | default n |
| 390 | help |
| 391 | Have a mainboard specific Security Patch Level (SPL) table file. SPL file |
| 392 | is required to support PSP FW anti-rollback and needs to be created by AMD. |
| 393 | The default SPL file applies to all boards that use the concerned SoC and |
| 394 | is dropped under 3rdparty/blobs. The mainboard specific SPL file override |
| 395 | can be applied through SPL_TABLE_FILE config. |
| 396 | |
| 397 | If unsure, answer 'n' |
| 398 | |
| 399 | config SPL_TABLE_FILE |
| 400 | string "SPL table file" |
| 401 | depends on HAVE_SPL_FILE |
| 402 | default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MRG.sbin" |
| 403 | |
| 404 | config HAVE_SPL_RW_AB_FILE |
| 405 | bool "Have a separate mainboard-specific SPL file in RW A/B partitions" |
| 406 | default n |
| 407 | depends on HAVE_SPL_FILE |
| 408 | depends on VBOOT_SLOTS_RW_AB |
| 409 | help |
| 410 | Have separate mainboard-specific Security Patch Level (SPL) table |
| 411 | file for the RW A/B FMAP partitions. See the help text of |
| 412 | HAVE_SPL_FILE for a more detailed description. |
| 413 | |
| 414 | config SPL_RW_AB_TABLE_FILE |
| 415 | string "Separate SPL table file for RW A/B partitions" |
| 416 | depends on HAVE_SPL_RW_AB_FILE |
| 417 | default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/TypeId0x55_SplTableBl_MRG.sbin" |
| 418 | |
| 419 | config PSP_SOFTFUSE_BITS |
| 420 | string "PSP Soft Fuse bits to enable" |
| 421 | default "34 28 6" |
| 422 | help |
| 423 | Space separated list of Soft Fuse bits to enable. |
| 424 | Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG) |
| 425 | Bit 7: Disable PSP postcodes on Renoir and newer chips only |
| 426 | (Set by PSP_DISABLE_PORT80) |
| 427 | Bit 15: PSP debug output destination: |
| 428 | 0=SoC MMIO UART, 1=IO port 0x3F8 |
| 429 | Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW) |
| 430 | |
| 431 | See #55758 (NDA) for additional bit definitions. |
| 432 | |
| 433 | config PSP_VERSTAGE_FILE |
| 434 | string "Specify the PSP_verstage file path" |
| 435 | depends on VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 436 | default "\$(obj)/psp_verstage.bin" |
| 437 | help |
| 438 | Add psp_verstage file to the build & PSP Directory Table |
| 439 | |
| 440 | config PSP_VERSTAGE_SIGNING_TOKEN |
| 441 | string "Specify the PSP_verstage Signature Token file path" |
| 442 | depends on VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 443 | default "" |
| 444 | help |
| 445 | Add psp_verstage signature token to the build & PSP Directory Table |
| 446 | |
| 447 | endmenu |
| 448 | |
| 449 | config VBOOT |
| 450 | select VBOOT_VBNV_CMOS |
| 451 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 452 | |
| 453 | config VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 454 | def_bool n |
| 455 | depends on VBOOT |
| 456 | select ARCH_VERSTAGE_ARMV7 |
| 457 | help |
| 458 | Runs verstage on the PSP. Only available on |
| 459 | certain ChromeOS branded parts from AMD. |
| 460 | |
| 461 | config VBOOT_HASH_BLOCK_SIZE |
| 462 | hex |
| 463 | default 0x9000 |
| 464 | depends on VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 465 | help |
| 466 | Because the bulk of the time in psp_verstage to hash the RO cbfs is |
| 467 | spent in the overhead of doing svc calls, increasing the hash block |
| 468 | size significantly cuts the verstage hashing time as seen below. |
| 469 | |
| 470 | 4k takes 180ms |
| 471 | 16k takes 44ms |
| 472 | 32k takes 33.7ms |
| 473 | 36k takes 32.5ms |
| 474 | There's actually still room for an even bigger stack, but we've |
| 475 | reached a point of diminishing returns. |
| 476 | |
| 477 | config CMOS_RECOVERY_BYTE |
| 478 | hex |
| 479 | default 0x51 |
| 480 | depends on VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 481 | help |
| 482 | If the workbuf is not passed from the PSP to coreboot, set the |
| 483 | recovery flag and reboot. The PSP will read this byte, mark the |
| 484 | recovery request in VBNV, and reset the system into recovery mode. |
| 485 | |
| 486 | This is the byte before the default first byte used by VBNV |
| 487 | (0x26 + 0x0E - 1) |
| 488 | |
| 489 | if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 490 | |
| 491 | config RWA_REGION_ONLY |
| 492 | string |
| 493 | default "apu/amdfw_a" |
| 494 | help |
| 495 | Add a space-delimited list of filenames that should only be in the |
| 496 | RW-A section. |
| 497 | |
| 498 | config RWB_REGION_ONLY |
| 499 | string |
| 500 | default "apu/amdfw_b" |
| 501 | help |
| 502 | Add a space-delimited list of filenames that should only be in the |
| 503 | RW-B section. |
| 504 | |
| 505 | endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 506 | |
| 507 | endif # SOC_AMD_REMBRANDT_BASE |