Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 1 | config SOC_INTEL_TIGERLAKE |
| 2 | bool |
| 3 | help |
| 4 | Intel Tigerlake support |
| 5 | |
Aamir Bohra | a23e0c9 | 2020-03-25 15:31:12 +0530 | [diff] [blame] | 6 | if SOC_INTEL_TIGERLAKE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 7 | |
| 8 | config CPU_SPECIFIC_OPTIONS |
| 9 | def_bool y |
| 10 | select ACPI_INTEL_HARDWARE_SLEEP_VALUES |
Angel Pons | a32df26 | 2020-09-25 10:20:11 +0200 | [diff] [blame] | 11 | select ARCH_ALL_STAGES_X86_32 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 12 | select BOOT_DEVICE_SUPPORTS_WRITES |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 13 | select CACHE_MRC_SETTINGS |
Alex Levin | f3668fc | 2020-06-11 20:09:45 -0700 | [diff] [blame] | 14 | select CPU_INTEL_COMMON |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +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 |
Duncan Laurie | 2e9315c | 2020-10-27 10:29:16 -0700 | [diff] [blame] | 17 | select DRIVERS_USB_ACPI |
Karthikeyan Ramasubramanian | 6abee84 | 2020-06-16 23:29:28 -0600 | [diff] [blame] | 18 | select FSP_COMPRESS_FSP_S_LZ4 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 19 | select FSP_M_XIP |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 20 | select FSP_STATUS_GLOBAL_RESET_REQUIRED_3 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 21 | select GENERIC_GPIO_LIB |
| 22 | select HAVE_FSP_GOP |
| 23 | select INTEL_DESCRIPTOR_MODE_CAPABLE |
| 24 | select HAVE_SMI_HANDLER |
| 25 | select IDT_IN_EVERY_STAGE |
Shreesh Chhabbi | 7fbcdb3 | 2020-09-16 11:39:01 -0700 | [diff] [blame] | 26 | select INTEL_CAR_NEM |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 27 | select INTEL_GMA_ACPI |
| 28 | select INTEL_GMA_ADD_VBT if RUN_FSP_GOP |
| 29 | select IOAPIC |
| 30 | select MRC_SETTINGS_PROTECT |
| 31 | select PARALLEL_MP |
| 32 | select PARALLEL_MP_AP_WORK |
| 33 | select MICROCODE_BLOB_UNDISCLOSED |
Subrata Banik | b622d4b | 2020-05-26 18:33:22 +0530 | [diff] [blame] | 34 | select PLATFORM_USES_FSP2_2 |
Jonathan Zhang | 01e3855 | 2020-06-17 16:03:18 -0700 | [diff] [blame] | 35 | select FSP_PEIM_TO_PEIM_INTERFACE |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 36 | select REG_SCRIPT |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 37 | select PMC_GLOBAL_RESET_ENABLE_LOCK |
Subrata Banik | 0359d9d | 2020-09-28 18:43:47 +0530 | [diff] [blame] | 38 | select PMC_LOW_POWER_MODE_PROGRAM |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 39 | select SOC_INTEL_COMMON |
| 40 | select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE |
| 41 | select SOC_INTEL_COMMON_BLOCK |
| 42 | select SOC_INTEL_COMMON_BLOCK_ACPI |
| 43 | select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG |
Furquan Shaikh | 23e8813 | 2020-10-08 23:44:20 -0700 | [diff] [blame] | 44 | select SOC_INTEL_COMMON_BLOCK_CNVI |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 45 | select SOC_INTEL_COMMON_BLOCK_CPU |
| 46 | select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT |
Tim Wawrzynczak | c5316ec | 2020-05-29 15:20:56 -0600 | [diff] [blame] | 47 | select SOC_INTEL_COMMON_BLOCK_DTT |
Nick Vaccaro | ef8258a | 2019-12-09 22:11:33 -0800 | [diff] [blame] | 48 | select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 49 | select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2 |
| 50 | select SOC_INTEL_COMMON_BLOCK_HDA |
| 51 | select SOC_INTEL_COMMON_BLOCK_SA |
| 52 | select SOC_INTEL_COMMON_BLOCK_SMM |
| 53 | select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP |
Duncan Laurie | 6f58b99 | 2020-08-28 19:44:42 +0000 | [diff] [blame] | 54 | select SOC_INTEL_COMMON_BLOCK_USB4 |
| 55 | select SOC_INTEL_COMMON_BLOCK_USB4_PCIE |
Duncan Laurie | 2e9315c | 2020-10-27 10:29:16 -0700 | [diff] [blame] | 56 | select SOC_INTEL_COMMON_BLOCK_USB4_XHCI |
Subrata Banik | 4ed9f9a | 2020-10-31 22:01:55 +0530 | [diff] [blame] | 57 | select SOC_INTEL_COMMON_FSP_RESET |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 58 | select SOC_INTEL_COMMON_PCH_BASE |
| 59 | select SOC_INTEL_COMMON_RESET |
Arthur Heymans | c6872f5 | 2019-11-11 12:29:56 +0100 | [diff] [blame] | 60 | select SOC_INTEL_COMMON_BLOCK_CAR |
Sumeet R Pawnikar | d213246 | 2020-05-15 15:55:37 +0530 | [diff] [blame] | 61 | select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 62 | select SSE2 |
| 63 | select SUPPORT_CPU_UCODE_IN_CBFS |
| 64 | select TSC_MONOTONIC_TIMER |
| 65 | select UDELAY_TSC |
| 66 | select UDK_2017_BINDING |
| 67 | select DISPLAY_FSP_VERSION_INFO |
| 68 | select HECI_DISABLE_USING_SMM |
| 69 | |
| 70 | config DCACHE_RAM_BASE |
| 71 | default 0xfef00000 |
| 72 | |
| 73 | config DCACHE_RAM_SIZE |
Maulik V Vaghela | e9b1e0f | 2019-12-16 16:39:53 +0530 | [diff] [blame] | 74 | default 0x80000 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 75 | help |
| 76 | The size of the cache-as-ram region required during bootblock |
| 77 | and/or romstage. |
| 78 | |
| 79 | config DCACHE_BSP_STACK_SIZE |
| 80 | hex |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 81 | default 0x40400 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 82 | help |
| 83 | The amount of anticipated stack usage in CAR by bootblock and |
| 84 | other stages. In the case of FSP_USES_CB_STACK default value will be |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 85 | sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement |
| 86 | (~1KiB). |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 87 | |
| 88 | config FSP_TEMP_RAM_SIZE |
| 89 | hex |
Maulik V Vaghela | e9b1e0f | 2019-12-16 16:39:53 +0530 | [diff] [blame] | 90 | default 0x20000 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 91 | help |
| 92 | The amount of anticipated heap usage in CAR by FSP. |
| 93 | Refer to Platform FSP integration guide document to know |
| 94 | the exact FSP requirement for Heap setup. |
| 95 | |
Duncan Laurie | a5bb31f | 2020-07-29 16:31:18 -0700 | [diff] [blame] | 96 | config CHIPSET_DEVICETREE |
| 97 | string |
| 98 | default "soc/intel/tigerlake/chipset.cb" |
| 99 | |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 100 | config IFD_CHIPSET |
| 101 | string |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 102 | default "tgl" |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 103 | |
| 104 | config IED_REGION_SIZE |
| 105 | hex |
| 106 | default 0x400000 |
| 107 | |
| 108 | config HEAP_SIZE |
| 109 | hex |
Duncan Laurie | aab226c | 2020-06-08 17:36:21 -0700 | [diff] [blame] | 110 | default 0x10000 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 111 | |
| 112 | config MAX_ROOT_PORTS |
| 113 | int |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 114 | default 12 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 115 | |
Ravi Sarawadi | 2fd4972 | 2019-12-16 23:41:36 -0800 | [diff] [blame] | 116 | config MAX_PCIE_CLOCKS |
| 117 | int |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 118 | default 7 |
Ravi Sarawadi | 2fd4972 | 2019-12-16 23:41:36 -0800 | [diff] [blame] | 119 | |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 120 | config SMM_TSEG_SIZE |
| 121 | hex |
| 122 | default 0x800000 |
| 123 | |
| 124 | config SMM_RESERVED_SIZE |
| 125 | hex |
| 126 | default 0x200000 |
| 127 | |
| 128 | config PCR_BASE_ADDRESS |
| 129 | hex |
| 130 | default 0xfd000000 |
| 131 | help |
| 132 | This option allows you to select MMIO Base Address of sideband bus. |
| 133 | |
| 134 | config MMCONF_BASE_ADDRESS |
| 135 | hex |
| 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 | |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [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 |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 155 | default 4 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 156 | |
| 157 | config SOC_INTEL_I2C_DEV_MAX |
| 158 | int |
| 159 | default 6 |
| 160 | |
| 161 | config SOC_INTEL_UART_DEV_MAX |
| 162 | int |
| 163 | default 3 |
| 164 | |
| 165 | config CONSOLE_UART_BASE_ADDRESS |
| 166 | hex |
| 167 | default 0xfe032000 |
| 168 | depends on INTEL_LPSS_UART_FOR_CONSOLE |
| 169 | |
| 170 | # Clock divider parameters for 115200 baud rate |
Ravi Sarawadi | 3838701 | 2019-12-19 15:04:58 -0800 | [diff] [blame] | 171 | # Baudrate = (UART source clcok * M) /(N *16) |
| 172 | # TGL UART source clock: 120MHz |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 173 | config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL |
| 174 | hex |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 175 | default 0x25a |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 176 | |
| 177 | config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL |
| 178 | hex |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 179 | default 0x7fff |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 180 | |
| 181 | config CHROMEOS |
| 182 | select CHROMEOS_RAMOOPS_DYNAMIC |
| 183 | |
Jes Klinke | e046b71 | 2020-08-19 14:01:30 -0700 | [diff] [blame] | 184 | # Tiger Lake SoC requires at least 100us interrupt pulses in order to guarantee detection |
| 185 | # in all low power states. Cr50 TPM, if used, needs to be told to generate longer pulses. |
| 186 | config TPM_CR50 |
| 187 | select CR50_USE_LONG_INTERRUPT_PULSES |
| 188 | |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 189 | config VBOOT |
| 190 | select VBOOT_SEPARATE_VERSTAGE |
| 191 | select VBOOT_MUST_REQUEST_DISPLAY |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 192 | select VBOOT_STARTS_IN_BOOTBLOCK |
| 193 | select VBOOT_VBNV_CMOS |
| 194 | select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH |
| 195 | |
| 196 | config C_ENV_BOOTBLOCK_SIZE |
| 197 | hex |
| 198 | default 0xC000 |
| 199 | |
| 200 | config CBFS_SIZE |
| 201 | hex |
| 202 | default 0x200000 |
| 203 | |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 204 | config FSP_HEADER_PATH |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 205 | default "src/vendorcode/intel/fsp/fsp2_0/tigerlake/" |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 206 | |
| 207 | config FSP_FD_PATH |
Aamir Bohra | 555c9b6 | 2020-03-23 10:13:10 +0530 | [diff] [blame] | 208 | default "3rdparty/fsp/TigerLakeFspBinPkg/Fsp.fd" |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 209 | |
Subrata Banik | 56626cf | 2020-02-27 19:39:22 +0530 | [diff] [blame] | 210 | config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT |
| 211 | int "Debug Consent for TGL" |
| 212 | # USB DBC is more common for developers so make this default to 3 if |
| 213 | # SOC_INTEL_DEBUG_CONSENT=y |
| 214 | default 3 if SOC_INTEL_DEBUG_CONSENT |
| 215 | default 0 |
| 216 | help |
| 217 | This is to control debug interface on SOC. |
| 218 | Setting non-zero value will allow to use DBC or DCI to debug SOC. |
| 219 | PlatformDebugConsent in FspmUpd.h has the details. |
| 220 | |
| 221 | Desired platform debug type are |
| 222 | 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB), |
| 223 | 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC), |
| 224 | 6:Enable (2-wire DCI OOB), 7:Manual |
Subrata Banik | ebf1daa | 2020-05-19 12:32:41 +0530 | [diff] [blame] | 225 | |
| 226 | config PRERAM_CBMEM_CONSOLE_SIZE |
| 227 | hex |
Anil Kumar | 033038f | 2020-09-08 16:18:45 -0700 | [diff] [blame] | 228 | default 0x2000 |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 229 | endif |