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