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 |
Subrata Banik | 21974ab | 2020-10-31 21:40:43 +0530 | [diff] [blame] | 50 | select SOC_INTEL_COMMON_BLOCK_CAR |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 51 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 52 | select SOC_INTEL_COMMON_BLOCK_CPU |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 53 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
| 54 | select SOC_INTEL_COMMON_BLOCK_DTT |
| 55 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 56 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 57 | select SOC_INTEL_COMMON_BLOCK_HDA |
Furquan Shaikh | a1c247b | 2020-12-31 22:50:14 -0800 | [diff] [blame] | 58 | select SOC_INTEL_COMMON_BLOCK_MEMINIT |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 59 | select SOC_INTEL_COMMON_BLOCK_SA |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 60 | select SOC_INTEL_COMMON_BLOCK_SMM |
| 61 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
Eric Lai | 4ea47c3 | 2020-12-21 16:57:49 +0800 | [diff] [blame] | 62 | select SOC_INTEL_COMMON_BLOCK_USB4 |
| 63 | select SOC_INTEL_COMMON_BLOCK_USB4_PCIE |
| 64 | select SOC_INTEL_COMMON_BLOCK_USB4_XHCI |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 65 | select SOC_INTEL_COMMON_FSP_RESET |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 66 | select SOC_INTEL_COMMON_PCH_BASE |
| 67 | select SOC_INTEL_COMMON_RESET |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 68 | select SSE2 |
| 69 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 70 | select TSC_MONOTONIC_TIMER |
| 71 | select UDELAY_TSC |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 72 | select UDK_202005_BINDING |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 73 | select DISPLAY_FSP_VERSION_INFO |
| 74 | select HECI_DISABLE_USING_SMM |
| 75 | |
| 76 | config MAX_CPUS |
| 77 | int |
| 78 | default 24 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 79 | |
| 80 | config DCACHE_RAM_BASE |
| 81 | default 0xfef00000 |
| 82 | |
| 83 | config DCACHE_RAM_SIZE |
Subrata Banik | 191bd82 | 2020-11-21 19:30:57 +0530 | [diff] [blame] | 84 | default 0xc0000 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 85 | help |
| 86 | The size of the cache-as-ram region required during bootblock |
| 87 | and/or romstage. |
| 88 | |
| 89 | config DCACHE_BSP_STACK_SIZE |
| 90 | hex |
Subrata Banik | 191bd82 | 2020-11-21 19:30:57 +0530 | [diff] [blame] | 91 | default 0x80400 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 92 | help |
| 93 | The amount of anticipated stack usage in CAR by bootblock and |
| 94 | 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] | 95 | sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 96 | (~1KiB). |
| 97 | |
| 98 | config FSP_TEMP_RAM_SIZE |
| 99 | hex |
| 100 | default 0x20000 |
| 101 | help |
| 102 | The amount of anticipated heap usage in CAR by FSP. |
| 103 | Refer to Platform FSP integration guide document to know |
| 104 | the exact FSP requirement for Heap setup. |
| 105 | |
Tim Wawrzynczak | 092813a | 2020-11-24 13:48:56 -0700 | [diff] [blame] | 106 | config CHIPSET_DEVICETREE |
| 107 | string |
| 108 | default "soc/intel/alderlake/chipset.cb" |
| 109 | |
Subrata Banik | 683c95e | 2020-12-19 19:36:45 +0530 | [diff] [blame] | 110 | config EXT_BIOS_WIN_BASE |
| 111 | default 0xf8000000 |
| 112 | |
| 113 | config EXT_BIOS_WIN_SIZE |
| 114 | default 0x2000000 |
| 115 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 116 | config IFD_CHIPSET |
| 117 | string |
| 118 | default "adl" |
| 119 | |
| 120 | config IED_REGION_SIZE |
| 121 | hex |
| 122 | default 0x400000 |
| 123 | |
| 124 | config HEAP_SIZE |
| 125 | hex |
| 126 | default 0x10000 |
| 127 | |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 128 | config MAX_PCH_ROOT_PORTS |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 129 | int |
Varshit Pandya | b5df56f | 2021-01-18 09:44:35 +0530 | [diff] [blame] | 130 | default 10 if SOC_INTEL_ALDERLAKE_PCH_M |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 131 | default 12 |
| 132 | |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 133 | config MAX_CPU_ROOT_PORTS |
| 134 | int |
Varshit Pandya | b5df56f | 2021-01-18 09:44:35 +0530 | [diff] [blame] | 135 | default 1 if SOC_INTEL_ALDERLAKE_PCH_M |
Subrata Banik | 85144d9 | 2021-01-09 16:17:45 +0530 | [diff] [blame] | 136 | default 3 |
| 137 | |
| 138 | config MAX_ROOT_PORTS |
| 139 | int |
| 140 | default MAX_PCH_ROOT_PORTS |
| 141 | |
Subrata Banik | cffc938 | 2021-01-29 18:41:35 +0530 | [diff] [blame] | 142 | config MAX_PCIE_CLOCK_SRC |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 143 | int |
Subrata Banik | cffc938 | 2021-01-29 18:41:35 +0530 | [diff] [blame] | 144 | default 6 if SOC_INTEL_ALDERLAKE_PCH_M |
| 145 | default 7 |
| 146 | |
| 147 | config MAX_PCIE_CLOCK_REQ |
| 148 | int |
| 149 | default 6 if SOC_INTEL_ALDERLAKE_PCH_M |
| 150 | default 10 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 151 | |
| 152 | config SMM_TSEG_SIZE |
| 153 | hex |
| 154 | default 0x800000 |
| 155 | |
| 156 | config SMM_RESERVED_SIZE |
| 157 | hex |
| 158 | default 0x200000 |
| 159 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 160 | config PCR_BASE_ADDRESS |
| 161 | hex |
| 162 | default 0xfd000000 |
| 163 | help |
| 164 | This option allows you to select MMIO Base Address of sideband bus. |
| 165 | |
| 166 | config MMCONF_BASE_ADDRESS |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 167 | default 0xc0000000 |
| 168 | |
| 169 | config CPU_BCLK_MHZ |
| 170 | int |
| 171 | default 100 |
| 172 | |
| 173 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 174 | int |
| 175 | default 120 |
| 176 | |
Michael Niewöhner | dadcbfb | 2020-10-04 14:48:05 +0200 | [diff] [blame] | 177 | config CPU_XTAL_HZ |
| 178 | default 38400000 |
| 179 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 180 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 181 | int |
| 182 | default 133 |
| 183 | |
| 184 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 185 | int |
| 186 | default 7 |
| 187 | |
| 188 | config SOC_INTEL_I2C_DEV_MAX |
| 189 | int |
| 190 | default 6 |
| 191 | |
| 192 | config SOC_INTEL_UART_DEV_MAX |
| 193 | int |
| 194 | default 7 |
| 195 | |
| 196 | config CONSOLE_UART_BASE_ADDRESS |
| 197 | hex |
Bora Guvendik | 2a70419 | 2020-11-16 11:23:48 -0800 | [diff] [blame] | 198 | default 0xfe03e000 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 199 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 200 | |
| 201 | # Clock divider parameters for 115200 baud rate |
| 202 | # Baudrate = (UART source clcok * M) /(N *16) |
| 203 | # ADL UART source clock: 120MHz |
| 204 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 205 | hex |
| 206 | default 0x25a |
| 207 | |
| 208 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 209 | hex |
| 210 | default 0x7fff |
| 211 | |
| 212 | config CHROMEOS |
| 213 | select CHROMEOS_RAMOOPS_DYNAMIC |
| 214 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 215 | config VBOOT |
| 216 | select VBOOT_SEPARATE_VERSTAGE |
| 217 | select VBOOT_MUST_REQUEST_DISPLAY |
| 218 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 219 | select VBOOT_VBNV_CMOS |
| 220 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 221 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 222 | config CBFS_SIZE |
| 223 | hex |
| 224 | default 0x200000 |
| 225 | |
| 226 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 227 | hex |
| 228 | default 0x1400 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 229 | |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 230 | config FSP_HEADER_PATH |
| 231 | string "Location of FSP headers" |
| 232 | default "src/vendorcode/intel/fsp/fsp2_0/alderlake/" |
| 233 | |
| 234 | config FSP_FD_PATH |
| 235 | string |
| 236 | depends on FSP_USE_REPO |
| 237 | default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd" |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 238 | |
| 239 | config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT |
| 240 | int "Debug Consent for ADL" |
| 241 | # USB DBC is more common for developers so make this default to 3 if |
| 242 | # SOC_INTEL_DEBUG_CONSENT=y |
| 243 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 244 | default 0 |
| 245 | help |
| 246 | This is to control debug interface on SOC. |
| 247 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 248 | PlatformDebugConsent in FspmUpd.h has the details. |
| 249 | |
| 250 | Desired platform debug type are |
| 251 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 252 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 253 | 6:Enable (2-wire DCI OOB), 7:Manual |
Furquan Shaikh | a1c247b | 2020-12-31 22:50:14 -0800 | [diff] [blame] | 254 | |
| 255 | config DATA_BUS_WIDTH |
| 256 | int |
| 257 | default 128 |
| 258 | |
| 259 | config DIMMS_PER_CHANNEL |
| 260 | int |
| 261 | default 2 |
| 262 | |
| 263 | config MRC_CHANNEL_WIDTH |
| 264 | int |
| 265 | default 16 |
| 266 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 267 | endif |