Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 1 | config SOC_INTEL_METEORLAKE |
| 2 | bool |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 3 | help |
| 4 | Intel Meteorlake support |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 5 | |
| 6 | if SOC_INTEL_METEORLAKE |
| 7 | |
| 8 | config CPU_SPECIFIC_OPTIONS |
| 9 | def_bool y |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 10 | select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 11 | select ARCH_X86 |
| 12 | select BOOT_DEVICE_SUPPORTS_WRITES |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 13 | select CACHE_MRC_SETTINGS |
| 14 | select CPU_INTEL_COMMON |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 15 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
| 16 | select CPU_SUPPORTS_INTEL_TME |
| 17 | select CPU_SUPPORTS_PM_TIMER_EMULATION |
Subrata Banik | e96993d | 2022-07-09 22:06:45 +0000 | [diff] [blame] | 18 | select DEFAULT_X2APIC_LATE_WORKAROUND |
Subrata Banik | e88bee7 | 2022-06-27 16:51:44 +0530 | [diff] [blame] | 19 | select DISPLAY_FSP_VERSION_INFO |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 20 | select DRIVERS_INTEL_USB4_RETIMER |
Ravi Sarawadi | e02fd83 | 2022-05-08 00:27:31 -0700 | [diff] [blame] | 21 | select DRIVERS_USB_ACPI |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 22 | select FSP_COMPRESS_FSP_S_LZ4 |
| 23 | select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 24 | select FSP_M_XIP |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 25 | select FSP_STATUS_GLOBAL_RESET_REQUIRED_3 |
Subrata Banik | e88bee7 | 2022-06-27 16:51:44 +0530 | [diff] [blame] | 26 | select FSP_USES_CB_DEBUG_EVENT_HANDLER |
| 27 | select FSPS_HAS_ARCH_UPD |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 28 | select GENERIC_GPIO_LIB |
Subrata Banik | e88bee7 | 2022-06-27 16:51:44 +0530 | [diff] [blame] | 29 | select HAVE_DEBUG_RAM_SETUP |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 30 | select HAVE_FSP_GOP |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 31 | select HAVE_SMI_HANDLER |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 32 | select IDT_IN_EVERY_STAGE |
| 33 | select INTEL_CAR_NEM |
Subrata Banik | 0d6d228 | 2022-07-09 22:17:02 +0000 | [diff] [blame] | 34 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 35 | select INTEL_GMA_ACPI |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 36 | select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 37 | select INTEL_TME |
Subrata Banik | 0d6d228 | 2022-07-09 22:17:02 +0000 | [diff] [blame] | 38 | select IOAPIC |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 39 | select MICROCODE_BLOB_UNDISCLOSED |
Subrata Banik | 0d6d228 | 2022-07-09 22:17:02 +0000 | [diff] [blame] | 40 | select MRC_SETTINGS_PROTECT |
Subrata Banik | 0d6d228 | 2022-07-09 22:17:02 +0000 | [diff] [blame] | 41 | select PARALLEL_MP_AP_WORK |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 42 | select PLATFORM_USES_FSP2_3 |
| 43 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 44 | select SOC_INTEL_COMMON |
Ravi Sarawadi | e02fd83 | 2022-05-08 00:27:31 -0700 | [diff] [blame] | 45 | select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 46 | select SOC_INTEL_COMMON_BLOCK |
Ravi Sarawadi | e02fd83 | 2022-05-08 00:27:31 -0700 | [diff] [blame] | 47 | select SOC_INTEL_COMMON_BLOCK_ACPI |
| 48 | select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC |
| 49 | select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO |
| 50 | select SOC_INTEL_COMMON_BLOCK_ACPI_PEP |
| 51 | select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 52 | select SOC_INTEL_COMMON_BLOCK_CAR |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 53 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 54 | select SOC_INTEL_COMMON_BLOCK_CPU |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 55 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
| 56 | select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE |
| 57 | select SOC_INTEL_COMMON_BLOCK_DTT |
| 58 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
Subrata Banik | bae1de1 | 2022-07-21 13:43:37 +0000 | [diff] [blame] | 59 | select SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_PCR |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 60 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 61 | select SOC_INTEL_COMMON_BLOCK_HDA |
| 62 | select SOC_INTEL_COMMON_BLOCK_HECI1_DISABLE_USING_PMC_IPC if DISABLE_HECI1_AT_PRE_BOOT |
| 63 | select SOC_INTEL_COMMON_BLOCK_IPU |
| 64 | select SOC_INTEL_COMMON_BLOCK_IOE_P2SB |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 65 | select SOC_INTEL_COMMON_BLOCK_MEMINIT |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 66 | select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3 |
| 67 | select SOC_INTEL_COMMON_BLOCK_PMC_EPOC |
| 68 | select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 69 | select SOC_INTEL_COMMON_BLOCK_SA |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 70 | select SOC_INTEL_COMMON_BLOCK_SMM |
| 71 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
| 72 | select SOC_INTEL_COMMON_BLOCK_TCSS |
| 73 | select SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC |
| 74 | select SOC_INTEL_COMMON_BLOCK_USB4 |
| 75 | select SOC_INTEL_COMMON_BLOCK_USB4_PCIE |
| 76 | select SOC_INTEL_COMMON_BLOCK_USB4_XHCI |
| 77 | select SOC_INTEL_COMMON_BLOCK_XHCI |
| 78 | select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG |
| 79 | select SOC_INTEL_COMMON_BASECODE |
| 80 | select SOC_INTEL_COMMON_FSP_RESET |
Angel Pons | eb90c51 | 2022-07-18 14:41:24 +0200 | [diff] [blame] | 81 | select SOC_INTEL_COMMON_PCH_CLIENT |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 82 | select SOC_INTEL_COMMON_RESET |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 83 | select SOC_INTEL_COMMON_BLOCK_IOC |
| 84 | select SOC_INTEL_CSE_SET_EOP |
| 85 | select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 86 | select SSE2 |
| 87 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 88 | select TSC_MONOTONIC_TIMER |
| 89 | select UDELAY_TSC |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 90 | select UDK_202111_BINDING |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 91 | |
| 92 | config MAX_CPUS |
| 93 | int |
| 94 | default 22 |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 95 | |
| 96 | config DCACHE_RAM_BASE |
| 97 | default 0xfef00000 |
| 98 | |
| 99 | config DCACHE_RAM_SIZE |
| 100 | default 0xc0000 |
| 101 | help |
| 102 | The size of the cache-as-ram region required during bootblock |
| 103 | and/or romstage. |
| 104 | |
| 105 | config DCACHE_BSP_STACK_SIZE |
| 106 | hex |
| 107 | default 0x80400 |
| 108 | help |
| 109 | The amount of anticipated stack usage in CAR by bootblock and |
| 110 | other stages. In the case of FSP_USES_CB_STACK default value will be |
| 111 | sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement |
| 112 | (~1KiB). |
| 113 | |
| 114 | config FSP_TEMP_RAM_SIZE |
| 115 | hex |
| 116 | default 0x20000 |
| 117 | help |
| 118 | The amount of anticipated heap usage in CAR by FSP. |
| 119 | Refer to Platform FSP integration guide document to know |
| 120 | the exact FSP requirement for Heap setup. |
| 121 | |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 122 | config CHIPSET_DEVICETREE |
| 123 | string |
| 124 | default "soc/intel/meteorlake/chipset.cb" |
| 125 | |
| 126 | config EXT_BIOS_WIN_BASE |
| 127 | default 0xf8000000 |
| 128 | |
| 129 | config EXT_BIOS_WIN_SIZE |
| 130 | default 0x2000000 |
| 131 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 132 | config IFD_CHIPSET |
| 133 | string |
Subrata Banik | d624e74 | 2022-07-06 06:45:57 +0000 | [diff] [blame] | 134 | default "mtl" |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 135 | |
| 136 | config IED_REGION_SIZE |
| 137 | hex |
| 138 | default 0x400000 |
| 139 | |
| 140 | config HEAP_SIZE |
| 141 | hex |
| 142 | default 0x10000 |
| 143 | |
Subrata Banik | a33bcb9 | 2022-07-06 07:07:26 +0000 | [diff] [blame] | 144 | # Intel recommends reserving the PCIe TBT root port resources as below: |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 145 | # - 42 buses |
| 146 | # - 194 MiB Non-prefetchable memory |
| 147 | # - 448 MiB Prefetchable memory |
| 148 | if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES |
| 149 | |
| 150 | config PCIEXP_HOTPLUG_BUSES |
| 151 | int |
| 152 | default 42 |
| 153 | |
| 154 | config PCIEXP_HOTPLUG_MEM |
| 155 | hex |
| 156 | default 0xc200000 |
| 157 | |
| 158 | config PCIEXP_HOTPLUG_PREFETCH_MEM |
| 159 | hex |
| 160 | default 0x1c000000 |
| 161 | |
| 162 | endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES |
| 163 | |
| 164 | config MAX_TBT_ROOT_PORTS |
| 165 | int |
| 166 | default 4 |
| 167 | |
| 168 | config MAX_ROOT_PORTS |
| 169 | int |
| 170 | default 12 |
| 171 | |
| 172 | config MAX_PCIE_CLOCK_SRC |
| 173 | int |
| 174 | default 9 |
| 175 | |
| 176 | config SMM_TSEG_SIZE |
| 177 | hex |
| 178 | default 0x800000 |
| 179 | |
| 180 | config SMM_RESERVED_SIZE |
| 181 | hex |
| 182 | default 0x200000 |
| 183 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 184 | config PCR_BASE_ADDRESS |
| 185 | hex |
| 186 | default 0xe0000000 |
| 187 | help |
| 188 | This option allows you to select MMIO Base Address of sideband bus. |
| 189 | |
| 190 | config ECAM_MMCONF_BASE_ADDRESS |
| 191 | default 0xc0000000 |
| 192 | |
| 193 | config CPU_BCLK_MHZ |
| 194 | int |
| 195 | default 100 |
| 196 | |
| 197 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 198 | int |
| 199 | default 120 |
| 200 | |
| 201 | config CPU_XTAL_HZ |
| 202 | default 38400000 |
| 203 | |
| 204 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 205 | int |
| 206 | default 133 |
| 207 | |
| 208 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 209 | int |
Subrata Banik | e54a8fd | 2022-07-06 12:54:48 +0000 | [diff] [blame] | 210 | default 3 |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 211 | |
| 212 | config SOC_INTEL_I2C_DEV_MAX |
| 213 | int |
| 214 | default 6 |
| 215 | |
| 216 | config SOC_INTEL_UART_DEV_MAX |
| 217 | int |
| 218 | default 3 |
| 219 | |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 220 | config SOC_INTEL_USB2_DEV_MAX |
| 221 | int |
| 222 | default 10 |
| 223 | |
| 224 | config SOC_INTEL_USB3_DEV_MAX |
| 225 | int |
| 226 | default 2 |
| 227 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 228 | config CONSOLE_UART_BASE_ADDRESS |
| 229 | hex |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 230 | default 0xfe02c000 |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 231 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 232 | |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 233 | config VBT_DATA_SIZE_KB |
| 234 | int |
| 235 | default 9 |
| 236 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 237 | # Clock divider parameters for 115200 baud rate |
Angel Pons | 054ff5e | 2022-06-26 10:19:53 +0200 | [diff] [blame] | 238 | # Baudrate = (UART source clock * M) /(N *16) |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 239 | # MTL UART source clock: 120MHz |
| 240 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 241 | hex |
| 242 | default 0x25a |
| 243 | |
| 244 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 245 | hex |
| 246 | default 0x7fff |
| 247 | |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 248 | config VBOOT |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 249 | select VBOOT_SEPARATE_VERSTAGE |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 250 | select VBOOT_MUST_REQUEST_DISPLAY |
| 251 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 252 | select VBOOT_VBNV_CMOS |
| 253 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 254 | select VBOOT_X86_SHA256_ACCELERATION |
| 255 | |
Subrata Banik | febd3d7 | 2022-05-30 13:59:25 +0530 | [diff] [blame] | 256 | # Default hash block size is 1KiB. Increasing it to 4KiB to improve |
| 257 | # hashing time as well as read time. |
| 258 | config VBOOT_HASH_BLOCK_SIZE |
| 259 | hex |
| 260 | default 0x1000 |
| 261 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 262 | config CBFS_SIZE |
| 263 | hex |
| 264 | default 0x200000 |
| 265 | |
| 266 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 267 | hex |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 268 | default 0x1400 |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 269 | |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 270 | config FSP_HEADER_PATH |
| 271 | string "Location of FSP headers" |
| 272 | default "src/vendorcode/intel/fsp/fsp2_0/meteorlake/" |
| 273 | |
| 274 | config FSP_FD_PATH |
| 275 | string |
| 276 | depends on FSP_USE_REPO |
| 277 | default "3rdparty/fsp/MeteorLakeFspBinPkg/Fsp.fd" |
| 278 | |
| 279 | config SOC_INTEL_METEORLAKE_DEBUG_CONSENT |
| 280 | int "Debug Consent for MTL" |
| 281 | # USB DBC is more common for developers so make this default to 3 if |
| 282 | # SOC_INTEL_DEBUG_CONSENT=y |
Subrata Banik | 653e157 | 2022-07-20 12:26:24 +0000 | [diff] [blame] | 283 | default 3 if SOC_INTEL_DEBUG_CONSENT |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 284 | default 0 |
| 285 | help |
| 286 | This is to control debug interface on SOC. |
| 287 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 288 | PlatformDebugConsent in FspmUpd.h has the details. |
| 289 | |
| 290 | Desired platform debug type are |
| 291 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 292 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 293 | 6:Enable (2-wire DCI OOB), 7:Manual |
| 294 | |
| 295 | config DATA_BUS_WIDTH |
| 296 | int |
| 297 | default 128 |
| 298 | |
| 299 | config DIMMS_PER_CHANNEL |
| 300 | int |
| 301 | default 2 |
| 302 | |
| 303 | config MRC_CHANNEL_WIDTH |
| 304 | int |
| 305 | default 16 |
| 306 | |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 307 | config SOC_INTEL_GFX_FRAMEBUFFER_OFFSET |
| 308 | hex |
| 309 | default 0x800000 |
| 310 | |
Subrata Banik | 7c4789d | 2022-07-09 22:41:48 +0000 | [diff] [blame] | 311 | choice |
| 312 | prompt "Multiprocessor (MP) Initialization configuration to use" |
| 313 | default MTL_USE_FSP_MP_INIT |
| 314 | |
| 315 | config MTL_USE_FSP_MP_INIT |
| 316 | bool "Use FSP MP init" |
| 317 | select MP_SERVICES_PPI_V2 |
| 318 | help |
| 319 | Upon selection, coreboot brings APs from reset and the FSP runs feature programming. |
| 320 | |
| 321 | config MTL_USE_COREBOOT_MP_INIT |
| 322 | bool "Use coreboot MP init" |
| 323 | select RELOAD_MICROCODE_PATCH |
| 324 | help |
| 325 | Upon selection, coreboot performs MP Init. |
| 326 | |
| 327 | endchoice |
| 328 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 329 | endif |