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