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 | e0ddbbb | 2022-07-03 14:58:18 +0000 | [diff] [blame] | 18 | select DEFAULT_X2APIC |
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 |
| 31 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
| 32 | select HAVE_SMI_HANDLER |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 33 | select IDT_IN_EVERY_STAGE |
| 34 | select INTEL_CAR_NEM |
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 |
| 37 | select IOAPIC |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 38 | select INTEL_TME |
| 39 | select USE_INTEL_FSP_MP_INIT |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 40 | select MRC_SETTINGS_PROTECT |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 41 | select PARALLEL_MP_AP_WORK |
| 42 | select MICROCODE_BLOB_UNDISCLOSED |
| 43 | select PLATFORM_USES_FSP2_3 |
| 44 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 45 | select SOC_INTEL_COMMON |
Ravi Sarawadi | e02fd83 | 2022-05-08 00:27:31 -0700 | [diff] [blame] | 46 | select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 47 | select SOC_INTEL_COMMON_BLOCK |
Ravi Sarawadi | e02fd83 | 2022-05-08 00:27:31 -0700 | [diff] [blame] | 48 | select SOC_INTEL_COMMON_BLOCK_ACPI |
| 49 | select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC |
| 50 | select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO |
| 51 | select SOC_INTEL_COMMON_BLOCK_ACPI_PEP |
| 52 | select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 53 | select SOC_INTEL_COMMON_BLOCK_CAR |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 54 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 55 | select SOC_INTEL_COMMON_BLOCK_CPU |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 56 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
| 57 | select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE |
| 58 | select SOC_INTEL_COMMON_BLOCK_DTT |
| 59 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
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 |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 81 | select SOC_INTEL_COMMON_PCH_BASE |
| 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 |
| 91 | select DISPLAY_FSP_VERSION_INFO |
| 92 | |
| 93 | config MAX_CPUS |
| 94 | int |
| 95 | default 22 |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 96 | |
| 97 | config DCACHE_RAM_BASE |
| 98 | default 0xfef00000 |
| 99 | |
| 100 | config DCACHE_RAM_SIZE |
| 101 | default 0xc0000 |
| 102 | help |
| 103 | The size of the cache-as-ram region required during bootblock |
| 104 | and/or romstage. |
| 105 | |
| 106 | config DCACHE_BSP_STACK_SIZE |
| 107 | hex |
| 108 | default 0x80400 |
| 109 | help |
| 110 | The amount of anticipated stack usage in CAR by bootblock and |
| 111 | other stages. In the case of FSP_USES_CB_STACK default value will be |
| 112 | sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement |
| 113 | (~1KiB). |
| 114 | |
| 115 | config FSP_TEMP_RAM_SIZE |
| 116 | hex |
| 117 | default 0x20000 |
| 118 | help |
| 119 | The amount of anticipated heap usage in CAR by FSP. |
| 120 | Refer to Platform FSP integration guide document to know |
| 121 | the exact FSP requirement for Heap setup. |
| 122 | |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 123 | config CHIPSET_DEVICETREE |
| 124 | string |
| 125 | default "soc/intel/meteorlake/chipset.cb" |
| 126 | |
| 127 | config EXT_BIOS_WIN_BASE |
| 128 | default 0xf8000000 |
| 129 | |
| 130 | config EXT_BIOS_WIN_SIZE |
| 131 | default 0x2000000 |
| 132 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 133 | config IFD_CHIPSET |
| 134 | string |
Subrata Banik | d624e74 | 2022-07-06 06:45:57 +0000 | [diff] [blame] | 135 | default "mtl" |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 136 | |
| 137 | config IED_REGION_SIZE |
| 138 | hex |
| 139 | default 0x400000 |
| 140 | |
| 141 | config HEAP_SIZE |
| 142 | hex |
| 143 | default 0x10000 |
| 144 | |
Subrata Banik | a33bcb9 | 2022-07-06 07:07:26 +0000 | [diff] [blame] | 145 | # Intel recommends reserving the PCIe TBT root port resources as below: |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 146 | # - 42 buses |
| 147 | # - 194 MiB Non-prefetchable memory |
| 148 | # - 448 MiB Prefetchable memory |
| 149 | if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES |
| 150 | |
| 151 | config PCIEXP_HOTPLUG_BUSES |
| 152 | int |
| 153 | default 42 |
| 154 | |
| 155 | config PCIEXP_HOTPLUG_MEM |
| 156 | hex |
| 157 | default 0xc200000 |
| 158 | |
| 159 | config PCIEXP_HOTPLUG_PREFETCH_MEM |
| 160 | hex |
| 161 | default 0x1c000000 |
| 162 | |
| 163 | endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES |
| 164 | |
| 165 | config MAX_TBT_ROOT_PORTS |
| 166 | int |
| 167 | default 4 |
| 168 | |
| 169 | config MAX_ROOT_PORTS |
| 170 | int |
| 171 | default 12 |
| 172 | |
| 173 | config MAX_PCIE_CLOCK_SRC |
| 174 | int |
| 175 | default 9 |
| 176 | |
| 177 | config SMM_TSEG_SIZE |
| 178 | hex |
| 179 | default 0x800000 |
| 180 | |
| 181 | config SMM_RESERVED_SIZE |
| 182 | hex |
| 183 | default 0x200000 |
| 184 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 185 | config PCR_BASE_ADDRESS |
| 186 | hex |
| 187 | default 0xe0000000 |
| 188 | help |
| 189 | This option allows you to select MMIO Base Address of sideband bus. |
| 190 | |
| 191 | config ECAM_MMCONF_BASE_ADDRESS |
| 192 | default 0xc0000000 |
| 193 | |
| 194 | config CPU_BCLK_MHZ |
| 195 | int |
| 196 | default 100 |
| 197 | |
| 198 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 199 | int |
| 200 | default 120 |
| 201 | |
| 202 | config CPU_XTAL_HZ |
| 203 | default 38400000 |
| 204 | |
| 205 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 206 | int |
| 207 | default 133 |
| 208 | |
| 209 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 210 | int |
| 211 | default 2 |
| 212 | |
| 213 | config SOC_INTEL_I2C_DEV_MAX |
| 214 | int |
| 215 | default 6 |
| 216 | |
| 217 | config SOC_INTEL_UART_DEV_MAX |
| 218 | int |
| 219 | default 3 |
| 220 | |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 221 | config SOC_INTEL_USB2_DEV_MAX |
| 222 | int |
| 223 | default 10 |
| 224 | |
| 225 | config SOC_INTEL_USB3_DEV_MAX |
| 226 | int |
| 227 | default 2 |
| 228 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 229 | config CONSOLE_UART_BASE_ADDRESS |
| 230 | hex |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 231 | default 0xfe02c000 |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 232 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 233 | |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 234 | config VBT_DATA_SIZE_KB |
| 235 | int |
| 236 | default 9 |
| 237 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 238 | # Clock divider parameters for 115200 baud rate |
Angel Pons | 054ff5e | 2022-06-26 10:19:53 +0200 | [diff] [blame] | 239 | # Baudrate = (UART source clock * M) /(N *16) |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 240 | # MTL UART source clock: 120MHz |
| 241 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 242 | hex |
| 243 | default 0x25a |
| 244 | |
| 245 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 246 | hex |
| 247 | default 0x7fff |
| 248 | |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 249 | config VBOOT |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 250 | select VBOOT_SEPARATE_VERSTAGE |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 251 | select VBOOT_MUST_REQUEST_DISPLAY |
| 252 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 253 | select VBOOT_VBNV_CMOS |
| 254 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 255 | select VBOOT_X86_SHA256_ACCELERATION |
| 256 | |
Subrata Banik | febd3d7 | 2022-05-30 13:59:25 +0530 | [diff] [blame] | 257 | # Default hash block size is 1KiB. Increasing it to 4KiB to improve |
| 258 | # hashing time as well as read time. |
| 259 | config VBOOT_HASH_BLOCK_SIZE |
| 260 | hex |
| 261 | default 0x1000 |
| 262 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 263 | config CBFS_SIZE |
| 264 | hex |
| 265 | default 0x200000 |
| 266 | |
| 267 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 268 | hex |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 269 | default 0x1400 |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 270 | |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 271 | config FSP_HEADER_PATH |
| 272 | string "Location of FSP headers" |
| 273 | default "src/vendorcode/intel/fsp/fsp2_0/meteorlake/" |
| 274 | |
| 275 | config FSP_FD_PATH |
| 276 | string |
| 277 | depends on FSP_USE_REPO |
| 278 | default "3rdparty/fsp/MeteorLakeFspBinPkg/Fsp.fd" |
| 279 | |
| 280 | config SOC_INTEL_METEORLAKE_DEBUG_CONSENT |
| 281 | int "Debug Consent for MTL" |
| 282 | # USB DBC is more common for developers so make this default to 3 if |
| 283 | # SOC_INTEL_DEBUG_CONSENT=y |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 284 | default 5 if SOC_INTEL_DEBUG_CONSENT |
Ravi Sarawadi | 8069b5d | 2022-04-10 23:36:52 -0700 | [diff] [blame] | 285 | default 0 |
| 286 | help |
| 287 | This is to control debug interface on SOC. |
| 288 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 289 | PlatformDebugConsent in FspmUpd.h has the details. |
| 290 | |
| 291 | Desired platform debug type are |
| 292 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 293 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 294 | 6:Enable (2-wire DCI OOB), 7:Manual |
| 295 | |
| 296 | config DATA_BUS_WIDTH |
| 297 | int |
| 298 | default 128 |
| 299 | |
| 300 | config DIMMS_PER_CHANNEL |
| 301 | int |
| 302 | default 2 |
| 303 | |
| 304 | config MRC_CHANNEL_WIDTH |
| 305 | int |
| 306 | default 16 |
| 307 | |
Ravi Sarawadi | 91ffac8 | 2022-05-07 16:37:09 -0700 | [diff] [blame] | 308 | config SOC_INTEL_GFX_FRAMEBUFFER_OFFSET |
| 309 | hex |
| 310 | default 0x800000 |
| 311 | |
Ravi Sarawadi | b8224f4 | 2022-04-10 23:31:24 -0700 | [diff] [blame] | 312 | endif |