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 | |
| 6 | if SOC_INTEL_ALDERLAKE |
| 7 | |
| 8 | config CPU_SPECIFIC_OPTIONS |
| 9 | def_bool y |
Angel Pons | a25eaff | 2020-09-23 15:37:15 +0200 | [diff] [blame] | 10 | select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 11 | select ARCH_ALL_STAGES_X86_32 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 12 | select BOOT_DEVICE_SUPPORTS_WRITES |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 13 | select CACHE_MRC_SETTINGS |
| 14 | select CPU_INTEL_COMMON |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 15 | select CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
Michael Niewöhner | fe6070f | 2020-10-04 15:16:04 +0200 | [diff] [blame] | 16 | select CPU_SUPPORTS_PM_TIMER_EMULATION |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 17 | select FSP_COMPRESS_FSP_S_LZ4 |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 18 | select FSP_M_XIP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 19 | select FSP_STATUS_GLOBAL_RESET_REQUIRED_3 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 20 | select GENERIC_GPIO_LIB |
| 21 | select HAVE_FSP_GOP |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 22 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 23 | select HAVE_SMI_HANDLER |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 24 | select IDT_IN_EVERY_STAGE |
| 25 | select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 26 | select INTEL_GMA_ACPI |
| 27 | select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
| 28 | select IOAPIC |
Subrata Banik | 0aed4e5 | 2020-10-12 17:27:31 +0530 | [diff] [blame] | 29 | select INTEL_TME |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 30 | select MRC_SETTINGS_PROTECT |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 31 | select PARALLEL_MP |
| 32 | select PARALLEL_MP_AP_WORK |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 33 | select MICROCODE_BLOB_UNDISCLOSED |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 34 | select PLATFORM_USES_FSP2_2 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 35 | select FSP_PEIM_TO_PEIM_INTERFACE |
| 36 | select REG_SCRIPT |
| 37 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
| 38 | select PMC_LOW_POWER_MODE_PROGRAM |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 39 | select SOC_INTEL_COMMON |
Subrata Banik | 0808992 | 2020-10-03 13:02:06 +0530 | [diff] [blame] | 40 | select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 41 | select SOC_INTEL_COMMON_BLOCK |
Subrata Banik | 0808992 | 2020-10-03 13:02:06 +0530 | [diff] [blame] | 42 | select SOC_INTEL_COMMON_BLOCK_ACPI |
Subrata Banik | 21974ab | 2020-10-31 21:40:43 +0530 | [diff] [blame] | 43 | select SOC_INTEL_COMMON_BLOCK_CAR |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 44 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 45 | select SOC_INTEL_COMMON_BLOCK_CPU |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 46 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
| 47 | select SOC_INTEL_COMMON_BLOCK_DTT |
| 48 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 49 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 50 | select SOC_INTEL_COMMON_BLOCK_HDA |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 51 | select SOC_INTEL_COMMON_BLOCK_SA |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 52 | select SOC_INTEL_COMMON_BLOCK_SMM |
| 53 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 54 | select SOC_INTEL_COMMON_FSP_RESET |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 55 | select SOC_INTEL_COMMON_PCH_BASE |
| 56 | select SOC_INTEL_COMMON_RESET |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 57 | select SSE2 |
| 58 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 59 | select TSC_MONOTONIC_TIMER |
| 60 | select UDELAY_TSC |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 61 | select UDK_202005_BINDING |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 62 | select DISPLAY_FSP_VERSION_INFO |
| 63 | select HECI_DISABLE_USING_SMM |
| 64 | |
| 65 | config MAX_CPUS |
| 66 | int |
| 67 | default 24 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 68 | |
| 69 | config DCACHE_RAM_BASE |
| 70 | default 0xfef00000 |
| 71 | |
| 72 | config DCACHE_RAM_SIZE |
| 73 | default 0x80000 |
| 74 | help |
| 75 | The size of the cache-as-ram region required during bootblock |
| 76 | and/or romstage. |
| 77 | |
| 78 | config DCACHE_BSP_STACK_SIZE |
| 79 | hex |
| 80 | default 0x40400 |
| 81 | help |
| 82 | The amount of anticipated stack usage in CAR by bootblock and |
| 83 | other stages. In the case of FSP_USES_CB_STACK default value will be |
| 84 | sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement |
| 85 | (~1KiB). |
| 86 | |
| 87 | config FSP_TEMP_RAM_SIZE |
| 88 | hex |
| 89 | default 0x20000 |
| 90 | help |
| 91 | The amount of anticipated heap usage in CAR by FSP. |
| 92 | Refer to Platform FSP integration guide document to know |
| 93 | the exact FSP requirement for Heap setup. |
| 94 | |
| 95 | config IFD_CHIPSET |
| 96 | string |
| 97 | default "adl" |
| 98 | |
| 99 | config IED_REGION_SIZE |
| 100 | hex |
| 101 | default 0x400000 |
| 102 | |
| 103 | config HEAP_SIZE |
| 104 | hex |
| 105 | default 0x10000 |
| 106 | |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 107 | config MAX_ROOT_PORTS |
| 108 | int |
| 109 | default 12 |
| 110 | |
| 111 | config MAX_PCIE_CLOCKS |
| 112 | int |
| 113 | default 12 |
| 114 | |
| 115 | config SMM_TSEG_SIZE |
| 116 | hex |
| 117 | default 0x800000 |
| 118 | |
| 119 | config SMM_RESERVED_SIZE |
| 120 | hex |
| 121 | default 0x200000 |
| 122 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 123 | config PCR_BASE_ADDRESS |
| 124 | hex |
| 125 | default 0xfd000000 |
| 126 | help |
| 127 | This option allows you to select MMIO Base Address of sideband bus. |
| 128 | |
| 129 | config MMCONF_BASE_ADDRESS |
| 130 | hex |
| 131 | default 0xc0000000 |
| 132 | |
| 133 | config CPU_BCLK_MHZ |
| 134 | int |
| 135 | default 100 |
| 136 | |
| 137 | config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ |
| 138 | int |
| 139 | default 120 |
| 140 | |
Michael Niewöhner | dadcbfb | 2020-10-04 14:48:05 +0200 | [diff] [blame] | 141 | config CPU_XTAL_HZ |
| 142 | default 38400000 |
| 143 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 144 | config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ |
| 145 | int |
| 146 | default 133 |
| 147 | |
| 148 | config SOC_INTEL_COMMON_BLOCK_GSPI_MAX |
| 149 | int |
| 150 | default 7 |
| 151 | |
| 152 | config SOC_INTEL_I2C_DEV_MAX |
| 153 | int |
| 154 | default 6 |
| 155 | |
| 156 | config SOC_INTEL_UART_DEV_MAX |
| 157 | int |
| 158 | default 7 |
| 159 | |
| 160 | config CONSOLE_UART_BASE_ADDRESS |
| 161 | hex |
Bora Guvendik | 2a70419 | 2020-11-16 11:23:48 -0800 | [diff] [blame] | 162 | default 0xfe03e000 |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 163 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 164 | |
| 165 | # Clock divider parameters for 115200 baud rate |
| 166 | # Baudrate = (UART source clcok * M) /(N *16) |
| 167 | # ADL UART source clock: 120MHz |
| 168 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 169 | hex |
| 170 | default 0x25a |
| 171 | |
| 172 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 173 | hex |
| 174 | default 0x7fff |
| 175 | |
| 176 | config CHROMEOS |
| 177 | select CHROMEOS_RAMOOPS_DYNAMIC |
| 178 | |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 179 | config VBOOT |
| 180 | select VBOOT_SEPARATE_VERSTAGE |
| 181 | select VBOOT_MUST_REQUEST_DISPLAY |
| 182 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 183 | select VBOOT_VBNV_CMOS |
| 184 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 185 | |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 186 | config C_ENV_BOOTBLOCK_SIZE |
| 187 | hex |
| 188 | default 0xC000 |
| 189 | |
| 190 | config CBFS_SIZE |
| 191 | hex |
| 192 | default 0x200000 |
| 193 | |
| 194 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 195 | hex |
| 196 | default 0x1400 |
Subrata Banik | 2871e0e | 2020-09-27 11:30:58 +0530 | [diff] [blame] | 197 | |
Subrata Banik | ee73594 | 2020-09-07 17:52:23 +0530 | [diff] [blame] | 198 | config FSP_HEADER_PATH |
| 199 | string "Location of FSP headers" |
| 200 | default "src/vendorcode/intel/fsp/fsp2_0/alderlake/" |
| 201 | |
| 202 | config FSP_FD_PATH |
| 203 | string |
| 204 | depends on FSP_USE_REPO |
| 205 | default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd" |
Subrata Banik | 292afef | 2020-09-09 13:34:18 +0530 | [diff] [blame] | 206 | |
| 207 | config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT |
| 208 | int "Debug Consent for ADL" |
| 209 | # USB DBC is more common for developers so make this default to 3 if |
| 210 | # SOC_INTEL_DEBUG_CONSENT=y |
| 211 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 212 | default 0 |
| 213 | help |
| 214 | This is to control debug interface on SOC. |
| 215 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 216 | PlatformDebugConsent in FspmUpd.h has the details. |
| 217 | |
| 218 | Desired platform debug type are |
| 219 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 220 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 221 | 6:Enable (2-wire DCI OOB), 7:Manual |
Subrata Banik | b3ced6a | 2020-08-04 13:34:03 +0530 | [diff] [blame] | 222 | endif |