Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 1 | config SOC_INTEL_ALDERLAKE |
| 2 | bool |
| 3 | help |
| 4 | Intel Alderlake support |
| 5 | |
Varshit Pandya | b5df56f | 2021-01-18 09:44:35 +0530 | [diff] [blame] | 6 | config SOC_INTEL_ALDERLAKE_PCH_M |
| 7 | bool |
| 8 | help |
| 9 | Choose this option if you have PCH-M chipset. |
| 10 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 11 | if SOC_INTEL_ALDERLAKE |
| 12 | |
| 13 | config CPU_SPECIFIC_OPTIONS |
| 14 | def_bool y |
Angel Pons | a25eaff | 2020-09-23 15:37:15 +0200 | [diff] [blame] | 15 | select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 16 | select ARCH_ALL_STAGES_X86_32 |
Angel Pons | 8e035e3 | 2021-06-22 12:58:20 +0200 | [diff] [blame] | 17 | select ARCH_X86 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 18 | select BOOT_DEVICE_SUPPORTS_WRITES |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 19 | select CACHE_MRC_SETTINGS |
| 20 | select CPU_INTEL_COMMON |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 21 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
Michael Niewöhner | fe6070f | 2020-10-04 15:16:04 +0200 | [diff] [blame] | 22 | select CPU_SUPPORTS_PM_TIMER_EMULATION |
Eric Lai | 4ea47c3 | 2020-12-21 16:57:49 +0800 | [diff] [blame] | 23 | select DRIVERS_USB_ACPI |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 24 | select FSP_COMPRESS_FSP_S_LZ4 |
Subrata Banik | 683c95e | 2020-12-19 19:36:45 +0530 | [diff] [blame] | 25 | select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 26 | select FSP_M_XIP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 27 | select FSP_STATUS_GLOBAL_RESET_REQUIRED_3 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 28 | select GENERIC_GPIO_LIB |
| 29 | select HAVE_FSP_GOP |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 30 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 31 | select HAVE_SMI_HANDLER |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 32 | select IDT_IN_EVERY_STAGE |
| 33 | select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 34 | select INTEL_GMA_ACPI |
| 35 | select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
| 36 | select IOAPIC |
Subrata Banik | 0aed4e5 | 2020-10-12 17:27:31 +0530 | [diff] [blame] | 37 | select INTEL_TME |
Aamir Bohra | 30cca6c | 2021-02-04 20:57:51 +0530 | [diff] [blame] | 38 | select MP_SERVICES_PPI_V2 |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 39 | select MRC_SETTINGS_PROTECT |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 40 | select PARALLEL_MP_AP_WORK |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 41 | select MICROCODE_BLOB_UNDISCLOSED |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 42 | select PLATFORM_USES_FSP2_2 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 43 | select REG_SCRIPT |
| 44 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
| 45 | select PMC_LOW_POWER_MODE_PROGRAM |
Lean Sheng Tan | 508dc16 | 2021-06-16 01:32:22 -0700 | [diff] [blame] | 46 | select PMC_EPOC |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 47 | select SOC_INTEL_COMMON |
Subrata Banik | 0808992 | 2020-10-03 13:02:06 +0530 | [diff] [blame] | 48 | select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 49 | select SOC_INTEL_COMMON_BLOCK |
Subrata Banik | 0808992 | 2020-10-03 13:02:06 +0530 | [diff] [blame] | 50 | select SOC_INTEL_COMMON_BLOCK_ACPI |
ravindr1 | 7459657 | 2021-03-29 19:41:25 +0530 | [diff] [blame] | 51 | select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC |
Angel Pons | 98f672a | 2021-02-19 19:42:10 +0100 | [diff] [blame] | 52 | select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO |
Subrata Banik | 21974ab | 2020-10-31 21:40:43 +0530 | [diff] [blame] | 53 | select SOC_INTEL_COMMON_BLOCK_CAR |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 54 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 55 | select SOC_INTEL_COMMON_BLOCK_CPU |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 56 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
Angel Pons | a4cd911 | 2021-02-19 19:23:38 +0100 | [diff] [blame] | 57 | select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 58 | select SOC_INTEL_COMMON_BLOCK_DTT |
| 59 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 60 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 61 | select SOC_INTEL_COMMON_BLOCK_HDA |
Tim Wawrzynczak | 0c057c2 | 2021-03-04 10:56:28 -0700 | [diff] [blame] | 62 | select SOC_INTEL_COMMON_BLOCK_IPU |
Tim Wawrzynczak | 43607e4 | 2021-05-18 09:04:42 -0600 | [diff] [blame] | 63 | select SOC_INTEL_COMMON_BLOCK_IRQ |
Furquan Shaikh | a1c247b | 2020-12-31 22:50:14 -0800 | [diff] [blame] | 64 | select SOC_INTEL_COMMON_BLOCK_MEMINIT |
Rizwan Qureshi | 307be99 | 2021-04-08 20:35:29 +0530 | [diff] [blame] | 65 | select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3 |
Sumeet R Pawnikar | 77298c6 | 2021-03-10 21:09:37 +0530 | [diff] [blame] | 66 | select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 67 | select SOC_INTEL_COMMON_BLOCK_SA |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 68 | select SOC_INTEL_COMMON_BLOCK_SMM |
| 69 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
Eric Lai | 4ea47c3 | 2020-12-21 16:57:49 +0800 | [diff] [blame] | 70 | select SOC_INTEL_COMMON_BLOCK_USB4 |
| 71 | select SOC_INTEL_COMMON_BLOCK_USB4_PCIE |
| 72 | select SOC_INTEL_COMMON_BLOCK_USB4_XHCI |
Tim Wawrzynczak | 242da79 | 2020-11-10 10:13:54 -0700 | [diff] [blame] | 73 | select SOC_INTEL_COMMON_BLOCK_XHCI |
| 74 | select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 75 | select SOC_INTEL_COMMON_FSP_RESET |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 76 | select SOC_INTEL_COMMON_PCH_BASE |
| 77 | select SOC_INTEL_COMMON_RESET |
Tim Wawrzynczak | c0e82e7 | 2021-06-17 12:42:35 -0600 | [diff] [blame] | 78 | select SOC_INTEL_CSE_SET_EOP |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 79 | select SSE2 |
| 80 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 81 | select TSC_MONOTONIC_TIMER |
| 82 | select UDELAY_TSC |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 83 | select UDK_202005_BINDING |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 84 | select DISPLAY_FSP_VERSION_INFO |
| 85 | select HECI_DISABLE_USING_SMM |
| 86 | |
| 87 | config MAX_CPUS |
| 88 | int |
| 89 | default 24 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 90 | |
| 91 | config DCACHE_RAM_BASE |
| 92 | default 0xfef00000 |
| 93 | |
| 94 | config DCACHE_RAM_SIZE |
Subrata Banik | 191bd82 | 2020-11-21 19:30:57 +0530 | [diff] [blame] | 95 | default 0xc0000 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 96 | help |
| 97 | The size of the cache-as-ram region required during bootblock |
| 98 | and/or romstage. |
| 99 | |
| 100 | config DCACHE_BSP_STACK_SIZE |
| 101 | hex |
Subrata Banik | 191bd82 | 2020-11-21 19:30:57 +0530 | [diff] [blame] | 102 | default 0x80400 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 103 | help |
| 104 | The amount of anticipated stack usage in CAR by bootblock and |
| 105 | other stages. In the case of FSP_USES_CB_STACK default value will be |
Subrata Banik | 191bd82 | 2020-11-21 19:30:57 +0530 | [diff] [blame] | 106 | sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 107 | (~1KiB). |
| 108 | |
| 109 | config FSP_TEMP_RAM_SIZE |
| 110 | hex |
| 111 | default 0x20000 |
| 112 | help |
| 113 | The amount of anticipated heap usage in CAR by FSP. |
| 114 | Refer to Platform FSP integration guide document to know |
| 115 | the exact FSP requirement for Heap setup. |
| 116 | |
Tim Wawrzynczak | 092813a | 2020-11-24 13:48:56 -0700 | [diff] [blame] | 117 | config CHIPSET_DEVICETREE |
| 118 | string |
| 119 | default "soc/intel/alderlake/chipset.cb" |
| 120 | |
Subrata Banik | 683c95e | 2020-12-19 19:36:45 +0530 | [diff] [blame] | 121 | config EXT_BIOS_WIN_BASE |
| 122 | default 0xf8000000 |
| 123 | |
| 124 | config EXT_BIOS_WIN_SIZE |
| 125 | default 0x2000000 |
| 126 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 127 | config IFD_CHIPSET |
| 128 | string |
| 129 | default "adl" |
| 130 | |
| 131 | config IED_REGION_SIZE |
| 132 | hex |
| 133 | default 0x400000 |
| 134 | |
| 135 | config HEAP_SIZE |
| 136 | hex |
| 137 | default 0x10000 |
| 138 | |
Tim Wawrzynczak | 8d11cdc | 2021-03-12 12:46:02 -0700 | [diff] [blame] | 139 | # Intel recommends reserving the following resources per PCIe TBT root port, |
| 140 | # from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5 |
| 141 | # - 42 buses |
| 142 | # - 194 MiB Non-prefetchable memory |
| 143 | # - 448 MiB Prefetchable memory |
| 144 | config ADL_ENABLE_USB4_PCIE_RESOURCES |
| 145 | def_bool n |
| 146 | select PCIEXP_HOTPLUG |
| 147 | |
| 148 | if ADL_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 # ADL_ENABLE_USB4_PCIE_RESOURCES |
| 163 | |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 164 | config MAX_PCH_ROOT_PORTS |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 165 | int |
Varshit Pandya | b5df56f | 2021-01-18 09:44:35 +0530 | [diff] [blame] | 166 | default 10 if SOC_INTEL_ALDERLAKE_PCH_M |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 167 | default 12 |
| 168 | |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 169 | config MAX_CPU_ROOT_PORTS |
| 170 | int |
Varshit Pandya | b5df56f | 2021-01-18 09:44:35 +0530 | [diff] [blame] | 171 | default 1 if SOC_INTEL_ALDERLAKE_PCH_M |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 172 | default 3 |
| 173 | |
| 174 | config MAX_ROOT_PORTS |
| 175 | int |
| 176 | default MAX_PCH_ROOT_PORTS |
| 177 | |
Subrata Banik | cffc938 | 2021-01-29 18:41:35 +0530 | [diff] [blame] | 178 | config MAX_PCIE_CLOCK_SRC |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 179 | int |
Subrata Banik | cffc938 | 2021-01-29 18:41:35 +0530 | [diff] [blame] | 180 | default 6 if SOC_INTEL_ALDERLAKE_PCH_M |
| 181 | default 7 |
| 182 | |
| 183 | config MAX_PCIE_CLOCK_REQ |
| 184 | int |
| 185 | default 6 if SOC_INTEL_ALDERLAKE_PCH_M |
| 186 | default 10 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 187 | |
| 188 | config SMM_TSEG_SIZE |
| 189 | hex |
| 190 | default 0x800000 |
| 191 | |
| 192 | config SMM_RESERVED_SIZE |
| 193 | hex |
| 194 | default 0x200000 |
| 195 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 196 | config PCR_BASE_ADDRESS |
| 197 | hex |
| 198 | default 0xfd000000 |
| 199 | help |
| 200 | This option allows you to select MMIO Base Address of sideband bus. |
| 201 | |
| 202 | config MMCONF_BASE_ADDRESS |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 203 | default 0xc0000000 |
| 204 | |
| 205 | config CPU_BCLK_MHZ |
| 206 | int |
| 207 | default 100 |
| 208 | |
| 209 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 210 | int |
| 211 | default 120 |
| 212 | |
Michael Niewöhner | dadcbfb | 2020-10-04 14:48:05 +0200 | [diff] [blame] | 213 | config CPU_XTAL_HZ |
| 214 | default 38400000 |
| 215 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 216 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 217 | int |
| 218 | default 133 |
| 219 | |
| 220 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 221 | int |
| 222 | default 7 |
| 223 | |
| 224 | config SOC_INTEL_I2C_DEV_MAX |
| 225 | int |
| 226 | default 6 |
| 227 | |
| 228 | config SOC_INTEL_UART_DEV_MAX |
| 229 | int |
| 230 | default 7 |
| 231 | |
| 232 | config CONSOLE_UART_BASE_ADDRESS |
| 233 | hex |
Bora Guvendik | 2a70419 | 2020-11-16 11:23:48 -0800 | [diff] [blame] | 234 | default 0xfe03e000 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 235 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 236 | |
Maulik V Vaghela | 996bab4 | 2021-02-05 12:03:19 +0530 | [diff] [blame] | 237 | config VBT_DATA_SIZE_KB |
| 238 | int |
| 239 | default 9 |
| 240 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 241 | # Clock divider parameters for 115200 baud rate |
| 242 | # Baudrate = (UART source clcok * M) /(N *16) |
| 243 | # ADL UART source clock: 120MHz |
| 244 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 245 | hex |
| 246 | default 0x25a |
| 247 | |
| 248 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 249 | hex |
| 250 | default 0x7fff |
| 251 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 252 | config VBOOT |
| 253 | select VBOOT_SEPARATE_VERSTAGE |
| 254 | select VBOOT_MUST_REQUEST_DISPLAY |
| 255 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 256 | select VBOOT_VBNV_CMOS |
| 257 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 258 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 259 | config CBFS_SIZE |
| 260 | hex |
| 261 | default 0x200000 |
| 262 | |
| 263 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 264 | hex |
| 265 | default 0x1400 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 266 | |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 267 | config FSP_HEADER_PATH |
| 268 | string "Location of FSP headers" |
| 269 | default "src/vendorcode/intel/fsp/fsp2_0/alderlake/" |
| 270 | |
| 271 | config FSP_FD_PATH |
| 272 | string |
| 273 | depends on FSP_USE_REPO |
| 274 | default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd" |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 275 | |
| 276 | config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT |
| 277 | int "Debug Consent for ADL" |
| 278 | # USB DBC is more common for developers so make this default to 3 if |
| 279 | # SOC_INTEL_DEBUG_CONSENT=y |
| 280 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 281 | default 0 |
| 282 | help |
| 283 | This is to control debug interface on SOC. |
| 284 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 285 | PlatformDebugConsent in FspmUpd.h has the details. |
| 286 | |
| 287 | Desired platform debug type are |
| 288 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 289 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 290 | 6:Enable (2-wire DCI OOB), 7:Manual |
Furquan Shaikh | a1c247b | 2020-12-31 22:50:14 -0800 | [diff] [blame] | 291 | |
| 292 | config DATA_BUS_WIDTH |
| 293 | int |
| 294 | default 128 |
| 295 | |
| 296 | config DIMMS_PER_CHANNEL |
| 297 | int |
| 298 | default 2 |
| 299 | |
| 300 | config MRC_CHANNEL_WIDTH |
| 301 | int |
| 302 | default 16 |
| 303 | |
Francois Toguo | cea4f92 | 2021-04-16 21:20:39 -0700 | [diff] [blame] | 304 | config SOC_INTEL_CRASHLOG |
| 305 | def_bool n |
| 306 | select SOC_INTEL_COMMON_BLOCK_CRASHLOG |
| 307 | select ACPI_BERT |
| 308 | help |
| 309 | Enables CrashLog. |
| 310 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 311 | endif |