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