| 1 |
## SPDX-License-Identifier: GPL-2.0-only |
| 2 |
|
| 3 |
config SOC_INTEL_APOLLOLAKE |
| 4 |
bool |
| 5 |
select INTEL_CAR_CQOS |
| 6 |
select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
| 7 |
select ACPI_NO_PCAT_8259 |
| 8 |
select ARCH_X86 |
| 9 |
select BOOT_DEVICE_SUPPORTS_WRITES |
| 10 |
# CPU specific options |
| 11 |
select CPU_INTEL_COMMON |
| 12 |
select CPU_SUPPORTS_PM_TIMER_EMULATION |
| 13 |
select DRAM_SUPPORT_DDR3 |
| 14 |
select DRAM_SUPPORT_LPDDR4 |
| 15 |
select PCR_COMMON_IOSF_1_0 |
| 16 |
select SSE2 |
| 17 |
select SUPPORT_CPU_UCODE_IN_CBFS |
| 18 |
# Audio options |
| 19 |
select ACPI_NHLT |
| 20 |
select SOC_INTEL_COMMON_NHLT |
| 21 |
# Misc options |
| 22 |
select CACHE_MRC_SETTINGS |
| 23 |
select EDK2_CPU_TIMER_LIB if PAYLOAD_EDK2 |
| 24 |
select FAST_SPI_GENERATE_SSDT |
| 25 |
select FSP_PLATFORM_MEMORY_SETTINGS_VERSIONS |
| 26 |
select GENERIC_GPIO_LIB |
| 27 |
select HAVE_ASAN_IN_ROMSTAGE |
| 28 |
select HAVE_CF9_RESET_PREPARE |
| 29 |
select HAVE_DPTF_EISA_HID |
| 30 |
select HAVE_FSP_GOP |
| 31 |
select HAVE_INTEL_FSP_REPO if !SOC_INTEL_GEMINILAKE |
| 32 |
select HAVE_SMI_HANDLER |
| 33 |
select INTEL_DESCRIPTOR_MODE_CAPABLE |
| 34 |
select INTEL_GMA_ACPI |
| 35 |
select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
| 36 |
select INTEL_GMA_SWSMISCI |
| 37 |
select MRC_SETTINGS_PROTECT |
| 38 |
select MRC_SETTINGS_VARIABLE_DATA |
| 39 |
select NO_PM_ACPI_TIMER |
| 40 |
select NO_UART_ON_SUPERIO |
| 41 |
select NO_XIP_EARLY_STAGES |
| 42 |
select FSP_COMPRESS_FSP_M_LZ4 |
| 43 |
select PARALLEL_MP_AP_WORK |
| 44 |
select PCIEXP_ASPM |
| 45 |
select PCIEXP_COMMON_CLOCK |
| 46 |
select PCIEXP_CLK_PM |
| 47 |
select PCIEXP_L1_SUB_STATE |
| 48 |
select PERIODIC_SMI_RATE_SELECTION_IN_GEN_PMCON_B |
| 49 |
select PLATFORM_USES_FSP2_0 |
| 50 |
select PMC_INVALID_READ_AFTER_WRITE |
| 51 |
select PMC_GLOBAL_RESET_ENABLE_LOCK |
| 52 |
select REG_SCRIPT |
| 53 |
select SA_ENABLE_IMR |
| 54 |
select SOC_INTEL_COMMON |
| 55 |
select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
| 56 |
select SOC_INTEL_COMMON_BLOCK |
| 57 |
select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT |
| 58 |
select SOC_INTEL_COMMON_BLOCK_ACPI |
| 59 |
select SOC_INTEL_COMMON_BLOCK_CAR |
| 60 |
select SOC_INTEL_COMMON_BLOCK_CPU |
| 61 |
select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
| 62 |
select SOC_INTEL_COMMON_BLOCK_GPIO_MULTI_ACPI_DEVICES |
| 63 |
select SOC_INTEL_COMMON_BLOCK_GPIO_IOSTANDBY |
| 64 |
select SOC_INTEL_COMMON_BLOCK_HECI1_DISABLE_USING_PCR |
| 65 |
select SOC_INTEL_COMMON_PCH_CLIENT |
| 66 |
select SOC_INTEL_COMMON_BLOCK_PMC_DISCOVERABLE |
| 67 |
select SOC_INTEL_COMMON_BLOCK_SRAM |
| 68 |
select SOC_INTEL_COMMON_BLOCK_SA |
| 69 |
select SOC_INTEL_COMMON_BLOCK_SCS |
| 70 |
select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG |
| 71 |
select SOC_INTEL_COMMON_BLOCK_SMM |
| 72 |
select SOC_INTEL_COMMON_FSP_RESET |
| 73 |
select SOC_INTEL_COMMON_RESET |
| 74 |
select SOC_INTEL_INTEGRATED_SOUTHCLUSTER |
| 75 |
select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION |
| 76 |
select SOC_INTEL_NO_BOOTGUARD_MSR |
| 77 |
select TSC_MONOTONIC_TIMER |
| 78 |
select UDELAY_TSC |
| 79 |
select UDK_2017_BINDING |
| 80 |
select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM |
| 81 |
select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT |
| 82 |
select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE |
| 83 |
# This SoC does not map SPI flash like many previous SoC. Therefore we |
| 84 |
# provide a custom media driver that facilitates mapping |
| 85 |
select X86_CUSTOM_BOOTMEDIA |
| 86 |
help |
| 87 |
Intel Apollolake support |
| 88 |
|
| 89 |
config SOC_INTEL_GEMINILAKE |
| 90 |
bool |
| 91 |
default n |
| 92 |
select SOC_INTEL_APOLLOLAKE |
| 93 |
select SOC_INTEL_COMMON_BLOCK_CNVI |
| 94 |
select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
| 95 |
select SOC_INTEL_COMMON_BLOCK_SGX |
| 96 |
select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
| 97 |
select IDT_IN_EVERY_STAGE |
| 98 |
select PAGING_IN_CACHE_AS_RAM |
| 99 |
select INTEL_CAR_NEM |
| 100 |
help |
| 101 |
Intel Geminilake support |
| 102 |
|
| 103 |
if SOC_INTEL_APOLLOLAKE |
| 104 |
|
| 105 |
config FSP_STATUS_GLOBAL_RESET |
| 106 |
hex |
| 107 |
default 0x40000005 |
| 108 |
|
| 109 |
config USE_LEGACY_8254_TIMER |
| 110 |
default y |
| 111 |
|
| 112 |
config SKIP_CSE_RBP |
| 113 |
bool |
| 114 |
default y if BOOT_DEVICE_MEMORY_MAPPED && !IFWI_IBBM_LOAD |
| 115 |
help |
| 116 |
Tell CSE we do not need to use Ring Buffer Protocol (RBP) to fetch |
| 117 |
firmware for us if we are using memory-mapped SPI. This lets CSE |
| 118 |
state machine transition to next boot state, so that it can function |
| 119 |
as designed. |
| 120 |
|
| 121 |
config DISABLE_HECI1_AT_PRE_BOOT |
| 122 |
default y |
| 123 |
|
| 124 |
config MAX_HECI_DEVICES |
| 125 |
int |
| 126 |
default 3 |
| 127 |
|
| 128 |
config MAX_CPUS |
| 129 |
int |
| 130 |
default 4 |
| 131 |
|
| 132 |
config VBOOT |
| 133 |
select VBOOT_SEPARATE_VERSTAGE |
| 134 |
select VBOOT_MUST_REQUEST_DISPLAY |
| 135 |
select VBOOT_STARTS_IN_BOOTBLOCK |
| 136 |
select VBOOT_VBNV_CMOS if !VBOOT_VBNV_FLASH |
| 137 |
select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH if !VBOOT_VBNV_FLASH |
| 138 |
|
| 139 |
config TPM_ON_FAST_SPI |
| 140 |
bool |
| 141 |
default n |
| 142 |
depends on MEMORY_MAPPED_TPM |
| 143 |
help |
| 144 |
TPM part is conntected on Fast SPI interface and is mapped to the |
| 145 |
linear address space. |
| 146 |
|
| 147 |
config PCR_BASE_ADDRESS |
| 148 |
hex |
| 149 |
default 0xd0000000 |
| 150 |
help |
| 151 |
This option allows you to select MMIO Base Address of sideband bus. |
| 152 |
|
| 153 |
config DCACHE_RAM_BASE |
| 154 |
hex |
| 155 |
default 0xfef00000 |
| 156 |
|
| 157 |
config DCACHE_RAM_SIZE |
| 158 |
hex |
| 159 |
default 0x100000 if SOC_INTEL_GEMINILAKE |
| 160 |
default 0xc0000 |
| 161 |
help |
| 162 |
The size of the cache-as-ram region required during bootblock |
| 163 |
and/or romstage. |
| 164 |
|
| 165 |
config DCACHE_BSP_STACK_SIZE |
| 166 |
hex |
| 167 |
default 0x4000 |
| 168 |
help |
| 169 |
The amount of anticipated stack usage in CAR by bootblock and |
| 170 |
other stages. |
| 171 |
|
| 172 |
config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 173 |
int |
| 174 |
default 100 |
| 175 |
|
| 176 |
config CPU_XTAL_HZ |
| 177 |
default 19200000 |
| 178 |
|
| 179 |
config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 180 |
int |
| 181 |
default 133 |
| 182 |
|
| 183 |
# 32KiB bootblock is all that is mapped in by the CSE at top of 4GiB. |
| 184 |
config C_ENV_BOOTBLOCK_SIZE |
| 185 |
hex |
| 186 |
default 0x8000 |
| 187 |
|
| 188 |
config ROMSTAGE_ADDR |
| 189 |
hex |
| 190 |
default 0xfef20000 |
| 191 |
help |
| 192 |
The base address (in CAR) where romstage should be linked |
| 193 |
|
| 194 |
config VERSTAGE_ADDR |
| 195 |
hex |
| 196 |
default 0xfef40000 |
| 197 |
help |
| 198 |
The base address (in CAR) where verstage should be linked |
| 199 |
|
| 200 |
config FSP_HEADER_PATH |
| 201 |
default "src/vendorcode/intel/fsp/fsp2_0/geminilake/2.2.0.0" if VENDOR_GOOGLE && SOC_INTEL_GEMINILAKE |
| 202 |
default "src/vendorcode/intel/fsp/fsp2_0/geminilake/2.2.3.1" if SOC_INTEL_GEMINILAKE |
| 203 |
default "3rdparty/fsp/ApolloLakeFspBinPkg/Include/" |
| 204 |
|
| 205 |
config FSP_FD_PATH |
| 206 |
default "3rdparty/fsp/ApolloLakeFspBinPkg/FspBin/Fsp.fd" |
| 207 |
|
| 208 |
config FSP_M_ADDR |
| 209 |
hex |
| 210 |
default 0xfef40000 |
| 211 |
help |
| 212 |
The address FSP-M will be relocated to during build time |
| 213 |
|
| 214 |
config NEED_LBP2 |
| 215 |
bool "Write contents for logical boot partition 2." |
| 216 |
default n |
| 217 |
help |
| 218 |
Write the contents from a file into the logical boot partition 2 |
| 219 |
region defined by LBP2_FMAP_NAME. |
| 220 |
|
| 221 |
config LBP2_FMAP_NAME |
| 222 |
string "Name of FMAP region to put logical boot partition 2" |
| 223 |
depends on NEED_LBP2 |
| 224 |
default "SIGN_CSE" |
| 225 |
help |
| 226 |
Name of FMAP region to write logical boot partition 2 data. |
| 227 |
|
| 228 |
config LBP2_FROM_IFWI |
| 229 |
bool "Extract the LBP2 from the IFWI binary" |
| 230 |
depends on NEED_LBP2 |
| 231 |
default n |
| 232 |
help |
| 233 |
The Logical Boot Partition will be automatically extracted |
| 234 |
from the supplied IFWI binary |
| 235 |
|
| 236 |
config LBP2_FILE_NAME |
| 237 |
string "Path of file to write to logical boot partition 2 region" |
| 238 |
depends on NEED_LBP2 && !LBP2_FROM_IFWI |
| 239 |
default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/lbp2.bin" |
| 240 |
help |
| 241 |
Name of file to store in the logical boot partition 2 region. |
| 242 |
|
| 243 |
config NEED_IFWI |
| 244 |
bool "Write content into IFWI region" |
| 245 |
default n |
| 246 |
help |
| 247 |
Write the content from a file into IFWI region defined by |
| 248 |
IFWI_FMAP_NAME. |
| 249 |
|
| 250 |
config IFWI_FMAP_NAME |
| 251 |
string "Name of FMAP region to pull IFWI into" |
| 252 |
depends on NEED_IFWI |
| 253 |
default "IFWI" |
| 254 |
help |
| 255 |
Name of FMAP region to write IFWI. |
| 256 |
|
| 257 |
config IFWI_FILE_NAME |
| 258 |
string "Path of file to write to IFWI region" |
| 259 |
depends on NEED_IFWI |
| 260 |
default "3rdparty/blobs/mainboard/\$(CONFIG_MAINBOARD_DIR)/ifwi.bin" |
| 261 |
help |
| 262 |
Name of file to store in the IFWI region. |
| 263 |
|
| 264 |
config MAX_ROOT_PORTS |
| 265 |
int |
| 266 |
default 6 |
| 267 |
|
| 268 |
config NHLT_DMIC_1CH_16B |
| 269 |
bool |
| 270 |
depends on ACPI_NHLT |
| 271 |
default n |
| 272 |
help |
| 273 |
Include DSP firmware settings for 1 channel 16B DMIC array. |
| 274 |
|
| 275 |
config NHLT_DMIC_2CH_16B |
| 276 |
bool |
| 277 |
depends on ACPI_NHLT |
| 278 |
default n |
| 279 |
help |
| 280 |
Include DSP firmware settings for 2 channel 16B DMIC array. |
| 281 |
|
| 282 |
config NHLT_DMIC_4CH_16B |
| 283 |
bool |
| 284 |
depends on ACPI_NHLT |
| 285 |
default n |
| 286 |
help |
| 287 |
Include DSP firmware settings for 4 channel 16B DMIC array. |
| 288 |
|
| 289 |
config NHLT_MAX98357 |
| 290 |
bool |
| 291 |
depends on ACPI_NHLT |
| 292 |
default n |
| 293 |
help |
| 294 |
Include DSP firmware settings for headset codec. |
| 295 |
|
| 296 |
config NHLT_DA7219 |
| 297 |
bool |
| 298 |
depends on ACPI_NHLT |
| 299 |
default n |
| 300 |
help |
| 301 |
Include DSP firmware settings for headset codec. |
| 302 |
|
| 303 |
config NHLT_RT5682 |
| 304 |
bool |
| 305 |
depends on ACPI_NHLT |
| 306 |
default n |
| 307 |
help |
| 308 |
Include DSP firmware settings for headset codec. |
| 309 |
# |
| 310 |
# Each bit in QOS mask controls this many bytes. This is calculated as: |
| 311 |
# (CACHE_WAYS / CACHE_BITS_PER_MASK) * CACHE_LINE_SIZE * CACHE_SETS |
| 312 |
# |
| 313 |
|
| 314 |
config CACHE_QOS_SIZE_PER_BIT |
| 315 |
hex |
| 316 |
default 0x20000 # 128 KB |
| 317 |
|
| 318 |
config L2_CACHE_SIZE |
| 319 |
hex |
| 320 |
default 0x400000 if SOC_INTEL_GEMINILAKE |
| 321 |
default 0x100000 |
| 322 |
|
| 323 |
config SMM_RESERVED_SIZE |
| 324 |
hex |
| 325 |
default 0x100000 |
| 326 |
|
| 327 |
config CHIPSET_DEVICETREE |
| 328 |
string |
| 329 |
default "soc/intel/apollolake/chipset_glk.cb" if SOC_INTEL_GEMINILAKE |
| 330 |
default "soc/intel/apollolake/chipset_apl.cb" |
| 331 |
|
| 332 |
config IFD_CHIPSET |
| 333 |
string |
| 334 |
default "glk" if SOC_INTEL_GEMINILAKE |
| 335 |
default "aplk" |
| 336 |
|
| 337 |
config CPU_BCLK_MHZ |
| 338 |
int |
| 339 |
default 100 |
| 340 |
|
| 341 |
config CONSOLE_UART_BASE_ADDRESS |
| 342 |
hex |
| 343 |
default 0xcdffc000 |
| 344 |
depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 345 |
|
| 346 |
# M and N divisor values for clock frequency configuration. |
| 347 |
# These values get us a 1.836 MHz clock (ideally we want 1.843 MHz) |
| 348 |
config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 349 |
hex |
| 350 |
default 0x25a |
| 351 |
|
| 352 |
config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 353 |
hex |
| 354 |
default 0x7fff |
| 355 |
|
| 356 |
config SOC_ESPI |
| 357 |
bool |
| 358 |
default n |
| 359 |
help |
| 360 |
Use eSPI bus instead of LPC |
| 361 |
|
| 362 |
config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 363 |
int |
| 364 |
default 3 |
| 365 |
|
| 366 |
config SOC_INTEL_I2C_DEV_MAX |
| 367 |
int |
| 368 |
default 8 |
| 369 |
|
| 370 |
# Don't include the early page tables in RW_A or RW_B cbfs regions |
| 371 |
config RO_REGION_ONLY |
| 372 |
string |
| 373 |
default "pdpt pt" |
| 374 |
|
| 375 |
config INTEL_GMA_PANEL_2 |
| 376 |
bool |
| 377 |
default n |
| 378 |
|
| 379 |
config INTEL_GMA_BCLV_OFFSET |
| 380 |
default 0xc8358 if INTEL_GMA_PANEL_2 |
| 381 |
default 0xc8258 |
| 382 |
|
| 383 |
config INTEL_GMA_BCLV_WIDTH |
| 384 |
default 32 |
| 385 |
|
| 386 |
config INTEL_GMA_BCLM_OFFSET |
| 387 |
default 0xc8354 if INTEL_GMA_PANEL_2 |
| 388 |
default 0xc8254 |
| 389 |
|
| 390 |
config INTEL_GMA_BCLM_WIDTH |
| 391 |
default 32 |
| 392 |
|
| 393 |
config BOOTBLOCK_IN_CBFS |
| 394 |
bool |
| 395 |
default n |
| 396 |
|
| 397 |
config HAVE_PAM0_REGISTER |
| 398 |
bool |
| 399 |
default n |
| 400 |
|
| 401 |
config DOMAIN_RESOURCE_32BIT_LIMIT |
| 402 |
default PCR_BASE_ADDRESS |
| 403 |
|
| 404 |
choice |
| 405 |
prompt "Boot Profile" |
| 406 |
default NO_BOOT_PROFILE |
| 407 |
help |
| 408 |
The Boot Profile that is used for the IFWI Boot Flow. This should |
| 409 |
be equal to, or higher than the one configured in IFWI. |
| 410 |
|
| 411 |
config NO_BOOT_PROFILE |
| 412 |
bool "No Profile" |
| 413 |
help |
| 414 |
Since its inception, coreboot has ignored the Boot Flow designed |
| 415 |
by Intel; this only uses an IBB and OBB. Neither are measured or |
| 416 |
verified and mapped without assistance. |
| 417 |
|
| 418 |
config BOOT_PROFILE_0 |
| 419 |
bool "Legacy" |
| 420 |
help |
| 421 |
Profile 0 is for platforms that do not wish to enable Boot Guard |
| 422 |
boot block verification or measurement enforcement. |
| 423 |
|
| 424 |
config BOOT_PROFILE_1 |
| 425 |
bool "Verified" |
| 426 |
depends on !VBOOT |
| 427 |
help |
| 428 |
Profile 1 is strict Verification enforcement. It prevents unverified |
| 429 |
BIOS components from running. |
| 430 |
|
| 431 |
config BOOT_PROFILE_2 |
| 432 |
bool "Verified and Measured" |
| 433 |
depends on !VBOOT |
| 434 |
help |
| 435 |
Boot Guard Profile 2 is strict Verification and Measurement enforcement; |
| 436 |
this prevents unverified BIOS components from running. Upon manufacturing |
| 437 |
completion, this value is burned into an FPF and is permanent. This |
| 438 |
setting is only configurable when OEM signing is enabled. |
| 439 |
|
| 440 |
endchoice |
| 441 |
|
| 442 |
config IFWI_IBBM_LOAD |
| 443 |
bool |
| 444 |
default y if BOOT_PROFILE_0 || BOOT_PROFILE_1 || BOOT_PROFILE_2 |
| 445 |
help |
| 446 |
Create IBBL, IBBM and OBB that are required for Apollo Lake's secure boot flow. The IBBM |
| 447 |
will be loaded and measured with the assistance of the CSEs Ring Buffer Protocol. |
| 448 |
|
| 449 |
config IBBM_ROM_SIZE |
| 450 |
hex |
| 451 |
default 0x16000 |
| 452 |
depends on IFWI_IBBM_LOAD |
| 453 |
help |
| 454 |
The size of the IBBM ($(objcbfs/ibbm.rom). This is the size of the |
| 455 |
ELF, with the ELF header removed, rounded down to the nearest 0x100. |
| 456 |
|
| 457 |
config IBBM_ROM_COMPONENT |
| 458 |
string |
| 459 |
depends on IFWI_IBBM_LOAD |
| 460 |
default "verstage.elf" if VBOOT |
| 461 |
default "romstage.elf" |
| 462 |
help |
| 463 |
The component to use as the IBB. This must be the component that runs |
| 464 |
straight after the bootblock. |
| 465 |
|
| 466 |
config IBBM_ROM_ADDR |
| 467 |
hex |
| 468 |
depends on IFWI_IBBM_LOAD |
| 469 |
default VERSTAGE_ADDR if VBOOT |
| 470 |
default ROMSTAGE_ADDR |
| 471 |
help |
| 472 |
The base address (in CAR) where the IBBM should be copied to. |
| 473 |
|
| 474 |
config IFWI_VERIFIED_BOOT |
| 475 |
bool |
| 476 |
default y if BOOT_PROFILE_1 || BOOT_PROFILE_2 |
| 477 |
depends on TPM && IFWI_IBBM_LOAD |
| 478 |
help |
| 479 |
Verify the individual states of coreboot against SHA256 hashes that are created |
| 480 |
at build time. |
| 481 |
|
| 482 |
config IFWI_MEASURED_BOOT |
| 483 |
bool |
| 484 |
default y if BOOT_PROFILE_2 |
| 485 |
depends on TPM && IFWI_IBBM_LOAD |
| 486 |
help |
| 487 |
Measuring the IBBL, IBB and TXE using either PTT or a TPM. The IBB is measured |
| 488 |
only after it has been loaded into the CSE. |
| 489 |
|
| 490 |
endif |