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 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 78 | select SSE2 |
| 79 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 80 | select TSC_MONOTONIC_TIMER |
| 81 | select UDELAY_TSC |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 82 | select UDK_202005_BINDING |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 83 | select DISPLAY_FSP_VERSION_INFO |
| 84 | select HECI_DISABLE_USING_SMM |
| 85 | |
| 86 | config MAX_CPUS |
| 87 | int |
| 88 | default 24 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 89 | |
| 90 | config DCACHE_RAM_BASE |
| 91 | default 0xfef00000 |
| 92 | |
| 93 | config DCACHE_RAM_SIZE |
Subrata Banik | 191bd82 | 2020-11-21 19:30:57 +0530 | [diff] [blame] | 94 | default 0xc0000 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 95 | help |
| 96 | The size of the cache-as-ram region required during bootblock |
| 97 | and/or romstage. |
| 98 | |
| 99 | config DCACHE_BSP_STACK_SIZE |
| 100 | hex |
Subrata Banik | 191bd82 | 2020-11-21 19:30:57 +0530 | [diff] [blame] | 101 | default 0x80400 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 102 | help |
| 103 | The amount of anticipated stack usage in CAR by bootblock and |
| 104 | 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] | 105 | sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 106 | (~1KiB). |
| 107 | |
| 108 | config FSP_TEMP_RAM_SIZE |
| 109 | hex |
| 110 | default 0x20000 |
| 111 | help |
| 112 | The amount of anticipated heap usage in CAR by FSP. |
| 113 | Refer to Platform FSP integration guide document to know |
| 114 | the exact FSP requirement for Heap setup. |
| 115 | |
Tim Wawrzynczak | 092813a | 2020-11-24 13:48:56 -0700 | [diff] [blame] | 116 | config CHIPSET_DEVICETREE |
| 117 | string |
| 118 | default "soc/intel/alderlake/chipset.cb" |
| 119 | |
Subrata Banik | 683c95e | 2020-12-19 19:36:45 +0530 | [diff] [blame] | 120 | config EXT_BIOS_WIN_BASE |
| 121 | default 0xf8000000 |
| 122 | |
| 123 | config EXT_BIOS_WIN_SIZE |
| 124 | default 0x2000000 |
| 125 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 126 | config IFD_CHIPSET |
| 127 | string |
| 128 | default "adl" |
| 129 | |
| 130 | config IED_REGION_SIZE |
| 131 | hex |
| 132 | default 0x400000 |
| 133 | |
| 134 | config HEAP_SIZE |
| 135 | hex |
| 136 | default 0x10000 |
| 137 | |
Tim Wawrzynczak | 8d11cdc | 2021-03-12 12:46:02 -0700 | [diff] [blame] | 138 | # Intel recommends reserving the following resources per PCIe TBT root port, |
| 139 | # from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5 |
| 140 | # - 42 buses |
| 141 | # - 194 MiB Non-prefetchable memory |
| 142 | # - 448 MiB Prefetchable memory |
| 143 | config ADL_ENABLE_USB4_PCIE_RESOURCES |
| 144 | def_bool n |
| 145 | select PCIEXP_HOTPLUG |
| 146 | |
| 147 | if ADL_ENABLE_USB4_PCIE_RESOURCES |
| 148 | |
| 149 | config PCIEXP_HOTPLUG_BUSES |
| 150 | int |
| 151 | default 42 |
| 152 | |
| 153 | config PCIEXP_HOTPLUG_MEM |
| 154 | hex |
| 155 | default 0xc200000 |
| 156 | |
| 157 | config PCIEXP_HOTPLUG_PREFETCH_MEM |
| 158 | hex |
| 159 | default 0x1c000000 |
| 160 | |
| 161 | endif # ADL_ENABLE_USB4_PCIE_RESOURCES |
| 162 | |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 163 | config MAX_PCH_ROOT_PORTS |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 164 | int |
Varshit Pandya | b5df56f | 2021-01-18 09:44:35 +0530 | [diff] [blame] | 165 | default 10 if SOC_INTEL_ALDERLAKE_PCH_M |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 166 | default 12 |
| 167 | |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 168 | config MAX_CPU_ROOT_PORTS |
| 169 | int |
Varshit Pandya | b5df56f | 2021-01-18 09:44:35 +0530 | [diff] [blame] | 170 | default 1 if SOC_INTEL_ALDERLAKE_PCH_M |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 171 | default 3 |
| 172 | |
| 173 | config MAX_ROOT_PORTS |
| 174 | int |
| 175 | default MAX_PCH_ROOT_PORTS |
| 176 | |
Subrata Banik | cffc938 | 2021-01-29 18:41:35 +0530 | [diff] [blame] | 177 | config MAX_PCIE_CLOCK_SRC |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 178 | int |
Subrata Banik | cffc938 | 2021-01-29 18:41:35 +0530 | [diff] [blame] | 179 | default 6 if SOC_INTEL_ALDERLAKE_PCH_M |
| 180 | default 7 |
| 181 | |
| 182 | config MAX_PCIE_CLOCK_REQ |
| 183 | int |
| 184 | default 6 if SOC_INTEL_ALDERLAKE_PCH_M |
| 185 | default 10 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 186 | |
| 187 | config SMM_TSEG_SIZE |
| 188 | hex |
| 189 | default 0x800000 |
| 190 | |
| 191 | config SMM_RESERVED_SIZE |
| 192 | hex |
| 193 | default 0x200000 |
| 194 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 195 | config PCR_BASE_ADDRESS |
| 196 | hex |
| 197 | default 0xfd000000 |
| 198 | help |
| 199 | This option allows you to select MMIO Base Address of sideband bus. |
| 200 | |
| 201 | config MMCONF_BASE_ADDRESS |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 202 | default 0xc0000000 |
| 203 | |
| 204 | config CPU_BCLK_MHZ |
| 205 | int |
| 206 | default 100 |
| 207 | |
| 208 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 209 | int |
| 210 | default 120 |
| 211 | |
Michael Niewöhner | dadcbfb | 2020-10-04 14:48:05 +0200 | [diff] [blame] | 212 | config CPU_XTAL_HZ |
| 213 | default 38400000 |
| 214 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 215 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 216 | int |
| 217 | default 133 |
| 218 | |
| 219 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 220 | int |
| 221 | default 7 |
| 222 | |
| 223 | config SOC_INTEL_I2C_DEV_MAX |
| 224 | int |
| 225 | default 6 |
| 226 | |
| 227 | config SOC_INTEL_UART_DEV_MAX |
| 228 | int |
| 229 | default 7 |
| 230 | |
| 231 | config CONSOLE_UART_BASE_ADDRESS |
| 232 | hex |
Bora Guvendik | 2a70419 | 2020-11-16 11:23:48 -0800 | [diff] [blame] | 233 | default 0xfe03e000 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 234 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 235 | |
Maulik V Vaghela | 996bab4 | 2021-02-05 12:03:19 +0530 | [diff] [blame] | 236 | config VBT_DATA_SIZE_KB |
| 237 | int |
| 238 | default 9 |
| 239 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 240 | # Clock divider parameters for 115200 baud rate |
| 241 | # Baudrate = (UART source clcok * M) /(N *16) |
| 242 | # ADL UART source clock: 120MHz |
| 243 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 244 | hex |
| 245 | default 0x25a |
| 246 | |
| 247 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 248 | hex |
| 249 | default 0x7fff |
| 250 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 251 | config VBOOT |
| 252 | select VBOOT_SEPARATE_VERSTAGE |
| 253 | select VBOOT_MUST_REQUEST_DISPLAY |
| 254 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 255 | select VBOOT_VBNV_CMOS |
| 256 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 257 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 258 | config CBFS_SIZE |
| 259 | hex |
| 260 | default 0x200000 |
| 261 | |
| 262 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 263 | hex |
| 264 | default 0x1400 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 265 | |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 266 | config FSP_HEADER_PATH |
| 267 | string "Location of FSP headers" |
| 268 | default "src/vendorcode/intel/fsp/fsp2_0/alderlake/" |
| 269 | |
| 270 | config FSP_FD_PATH |
| 271 | string |
| 272 | depends on FSP_USE_REPO |
| 273 | default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd" |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 274 | |
| 275 | config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT |
| 276 | int "Debug Consent for ADL" |
| 277 | # USB DBC is more common for developers so make this default to 3 if |
| 278 | # SOC_INTEL_DEBUG_CONSENT=y |
| 279 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 280 | default 0 |
| 281 | help |
| 282 | This is to control debug interface on SOC. |
| 283 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 284 | PlatformDebugConsent in FspmUpd.h has the details. |
| 285 | |
| 286 | Desired platform debug type are |
| 287 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 288 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 289 | 6:Enable (2-wire DCI OOB), 7:Manual |
Furquan Shaikh | a1c247b | 2020-12-31 22:50:14 -0800 | [diff] [blame] | 290 | |
| 291 | config DATA_BUS_WIDTH |
| 292 | int |
| 293 | default 128 |
| 294 | |
| 295 | config DIMMS_PER_CHANNEL |
| 296 | int |
| 297 | default 2 |
| 298 | |
| 299 | config MRC_CHANNEL_WIDTH |
| 300 | int |
| 301 | default 16 |
| 302 | |
Francois Toguo | cea4f92 | 2021-04-16 21:20:39 -0700 | [diff] [blame] | 303 | config SOC_INTEL_CRASHLOG |
| 304 | def_bool n |
| 305 | select SOC_INTEL_COMMON_BLOCK_CRASHLOG |
| 306 | select ACPI_BERT |
| 307 | help |
| 308 | Enables CrashLog. |
| 309 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 310 | endif |