Martin Roth | 7d86f34 | 2024-02-16 11:04:02 -0700 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 3 | config SOC_INTEL_ELKHARTLAKE |
| 4 | bool |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 5 | select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
Angel Pons | 8e035e3 | 2021-06-22 12:58:20 +0200 | [diff] [blame] | 6 | select ARCH_X86 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 7 | select BOOT_DEVICE_SUPPORTS_WRITES |
| 8 | select CACHE_MRC_SETTINGS |
| 9 | select CPU_INTEL_COMMON |
| 10 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
Michael Niewöhner | fe6070f | 2020-10-04 15:16:04 +0200 | [diff] [blame] | 11 | select CPU_SUPPORTS_PM_TIMER_EMULATION |
Subrata Banik | 34f26b2 | 2022-02-10 12:38:02 +0530 | [diff] [blame] | 12 | select DISPLAY_FSP_VERSION_INFO |
Sean Rhodes | 7bbc9a5 | 2022-07-18 11:31:00 +0100 | [diff] [blame] | 13 | select EDK2_CPU_TIMER_LIB if PAYLOAD_EDK2 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 14 | select FSP_COMPRESS_FSP_S_LZ4 |
| 15 | select FSP_M_XIP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 16 | select FSP_STATUS_GLOBAL_RESET_REQUIRED_3 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 17 | select GENERIC_GPIO_LIB |
| 18 | select HAVE_FSP_GOP |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 19 | select HAVE_SMI_HANDLER |
| 20 | select IDT_IN_EVERY_STAGE |
Subrata Banik | e9d0653 | 2022-01-28 23:06:58 +0530 | [diff] [blame] | 21 | select INTEL_CAR_NEM |
Subrata Banik | 34f26b2 | 2022-02-10 12:38:02 +0530 | [diff] [blame] | 22 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 23 | select INTEL_GMA_ACPI |
| 24 | select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
Aamir Bohra | 30cca6c | 2021-02-04 20:57:51 +0530 | [diff] [blame] | 25 | select MP_SERVICES_PPI_V1 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 26 | select MRC_SETTINGS_PROTECT |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 27 | select PARALLEL_MP_AP_WORK |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 28 | select PLATFORM_USES_FSP2_1 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 29 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 30 | select SOC_INTEL_COMMON |
| 31 | select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
| 32 | select SOC_INTEL_COMMON_BLOCK |
| 33 | select SOC_INTEL_COMMON_BLOCK_ACPI |
Michael Niewöhner | 02275be | 2020-11-12 23:50:37 +0100 | [diff] [blame] | 34 | select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC |
Angel Pons | 98f672a | 2021-02-19 19:42:10 +0100 | [diff] [blame] | 35 | select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO |
Michael Niewöhner | 8a6c34e | 2021-01-01 21:26:42 +0100 | [diff] [blame] | 36 | select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT |
Tim Wawrzynczak | 46c5f8f | 2021-07-01 08:45:47 -0600 | [diff] [blame] | 37 | select SOC_INTEL_COMMON_BLOCK_ACPI_PEP |
Subrata Banik | 21974ab | 2020-10-31 21:40:43 +0530 | [diff] [blame] | 38 | select SOC_INTEL_COMMON_BLOCK_CAR |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 39 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
| 40 | select SOC_INTEL_COMMON_BLOCK_CPU |
| 41 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
Angel Pons | a4cd911 | 2021-02-19 19:23:38 +0100 | [diff] [blame] | 42 | select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 43 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
| 44 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
| 45 | select SOC_INTEL_COMMON_BLOCK_HDA |
Subrata Banik | 34f26b2 | 2022-02-10 12:38:02 +0530 | [diff] [blame] | 46 | select HAVE_INTEL_FSP_REPO |
Subrata Banik | e49a615 | 2022-01-28 23:03:55 +0530 | [diff] [blame] | 47 | select HECI_DISABLE_USING_SMM if DISABLE_HECI1_AT_PRE_BOOT |
Dinesh Gehlot | 9072333 | 2023-02-24 05:13:42 +0000 | [diff] [blame] | 48 | select SOC_INTEL_COMMON_BLOCK_ME_SPEC_15 |
Lean Sheng Tan | 7502000 | 2021-06-30 01:47:48 -0700 | [diff] [blame] | 49 | select SOC_INTEL_COMMON_BLOCK_PMC_EPOC |
| 50 | select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 51 | select SOC_INTEL_COMMON_BLOCK_SA |
| 52 | select SOC_INTEL_COMMON_BLOCK_SCS |
| 53 | select SOC_INTEL_COMMON_BLOCK_SMM |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 54 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 55 | select SOC_INTEL_COMMON_FSP_RESET |
Angel Pons | eb90c51 | 2022-07-18 14:41:24 +0200 | [diff] [blame] | 56 | select SOC_INTEL_COMMON_PCH_CLIENT |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 57 | select SOC_INTEL_COMMON_RESET |
Subrata Banik | af27ac2 | 2022-02-18 00:44:15 +0530 | [diff] [blame] | 58 | select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 59 | select SSE2 |
| 60 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 61 | select TSC_MONOTONIC_TIMER |
| 62 | select UDELAY_TSC |
| 63 | select UDK_202005_BINDING |
Subrata Banik | 34f26b2 | 2022-02-10 12:38:02 +0530 | [diff] [blame] | 64 | select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM |
Uwe Poeche | 954af52 | 2022-05-24 08:45:13 +0200 | [diff] [blame] | 65 | select SOC_INTEL_RAPL_DISABLE_VIA_MCHBAR |
Lean Sheng Tan | 41546a5 | 2023-03-13 14:56:31 +0100 | [diff] [blame] | 66 | select X86_CLFLUSH_CAR |
Elyes Haouas | 7575091 | 2023-08-21 20:39:25 +0200 | [diff] [blame] | 67 | help |
| 68 | Intel Elkhartlake support |
| 69 | |
| 70 | if SOC_INTEL_ELKHARTLAKE |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 71 | |
| 72 | config MAX_CPUS |
| 73 | int |
| 74 | default 4 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 75 | |
| 76 | config DCACHE_RAM_BASE |
| 77 | default 0xfef00000 |
| 78 | |
| 79 | config DCACHE_RAM_SIZE |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 80 | default 0xc0000 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 81 | help |
| 82 | The size of the cache-as-ram region required during bootblock |
| 83 | and/or romstage. |
| 84 | |
| 85 | config DCACHE_BSP_STACK_SIZE |
| 86 | hex |
Michał Żygowski | a5abcf2 | 2023-03-20 11:19:50 +0100 | [diff] [blame] | 87 | default 0x30400 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 88 | help |
| 89 | The amount of anticipated stack usage in CAR by bootblock and |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 90 | other stages. In the case of FSP_USES_CB_STACK default value will be |
| 91 | sum of FSP-M stack requirement (192KiB) and CB romstage stack requirement (~1KiB). |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 92 | |
| 93 | config FSP_TEMP_RAM_SIZE |
| 94 | hex |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 95 | default 0x40000 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 96 | help |
| 97 | The amount of anticipated heap usage in CAR by FSP. |
| 98 | Refer to Platform FSP integration guide document to know |
| 99 | the exact FSP requirement for Heap setup. |
| 100 | |
| 101 | config IFD_CHIPSET |
| 102 | string |
| 103 | default "ehl" |
| 104 | |
| 105 | config IED_REGION_SIZE |
| 106 | hex |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 107 | default 0x0 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 108 | |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 109 | config MAX_ROOT_PORTS |
| 110 | int |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 111 | default 7 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 112 | |
Lean Sheng Tan | c6c5443 | 2021-05-30 09:08:35 -0700 | [diff] [blame] | 113 | config MAX_SATA_PORTS |
| 114 | int |
| 115 | default 2 |
| 116 | |
Rizwan Qureshi | a979460 | 2021-04-08 20:31:47 +0530 | [diff] [blame] | 117 | config MAX_PCIE_CLOCK_SRC |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 118 | int |
| 119 | default 6 |
| 120 | |
| 121 | config SMM_TSEG_SIZE |
| 122 | hex |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 123 | default 0x1000000 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 124 | |
| 125 | config SMM_RESERVED_SIZE |
| 126 | hex |
| 127 | default 0x200000 |
| 128 | |
| 129 | config PCR_BASE_ADDRESS |
| 130 | hex |
| 131 | default 0xfd000000 |
| 132 | help |
| 133 | This option allows you to select MMIO Base Address of sideband bus. |
| 134 | |
Shelley Chen | 4e9bb33 | 2021-10-20 15:43:45 -0700 | [diff] [blame] | 135 | config ECAM_MMCONF_BASE_ADDRESS |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 136 | default 0xc0000000 |
| 137 | |
| 138 | config CPU_BCLK_MHZ |
| 139 | int |
| 140 | default 100 |
| 141 | |
| 142 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 143 | int |
| 144 | default 120 |
| 145 | |
Michael Niewöhner | dadcbfb | 2020-10-04 14:48:05 +0200 | [diff] [blame] | 146 | config CPU_XTAL_HZ |
| 147 | default 38400000 |
| 148 | |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 149 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 150 | int |
Werner Zeh | 14612f6 | 2022-11-07 07:50:51 +0100 | [diff] [blame] | 151 | default 100 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 152 | |
| 153 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 154 | int |
| 155 | default 3 |
| 156 | |
| 157 | config SOC_INTEL_I2C_DEV_MAX |
| 158 | int |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 159 | default 8 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 160 | |
| 161 | config SOC_INTEL_UART_DEV_MAX |
| 162 | int |
| 163 | default 3 |
| 164 | |
| 165 | config CONSOLE_UART_BASE_ADDRESS |
| 166 | hex |
Tan, Lean Sheng | ece0fe3 | 2020-09-03 07:32:48 -0700 | [diff] [blame] | 167 | default 0xfe042000 |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 168 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 169 | |
| 170 | # Clock divider parameters for 115200 baud rate |
Lean Sheng Tan | 471dca7 | 2021-07-19 01:57:16 -0700 | [diff] [blame] | 171 | # Baudrate = (UART source clock * M) /(N *16) |
Wonkyu Kim | 60d9b89 | 2022-10-10 23:01:38 -0700 | [diff] [blame] | 172 | # EHL UART source clock: 100MHz |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 173 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 174 | hex |
Lean Sheng Tan | 471dca7 | 2021-07-19 01:57:16 -0700 | [diff] [blame] | 175 | default 0x25a |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 176 | |
| 177 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 178 | hex |
Lean Sheng Tan | 471dca7 | 2021-07-19 01:57:16 -0700 | [diff] [blame] | 179 | default 0x7fff |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 180 | |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 181 | config VBOOT |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 182 | select VBOOT_MUST_REQUEST_DISPLAY |
| 183 | select VBOOT_STARTS_IN_BOOTBLOCK |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 184 | |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 185 | config CBFS_SIZE |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 186 | default 0x200000 |
| 187 | |
| 188 | config FSP_HEADER_PATH |
Lean Sheng Tan | 79fcadb | 2021-06-04 08:54:29 -0700 | [diff] [blame] | 189 | default "3rdparty/fsp/ElkhartLakeFspBinPkg/Include/" |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 190 | |
| 191 | config FSP_FD_PATH |
Lean Sheng Tan | 79fcadb | 2021-06-04 08:54:29 -0700 | [diff] [blame] | 192 | string |
| 193 | depends on FSP_USE_REPO |
Mario Scheithauer | 58b250c | 2024-03-19 08:04:09 +0100 | [diff] [blame] | 194 | default "3rdparty/fsp/ElkhartLakeFspBinPkg/FspBin/FSP.fd" |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 195 | |
Lean Sheng Tan | 5cd7579 | 2021-06-09 13:58:12 -0700 | [diff] [blame] | 196 | config PSE_ENABLE |
| 197 | bool "Enable PSE ARM controller" |
| 198 | help |
| 199 | Enable PSE IP. The PSE describes the integrated programmable |
| 200 | service engine that is designed together with x86 Atom cores |
| 201 | as an Asymmetric Multi-Processing (AMP) system. |
| 202 | |
| 203 | config ADD_PSE_IMAGE_TO_CBFS |
| 204 | bool "Add PSE Firmware to CBFS" |
| 205 | depends on PSE_ENABLE |
| 206 | default n |
| 207 | help |
| 208 | PSE FW binary is required to use PSE dedicated peripherals from |
| 209 | x86 subsystem. Once PSE is enabled, the FW will be loaded from |
| 210 | CBFS by FSP and executed. |
| 211 | |
| 212 | config PSE_IMAGE_FILE |
| 213 | string "PSE binary path and filename" |
| 214 | depends on ADD_PSE_IMAGE_TO_CBFS |
| 215 | help |
| 216 | The path and filename of the PSE binary. |
| 217 | |
| 218 | config PSE_FW_FILE_SIZE_KIB |
| 219 | hex "Memory buffer (KiB) for PSE FW image" |
| 220 | depends on ADD_PSE_IMAGE_TO_CBFS |
| 221 | default 0x200 |
| 222 | help |
| 223 | It is recommended to allocate at least 512 KiB for PSE FW. |
| 224 | |
| 225 | config PSE_CONFIG_BUFFER_SIZE_KIB |
| 226 | hex "Memory buffer (KiB) for PSE config data" |
| 227 | depends on ADD_PSE_IMAGE_TO_CBFS |
| 228 | default 0x100 |
| 229 | help |
| 230 | It is recommended to allocate at least 256 KiB for PSE config |
| 231 | data (FSP will append PSE config data to memory region right |
| 232 | after PSE FW memory region). |
| 233 | |
Mario Scheithauer | eda66c3 | 2022-04-26 13:50:52 +0200 | [diff] [blame] | 234 | config EHL_TSN_DRIVER |
| 235 | bool |
| 236 | default n |
| 237 | help |
| 238 | Enable TSN GbE driver to provide board specific settings in the GBE MAC. |
| 239 | As an example of a possible change, the MAC address could be adjusted. |
| 240 | |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 241 | config SOC_INTEL_ELKHARTLAKE_DEBUG_CONSENT |
| 242 | int "Debug Consent for EHL" |
| 243 | # USB DBC is more common for developers so make this default to 3 if |
| 244 | # SOC_INTEL_DEBUG_CONSENT=y |
| 245 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 246 | default 0 |
| 247 | help |
| 248 | This is to control debug interface on SOC. |
| 249 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 250 | PlatformDebugConsent in FspmUpd.h has the details. |
| 251 | |
| 252 | Desired platform debug type are |
| 253 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 254 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 255 | 6:Enable (2-wire DCI OOB), 7:Manual |
| 256 | |
| 257 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 258 | hex |
| 259 | default 0x1400 |
Werner Zeh | 0099832 | 2022-01-18 12:31:08 +0100 | [diff] [blame] | 260 | |
| 261 | config SOC_INTEL_ELKHARTLAKE_TCO_NO_REBOOT_EN |
| 262 | bool "Disable reset on second TCO expiration" |
| 263 | depends on SOC_INTEL_COMMON_BLOCK_TCO |
| 264 | default n |
| 265 | help |
| 266 | Setting this option will prevent a host reset if the TCO timer expires |
| 267 | for the second time. Since this feature is not exposed to the OS in the |
| 268 | standard TCO interface, this setting can be enabled on firmware level. |
| 269 | This might be useful depending on the TCO policy. |
Michał Żygowski | 14701a4 | 2023-03-22 11:07:22 +0100 | [diff] [blame] | 270 | |
| 271 | config DIMM_SPD_SIZE |
| 272 | default 512 |
| 273 | |
Tan, Lean Sheng | 05dfe31 | 2020-08-25 20:40:17 -0700 | [diff] [blame] | 274 | endif |