| 1 |
# SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
config SOC_AMD_PICASSO |
| 4 |
bool |
| 5 |
select ACPI_SOC_NVS |
| 6 |
select ADD_FSP_BINARIES if USE_AMD_BLOBS |
| 7 |
select ARCH_X86 |
| 8 |
select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH |
| 9 |
select CONSOLE_CBMEM_PRINT_PRE_BOOTBLOCK_CONTENTS if VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 10 |
select DRIVERS_USB_PCI_XHCI |
| 11 |
select FSP_COMPRESS_FSP_M_LZMA |
| 12 |
select FSP_COMPRESS_FSP_S_LZMA |
| 13 |
select GENERIC_GPIO_LIB |
| 14 |
select HAVE_ACPI_TABLES |
| 15 |
select HAVE_CF9_RESET |
| 16 |
select HAVE_EM100_SUPPORT |
| 17 |
select HAVE_SMI_HANDLER |
| 18 |
select IDT_IN_EVERY_STAGE |
| 19 |
select PARALLEL_MP_AP_WORK |
| 20 |
select PLATFORM_USES_FSP2_0 |
| 21 |
select PROVIDES_ROM_SHARING |
| 22 |
select RTC |
| 23 |
select SOC_AMD_COMMON |
| 24 |
select SOC_AMD_COMMON_BLOCK_ACP_GEN1 |
| 25 |
select SOC_AMD_COMMON_BLOCK_ACPI |
| 26 |
select SOC_AMD_COMMON_BLOCK_ACPIMMIO |
| 27 |
select SOC_AMD_COMMON_BLOCK_ACPIMMIO_PM_IO_ACCESS |
| 28 |
select SOC_AMD_COMMON_BLOCK_ACPI_ALIB |
| 29 |
select SOC_AMD_COMMON_BLOCK_ACPI_CPU_POWER_STATE |
| 30 |
select SOC_AMD_COMMON_BLOCK_ACPI_GPIO |
| 31 |
select SOC_AMD_COMMON_BLOCK_ACPI_IVRS |
| 32 |
select SOC_AMD_COMMON_BLOCK_ACPI_MADT |
| 33 |
select SOC_AMD_COMMON_BLOCK_AOAC |
| 34 |
select SOC_AMD_COMMON_BLOCK_APOB |
| 35 |
select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS |
| 36 |
select SOC_AMD_COMMON_BLOCK_CPUFREQ_FAM17H_19H |
| 37 |
select SOC_AMD_COMMON_BLOCK_DATA_FABRIC |
| 38 |
select SOC_AMD_COMMON_BLOCK_DATA_FABRIC_DOMAIN |
| 39 |
select SOC_AMD_COMMON_BLOCK_EMMC |
| 40 |
select SOC_AMD_COMMON_BLOCK_EMMC_SKIP_POWEROFF |
| 41 |
select SOC_AMD_COMMON_BLOCK_GPP_CLK |
| 42 |
select SOC_AMD_COMMON_BLOCK_GRAPHICS |
| 43 |
select SOC_AMD_COMMON_BLOCK_HAS_ESPI |
| 44 |
select SOC_AMD_COMMON_BLOCK_HDA |
| 45 |
select SOC_AMD_COMMON_BLOCK_I2C |
| 46 |
select SOC_AMD_COMMON_BLOCK_I2C_PAD_CTRL |
| 47 |
select SOC_AMD_COMMON_BLOCK_IOMMU |
| 48 |
select SOC_AMD_COMMON_BLOCK_LPC |
| 49 |
select SOC_AMD_COMMON_BLOCK_MCAX |
| 50 |
select SOC_AMD_COMMON_BLOCK_NONCAR |
| 51 |
select SOC_AMD_COMMON_BLOCK_PCI |
| 52 |
select SOC_AMD_COMMON_BLOCK_PCIE_GPP_DRIVER |
| 53 |
select SOC_AMD_COMMON_BLOCK_PM |
| 54 |
select SOC_AMD_COMMON_BLOCK_PM_CHIPSET_STATE_SAVE |
| 55 |
select SOC_AMD_COMMON_BLOCK_PSP_GEN2 |
| 56 |
select SOC_AMD_COMMON_BLOCK_RESET |
| 57 |
select SOC_AMD_COMMON_BLOCK_SATA |
| 58 |
select SOC_AMD_COMMON_BLOCK_SMBUS |
| 59 |
select SOC_AMD_COMMON_BLOCK_SMI |
| 60 |
select SOC_AMD_COMMON_BLOCK_SMM |
| 61 |
select SOC_AMD_COMMON_BLOCK_SMU |
| 62 |
select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY |
| 63 |
select SOC_AMD_COMMON_BLOCK_SPI |
| 64 |
select SOC_AMD_COMMON_BLOCK_SVI2 |
| 65 |
select SOC_AMD_COMMON_BLOCK_TSC |
| 66 |
select SOC_AMD_COMMON_BLOCK_UART |
| 67 |
select SOC_AMD_COMMON_BLOCK_UCODE |
| 68 |
select SOC_AMD_COMMON_FSP_DMI_TABLES |
| 69 |
select SOC_AMD_COMMON_FSP_PCIE_CLK_REQ |
| 70 |
select SOC_AMD_SUPPORTS_WARM_RESET |
| 71 |
select SSE2 |
| 72 |
select UDK_2017_BINDING |
| 73 |
select DRAM_SUPPORT_DDR4 |
| 74 |
select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM |
| 75 |
select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT |
| 76 |
select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE |
| 77 |
select X86_AMD_FIXED_MTRRS |
| 78 |
select X86_INIT_NEED_1_SIPI |
| 79 |
select HAVE_X86_64_SUPPORT |
| 80 |
help |
| 81 |
AMD Picasso support |
| 82 |
|
| 83 |
if SOC_AMD_PICASSO |
| 84 |
|
| 85 |
config CHIPSET_DEVICETREE |
| 86 |
string |
| 87 |
default "soc/amd/picasso/chipset.cb" |
| 88 |
|
| 89 |
config FSP_M_FILE |
| 90 |
string "FSP-M (memory init) binary path and filename" |
| 91 |
depends on ADD_FSP_BINARIES |
| 92 |
default "3rdparty/amd_blobs/picasso/PICASSO_M.fd" |
| 93 |
help |
| 94 |
The path and filename of the FSP-M binary for this platform. |
| 95 |
|
| 96 |
config FSP_S_FILE |
| 97 |
string "FSP-S (silicon init) binary path and filename" |
| 98 |
depends on ADD_FSP_BINARIES |
| 99 |
default "3rdparty/amd_blobs/picasso/PICASSO_S.fd" |
| 100 |
help |
| 101 |
The path and filename of the FSP-S binary for this platform. |
| 102 |
|
| 103 |
config EARLY_RESERVED_DRAM_BASE |
| 104 |
hex |
| 105 |
default 0x2000000 |
| 106 |
help |
| 107 |
This variable defines the base address of the DRAM which is reserved |
| 108 |
for usage by coreboot in early stages (i.e. before ramstage is up). |
| 109 |
This memory gets reserved in BIOS tables to ensure that the OS does |
| 110 |
not use it, thus preventing corruption of OS memory in case of S3 |
| 111 |
resume. |
| 112 |
|
| 113 |
config EARLYRAM_BSP_STACK_SIZE |
| 114 |
hex |
| 115 |
default 0x1000 |
| 116 |
|
| 117 |
config PSP_APOB_DRAM_ADDRESS |
| 118 |
hex |
| 119 |
default 0x2001000 |
| 120 |
help |
| 121 |
Location in DRAM where the PSP will copy the AGESA PSP Output |
| 122 |
Block. |
| 123 |
|
| 124 |
config PSP_APOB_DRAM_SIZE |
| 125 |
hex |
| 126 |
default 0x10000 |
| 127 |
|
| 128 |
config PSP_SHAREDMEM_BASE |
| 129 |
hex |
| 130 |
default 0x2011000 if VBOOT |
| 131 |
default 0x0 |
| 132 |
help |
| 133 |
This variable defines the base address in DRAM memory where PSP copies |
| 134 |
the vboot workbuf. This is used in the linker script to have a static |
| 135 |
allocation for the buffer as well as for adding relevant entries in |
| 136 |
the BIOS directory table for the PSP. |
| 137 |
|
| 138 |
config PSP_SHAREDMEM_SIZE |
| 139 |
hex |
| 140 |
default 0x8000 if VBOOT |
| 141 |
default 0x0 |
| 142 |
help |
| 143 |
Sets the maximum size for the PSP to pass the vboot workbuf and |
| 144 |
any logs or timestamps back to coreboot. This will be copied |
| 145 |
into main memory by the PSP and will be available when the x86 is |
| 146 |
started. The workbuf's base depends on the address of the reset |
| 147 |
vector. |
| 148 |
|
| 149 |
config PRE_X86_CBMEM_CONSOLE_SIZE |
| 150 |
hex |
| 151 |
default 0x1600 |
| 152 |
help |
| 153 |
Size of the CBMEM console used in PSP verstage. |
| 154 |
|
| 155 |
config PRERAM_CBMEM_CONSOLE_SIZE |
| 156 |
hex |
| 157 |
default 0x1600 |
| 158 |
help |
| 159 |
Increase this value if preram cbmem console is getting truncated |
| 160 |
|
| 161 |
config CBFS_MCACHE_SIZE |
| 162 |
hex |
| 163 |
default 0x2000 if VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 164 |
|
| 165 |
config C_ENV_BOOTBLOCK_SIZE |
| 166 |
hex |
| 167 |
default 0x20000 |
| 168 |
help |
| 169 |
Sets the size of the bootblock stage that should be loaded in DRAM. |
| 170 |
This variable controls the DRAM allocation size in linker script |
| 171 |
for bootblock stage. |
| 172 |
|
| 173 |
config ROMSTAGE_ADDR |
| 174 |
hex |
| 175 |
default 0x2050000 |
| 176 |
help |
| 177 |
Sets the address in DRAM where romstage should be loaded. |
| 178 |
|
| 179 |
config ROMSTAGE_SIZE |
| 180 |
hex |
| 181 |
default 0x70000 |
| 182 |
help |
| 183 |
Sets the size of DRAM allocation for romstage in linker script. |
| 184 |
|
| 185 |
config FSP_M_ADDR |
| 186 |
hex |
| 187 |
default 0x20C0000 |
| 188 |
help |
| 189 |
Sets the address in DRAM where FSP-M should be loaded. cbfstool |
| 190 |
performs relocation of FSP-M to this address. |
| 191 |
|
| 192 |
config FSP_M_SIZE |
| 193 |
hex |
| 194 |
default 0xC0000 |
| 195 |
help |
| 196 |
Sets the size of DRAM allocation for FSP-M in linker script. |
| 197 |
|
| 198 |
config VERSTAGE_ADDR |
| 199 |
hex |
| 200 |
depends on VBOOT_SEPARATE_VERSTAGE |
| 201 |
default 0x2180000 |
| 202 |
help |
| 203 |
Sets the address in DRAM where verstage should be loaded if running |
| 204 |
as a separate stage on x86. |
| 205 |
|
| 206 |
config VERSTAGE_SIZE |
| 207 |
hex |
| 208 |
depends on VBOOT_SEPARATE_VERSTAGE |
| 209 |
default 0x80000 |
| 210 |
help |
| 211 |
Sets the size of DRAM allocation for verstage in linker script if |
| 212 |
running as a separate stage on x86. |
| 213 |
|
| 214 |
config ECAM_MMCONF_BASE_ADDRESS |
| 215 |
default 0xF8000000 |
| 216 |
|
| 217 |
config ECAM_MMCONF_BUS_NUMBER |
| 218 |
default 64 |
| 219 |
|
| 220 |
config VERSTAGE_ADDR |
| 221 |
hex |
| 222 |
default 0x4000000 |
| 223 |
|
| 224 |
config MAX_CPUS |
| 225 |
int |
| 226 |
default 8 |
| 227 |
help |
| 228 |
Maximum number of threads the platform can have. |
| 229 |
|
| 230 |
config VGA_BIOS_ID |
| 231 |
string |
| 232 |
default "1002,15d8" |
| 233 |
help |
| 234 |
The default VGA BIOS PCI vendor/device ID should be set to the |
| 235 |
result of the map_oprom_vendev() function in graphics.c. |
| 236 |
|
| 237 |
config VGA_BIOS_FILE |
| 238 |
string |
| 239 |
default "3rdparty/amd_blobs/picasso/PicassoGenericVbios.bin" |
| 240 |
|
| 241 |
config VGA_BIOS_SECOND |
| 242 |
def_bool y |
| 243 |
|
| 244 |
config VGA_BIOS_SECOND_ID |
| 245 |
string |
| 246 |
default "1002,15dd" |
| 247 |
help |
| 248 |
Some Dali and all Pollock APUs need a different VBIOS than some other |
| 249 |
Dali and all Picasso APUs, but don't always have a different PCI |
| 250 |
vendor/device IDs, so we need an alternate method to determine the |
| 251 |
correct video BIOS. In map_oprom_vendev(), we look at the return |
| 252 |
value of soc_is_raven2() and decide which rom to load. |
| 253 |
|
| 254 |
config VGA_BIOS_SECOND_FILE |
| 255 |
string |
| 256 |
default "3rdparty/amd_blobs/picasso/Raven2GenericVbios.bin" |
| 257 |
|
| 258 |
config S3_VGA_ROM_RUN |
| 259 |
bool |
| 260 |
default n |
| 261 |
|
| 262 |
config SERIRQ_CONTINUOUS_MODE |
| 263 |
bool |
| 264 |
default n |
| 265 |
help |
| 266 |
Set this option to y for serial IRQ in continuous mode. |
| 267 |
Otherwise it is in quiet mode. |
| 268 |
|
| 269 |
config CONSOLE_UART_BASE_ADDRESS |
| 270 |
depends on CONSOLE_SERIAL && AMD_SOC_CONSOLE_UART |
| 271 |
hex |
| 272 |
default 0xfedc9000 if UART_FOR_CONSOLE = 0 |
| 273 |
default 0xfedca000 if UART_FOR_CONSOLE = 1 |
| 274 |
default 0xfedce000 if UART_FOR_CONSOLE = 2 |
| 275 |
default 0xfedcf000 if UART_FOR_CONSOLE = 3 |
| 276 |
|
| 277 |
config SMM_TSEG_SIZE |
| 278 |
hex |
| 279 |
default 0x800000 if HAVE_SMI_HANDLER |
| 280 |
default 0x0 |
| 281 |
|
| 282 |
config SMM_RESERVED_SIZE |
| 283 |
hex |
| 284 |
default 0x180000 |
| 285 |
|
| 286 |
config SMM_MODULE_STACK_SIZE |
| 287 |
hex |
| 288 |
default 0x800 |
| 289 |
|
| 290 |
config ACPI_BERT |
| 291 |
bool "Build ACPI BERT Table" |
| 292 |
default y |
| 293 |
depends on HAVE_ACPI_TABLES |
| 294 |
help |
| 295 |
Report Machine Check errors identified in POST to the OS in an |
| 296 |
ACPI Boot Error Record Table. |
| 297 |
|
| 298 |
config ACPI_BERT_SIZE |
| 299 |
hex |
| 300 |
default 0x4000 if ACPI_BERT |
| 301 |
default 0x0 |
| 302 |
help |
| 303 |
Specify the amount of DRAM reserved for gathering the data used to |
| 304 |
generate the ACPI table. |
| 305 |
|
| 306 |
config CHROMEOS |
| 307 |
select ALWAYS_LOAD_OPROM |
| 308 |
select ALWAYS_RUN_OPROM |
| 309 |
|
| 310 |
config RO_REGION_ONLY |
| 311 |
string |
| 312 |
depends on VBOOT_SLOTS_RW_AB || VBOOT_SLOTS_RW_A |
| 313 |
default "apu/amdfw" |
| 314 |
|
| 315 |
config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 316 |
int |
| 317 |
default 150 |
| 318 |
|
| 319 |
config DISABLE_SPI_FLASH_ROM_SHARING |
| 320 |
def_bool n |
| 321 |
help |
| 322 |
Instruct the chipset to not honor the EGPIO67_SPI_ROM_REQ pin |
| 323 |
which indicates a board level ROM transaction request. This |
| 324 |
removes arbitration with board and assumes the chipset controls |
| 325 |
the SPI flash bus entirely. |
| 326 |
|
| 327 |
config DISABLE_KEYBOARD_RESET_PIN |
| 328 |
bool |
| 329 |
help |
| 330 |
Instruct the SoC to not use the state of GPIO_129 as keyboard reset |
| 331 |
signal. When this pin is used as GPIO and the keyboard reset |
| 332 |
functionality isn't disabled, configuring it as an output and driving |
| 333 |
it as 0 will cause a reset. |
| 334 |
|
| 335 |
config FSP_TEMP_RAM_SIZE |
| 336 |
hex |
| 337 |
default 0x40000 |
| 338 |
help |
| 339 |
The amount of coreboot-allocated heap and stack usage by the FSP. |
| 340 |
|
| 341 |
menu "PSP Configuration Options" |
| 342 |
|
| 343 |
config AMDFW_CONFIG_FILE |
| 344 |
string |
| 345 |
default "src/soc/amd/picasso/fw.cfg" |
| 346 |
|
| 347 |
config PSP_LOAD_MP2_FW |
| 348 |
bool |
| 349 |
default n |
| 350 |
help |
| 351 |
Include the MP2 firmwares and configuration into the PSP build. |
| 352 |
|
| 353 |
If unsure, answer 'n' |
| 354 |
|
| 355 |
config PSP_LOAD_S0I3_FW |
| 356 |
bool |
| 357 |
default n |
| 358 |
help |
| 359 |
Select this item to include the S0i3 file into the PSP build. |
| 360 |
|
| 361 |
config HAVE_PSP_WHITELIST_FILE |
| 362 |
bool "Include a debug whitelist file in PSP build" |
| 363 |
default n |
| 364 |
help |
| 365 |
Support secured unlock prior to reset using a whitelisted |
| 366 |
number? This feature requires a signed whitelist image and |
| 367 |
bootloader from AMD. |
| 368 |
|
| 369 |
If unsure, answer 'n' |
| 370 |
|
| 371 |
config PSP_WHITELIST_FILE |
| 372 |
string "Debug whitelist file path" |
| 373 |
depends on HAVE_PSP_WHITELIST_FILE |
| 374 |
default "3rdparty/amd_blobs/picasso/PSP/wtl-rvn.sbin" |
| 375 |
|
| 376 |
config PSP_UNLOCK_SECURE_DEBUG |
| 377 |
bool "Unlock secure debug" |
| 378 |
default n |
| 379 |
help |
| 380 |
Select this item to enable secure debug options in PSP. |
| 381 |
|
| 382 |
config PSP_VERSTAGE_FILE |
| 383 |
string "Specify the PSP_verstage file path" |
| 384 |
depends on VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 385 |
default "\$(obj)/psp_verstage.bin" |
| 386 |
help |
| 387 |
Add psp_verstage file to the build & PSP Directory Table |
| 388 |
|
| 389 |
config PSP_VERSTAGE_SIGNING_TOKEN |
| 390 |
string "Specify the PSP_verstage Signature Token file path" |
| 391 |
depends on VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 392 |
default "" |
| 393 |
help |
| 394 |
Add psp_verstage signature token to the build & PSP Directory Table |
| 395 |
|
| 396 |
config PSP_SOFTFUSE_BITS |
| 397 |
string "PSP Soft Fuse bits to enable" |
| 398 |
default "28" |
| 399 |
help |
| 400 |
Space separated list of Soft Fuse bits to enable. |
| 401 |
Bit 0: Enable secure debug (Set by PSP_UNLOCK_SECURE_DEBUG) |
| 402 |
Bit 15: PSP post code destination: 0=LPC 1=eSPI |
| 403 |
Bit 29: Disable MP2 firmware loading (Set by PSP_LOAD_MP2_FW) |
| 404 |
|
| 405 |
See #55758 (NDA) for additional bit definitions. |
| 406 |
|
| 407 |
endmenu |
| 408 |
|
| 409 |
config VBOOT |
| 410 |
select VBOOT_VBNV_CMOS |
| 411 |
select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 412 |
|
| 413 |
config VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 414 |
def_bool n |
| 415 |
depends on VBOOT |
| 416 |
select ARCH_VERSTAGE_ARMV7 |
| 417 |
help |
| 418 |
Runs verstage on the PSP. Only available on |
| 419 |
certain ChromeOS branded parts from AMD. |
| 420 |
|
| 421 |
config VBOOT_HASH_BLOCK_SIZE |
| 422 |
hex |
| 423 |
default 0x9000 |
| 424 |
depends on VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 425 |
help |
| 426 |
Because the bulk of the time in psp_verstage to hash the RO cbfs is |
| 427 |
spent in the overhead of doing svc calls, increasing the hash block |
| 428 |
size significantly cuts the verstage hashing time as seen below. |
| 429 |
|
| 430 |
4k takes 180ms |
| 431 |
16k takes 44ms |
| 432 |
32k takes 33.7ms |
| 433 |
36k takes 32.5ms |
| 434 |
There's actually still room for an even bigger stack, but we've |
| 435 |
reached a point of diminishing returns. |
| 436 |
|
| 437 |
config CMOS_RECOVERY_BYTE |
| 438 |
hex |
| 439 |
default 0x51 |
| 440 |
depends on VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 441 |
help |
| 442 |
If the workbuf is not passed from the PSP to coreboot, set the |
| 443 |
recovery flag and reboot. The PSP will read this byte, mark the |
| 444 |
recovery request in VBNV, and reset the system into recovery mode. |
| 445 |
|
| 446 |
This is the byte before the default first byte used by VBNV |
| 447 |
(0x26 + 0x0E - 1) |
| 448 |
|
| 449 |
if VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 450 |
|
| 451 |
config RWA_REGION_ONLY |
| 452 |
string |
| 453 |
default "apu/amdfw_a" |
| 454 |
help |
| 455 |
Add a space-delimited list of filenames that should only be in the |
| 456 |
RW-A section. |
| 457 |
|
| 458 |
endif # VBOOT_SLOTS_RW_A && VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 459 |
|
| 460 |
if VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 461 |
|
| 462 |
config RWB_REGION_ONLY |
| 463 |
string |
| 464 |
default "apu/amdfw_b" |
| 465 |
help |
| 466 |
Add a space-delimited list of filenames that should only be in the |
| 467 |
RW-B section. |
| 468 |
|
| 469 |
endif # VBOOT_SLOTS_RW_AB && VBOOT_STARTS_BEFORE_BOOTBLOCK |
| 470 |
|
| 471 |
endif # SOC_AMD_PICASSO |