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