blob: 568bb6e2103bab458fd0fa1390de7770d7b0db26 [file] [log] [blame]
Subrata Banik91e89c52019-11-01 18:30:01 +05301config SOC_INTEL_TIGERLAKE
2 bool
3 help
4 Intel Tigerlake support
5
Aamir Bohraa23e0c92020-03-25 15:31:12 +05306if SOC_INTEL_TIGERLAKE
Subrata Banik91e89c52019-11-01 18:30:01 +05307
8config CPU_SPECIFIC_OPTIONS
9 def_bool y
10 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Angel Ponsa32df262020-09-25 10:20:11 +020011 select ARCH_ALL_STAGES_X86_32
Subrata Banik91e89c52019-11-01 18:30:01 +053012 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik91e89c52019-11-01 18:30:01 +053013 select CACHE_MRC_SETTINGS
Alex Levinf3668fc2020-06-11 20:09:45 -070014 select CPU_INTEL_COMMON
Subrata Banik91e89c52019-11-01 18:30:01 +053015 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020016 select CPU_SUPPORTS_PM_TIMER_EMULATION
Duncan Laurie2e9315c2020-10-27 10:29:16 -070017 select DRIVERS_USB_ACPI
Furquan Shaikhba75c4c2020-11-22 15:45:54 -080018 select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
Karthikeyan Ramasubramanian6abee842020-06-16 23:29:28 -060019 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik91e89c52019-11-01 18:30:01 +053020 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053021 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banik91e89c52019-11-01 18:30:01 +053022 select GENERIC_GPIO_LIB
23 select HAVE_FSP_GOP
Felix Singer3e3c4562020-12-17 18:34:45 +000024 select HAVE_INTEL_FSP_REPO
Subrata Banik91e89c52019-11-01 18:30:01 +053025 select INTEL_DESCRIPTOR_MODE_CAPABLE
26 select HAVE_SMI_HANDLER
27 select IDT_IN_EVERY_STAGE
Shreesh Chhabbi87c7ec72020-12-03 14:07:15 -080028 select INTEL_CAR_NEM_ENHANCED if !INTEL_CAR_NEM
Shreesh Chhabbi860c6842020-12-03 15:06:20 -080029 select CAR_HAS_SF_MASKS if INTEL_CAR_NEM_ENHANCED
Shreesh Chhabbi42b1d3f2020-11-05 12:06:29 -080030 select COS_MAPPED_TO_MSB if INTEL_CAR_NEM_ENHANCED
Subrata Banik91e89c52019-11-01 18:30:01 +053031 select INTEL_GMA_ACPI
32 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
33 select IOAPIC
Aamir Bohra30cca6c2021-02-04 20:57:51 +053034 select MP_SERVICES_PPI_V1
Subrata Banik91e89c52019-11-01 18:30:01 +053035 select MRC_SETTINGS_PROTECT
Subrata Banik91e89c52019-11-01 18:30:01 +053036 select PARALLEL_MP_AP_WORK
37 select MICROCODE_BLOB_UNDISCLOSED
Subrata Banikb622d4b2020-05-26 18:33:22 +053038 select PLATFORM_USES_FSP2_2
Subrata Banik91e89c52019-11-01 18:30:01 +053039 select REG_SCRIPT
Subrata Banik91e89c52019-11-01 18:30:01 +053040 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banik0359d9d2020-09-28 18:43:47 +053041 select PMC_LOW_POWER_MODE_PROGRAM
Subrata Banik91e89c52019-11-01 18:30:01 +053042 select SOC_INTEL_COMMON
43 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
44 select SOC_INTEL_COMMON_BLOCK
45 select SOC_INTEL_COMMON_BLOCK_ACPI
Angel Pons98f672a2021-02-19 19:42:10 +010046 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Michael Niewöhner8a6c34e2021-01-01 21:26:42 +010047 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
Subrata Banik21974ab2020-10-31 21:40:43 +053048 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik91e89c52019-11-01 18:30:01 +053049 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Furquan Shaikh23e88132020-10-08 23:44:20 -070050 select SOC_INTEL_COMMON_BLOCK_CNVI
Subrata Banik91e89c52019-11-01 18:30:01 +053051 select SOC_INTEL_COMMON_BLOCK_CPU
52 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010053 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -060054 select SOC_INTEL_COMMON_BLOCK_DTT
Nick Vaccaroef8258a2019-12-09 22:11:33 -080055 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Duncan Laurie7d971362020-11-05 10:09:58 -080056 select SOC_INTEL_COMMON_BLOCK_GPIO_IOSTANDBY
Subrata Banik91e89c52019-11-01 18:30:01 +053057 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
58 select SOC_INTEL_COMMON_BLOCK_HDA
Tim Wawrzynczaked042a92021-02-04 17:07:14 -070059 select SOC_INTEL_COMMON_BLOCK_IRQ
Furquan Shaikhf06d0462020-12-31 21:15:34 -080060 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Duncan Lauriee997d852020-10-10 00:18:08 +000061 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Subrata Banik91e89c52019-11-01 18:30:01 +053062 select SOC_INTEL_COMMON_BLOCK_SA
63 select SOC_INTEL_COMMON_BLOCK_SMM
64 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Duncan Laurie6f58b992020-08-28 19:44:42 +000065 select SOC_INTEL_COMMON_BLOCK_USB4
66 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
Duncan Laurie2e9315c2020-10-27 10:29:16 -070067 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Karthikeyan Ramasubramanianfa9e8f92020-11-04 22:22:46 -070068 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053069 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banik91e89c52019-11-01 18:30:01 +053070 select SOC_INTEL_COMMON_PCH_BASE
71 select SOC_INTEL_COMMON_RESET
Sumeet R Pawnikard2132462020-05-15 15:55:37 +053072 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banik91e89c52019-11-01 18:30:01 +053073 select SSE2
74 select SUPPORT_CPU_UCODE_IN_CBFS
75 select TSC_MONOTONIC_TIMER
76 select UDELAY_TSC
77 select UDK_2017_BINDING
78 select DISPLAY_FSP_VERSION_INFO
79 select HECI_DISABLE_USING_SMM
80
Andy Pontd2f52ff2021-06-08 10:30:35 +010081config MAX_CPUS
82 int
83 default 8
84
Subrata Banik91e89c52019-11-01 18:30:01 +053085config DCACHE_RAM_BASE
86 default 0xfef00000
87
88config DCACHE_RAM_SIZE
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053089 default 0x80000
Subrata Banik91e89c52019-11-01 18:30:01 +053090 help
91 The size of the cache-as-ram region required during bootblock
92 and/or romstage.
93
94config DCACHE_BSP_STACK_SIZE
95 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +053096 default 0x40400
Subrata Banik91e89c52019-11-01 18:30:01 +053097 help
98 The amount of anticipated stack usage in CAR by bootblock and
99 other stages. In the case of FSP_USES_CB_STACK default value will be
Aamir Bohra555c9b62020-03-23 10:13:10 +0530100 sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement
101 (~1KiB).
Subrata Banik91e89c52019-11-01 18:30:01 +0530102
103config FSP_TEMP_RAM_SIZE
104 hex
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +0530105 default 0x20000
Subrata Banik91e89c52019-11-01 18:30:01 +0530106 help
107 The amount of anticipated heap usage in CAR by FSP.
108 Refer to Platform FSP integration guide document to know
109 the exact FSP requirement for Heap setup.
110
Duncan Lauriea5bb31f2020-07-29 16:31:18 -0700111config CHIPSET_DEVICETREE
112 string
113 default "soc/intel/tigerlake/chipset.cb"
114
Furquan Shaikhba75c4c2020-11-22 15:45:54 -0800115config EXT_BIOS_WIN_BASE
116 default 0xf8000000
117
118config EXT_BIOS_WIN_SIZE
119 default 0x2000000
120
Subrata Banik91e89c52019-11-01 18:30:01 +0530121config IFD_CHIPSET
122 string
Aamir Bohra555c9b62020-03-23 10:13:10 +0530123 default "tgl"
Subrata Banik91e89c52019-11-01 18:30:01 +0530124
125config IED_REGION_SIZE
126 hex
127 default 0x400000
128
129config HEAP_SIZE
130 hex
Duncan Laurieaab226c2020-06-08 17:36:21 -0700131 default 0x10000
Subrata Banik91e89c52019-11-01 18:30:01 +0530132
133config MAX_ROOT_PORTS
134 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530135 default 12
Subrata Banik91e89c52019-11-01 18:30:01 +0530136
Rizwan Qureshia9794602021-04-08 20:31:47 +0530137config MAX_PCIE_CLOCK_SRC
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800138 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530139 default 7
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800140
Subrata Banik91e89c52019-11-01 18:30:01 +0530141config SMM_TSEG_SIZE
142 hex
143 default 0x800000
144
145config SMM_RESERVED_SIZE
146 hex
147 default 0x200000
148
149config PCR_BASE_ADDRESS
150 hex
151 default 0xfd000000
152 help
153 This option allows you to select MMIO Base Address of sideband bus.
154
155config MMCONF_BASE_ADDRESS
Subrata Banik91e89c52019-11-01 18:30:01 +0530156 default 0xc0000000
157
158config CPU_BCLK_MHZ
159 int
160 default 100
161
162config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
163 int
164 default 120
165
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200166config CPU_XTAL_HZ
167 default 38400000
168
Subrata Banik91e89c52019-11-01 18:30:01 +0530169config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
170 int
171 default 133
172
173config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
174 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530175 default 4
Subrata Banik91e89c52019-11-01 18:30:01 +0530176
177config SOC_INTEL_I2C_DEV_MAX
178 int
179 default 6
180
181config SOC_INTEL_UART_DEV_MAX
182 int
183 default 3
184
185config CONSOLE_UART_BASE_ADDRESS
186 hex
Bora Guvendikc3c3e452020-11-13 21:35:19 -0800187 default 0xfe03e000
Subrata Banik91e89c52019-11-01 18:30:01 +0530188 depends on INTEL_LPSS_UART_FOR_CONSOLE
189
190# Clock divider parameters for 115200 baud rate
Ravi Sarawadi38387012019-12-19 15:04:58 -0800191# Baudrate = (UART source clcok * M) /(N *16)
192# TGL UART source clock: 120MHz
Subrata Banik91e89c52019-11-01 18:30:01 +0530193config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
194 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530195 default 0x25a
Subrata Banik91e89c52019-11-01 18:30:01 +0530196
197config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
198 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530199 default 0x7fff
Subrata Banik91e89c52019-11-01 18:30:01 +0530200
Jes Klinkee046b712020-08-19 14:01:30 -0700201# Tiger Lake SoC requires at least 100us interrupt pulses in order to guarantee detection
202# in all low power states. Cr50 TPM, if used, needs to be told to generate longer pulses.
203config TPM_CR50
204 select CR50_USE_LONG_INTERRUPT_PULSES
205
Srinidhi N Kaushik74c16d02020-11-04 11:29:33 -0800206config VBT_DATA_SIZE_KB
207 int
208 default 9
209
Subrata Banik91e89c52019-11-01 18:30:01 +0530210config VBOOT
211 select VBOOT_SEPARATE_VERSTAGE
212 select VBOOT_MUST_REQUEST_DISPLAY
Subrata Banik91e89c52019-11-01 18:30:01 +0530213 select VBOOT_STARTS_IN_BOOTBLOCK
214 select VBOOT_VBNV_CMOS
215 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
216
Subrata Banik91e89c52019-11-01 18:30:01 +0530217config CBFS_SIZE
218 hex
219 default 0x200000
220
Felix Singer3e3c4562020-12-17 18:34:45 +0000221config FSP_TYPE_IOT
222 bool
223 default n
224 help
225 This option allows to select FSP IOT type from 3rdparty/fsp repo
226
227config FSP_TYPE_CLIENT
228 bool
229 default !FSP_TYPE_IOT
230 help
231 This option allows to select FSP CLIENT type from 3rdparty/fsp repo
232
Subrata Banik91e89c52019-11-01 18:30:01 +0530233config FSP_HEADER_PATH
Felix Singer3e3c4562020-12-17 18:34:45 +0000234 default "3rdparty/fsp/TigerLakeFspBinPkg/TGL_IOT/Include/" if FSP_TYPE_IOT
235 default "3rdparty/fsp/TigerLakeFspBinPkg/Client/Include/" if FSP_TYPE_CLIENT
Subrata Banik91e89c52019-11-01 18:30:01 +0530236
237config FSP_FD_PATH
Felix Singer3e3c4562020-12-17 18:34:45 +0000238 default "3rdparty/fsp/TigerLakeFspBinPkg/TGL_IOT/Fsp.fd" if FSP_TYPE_IOT
239 default "3rdparty/fsp/TigerLakeFspBinPkg/Client/Fsp.fd" if FSP_TYPE_CLIENT
Subrata Banik91e89c52019-11-01 18:30:01 +0530240
Subrata Banik56626cf2020-02-27 19:39:22 +0530241config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT
242 int "Debug Consent for TGL"
243 # USB DBC is more common for developers so make this default to 3 if
244 # SOC_INTEL_DEBUG_CONSENT=y
245 default 3 if SOC_INTEL_DEBUG_CONSENT
246 default 0
247 help
248 This is to control debug interface on SOC.
249 Setting non-zero value will allow to use DBC or DCI to debug SOC.
250 PlatformDebugConsent in FspmUpd.h has the details.
251
252 Desired platform debug type are
253 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
254 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
255 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikebf1daa2020-05-19 12:32:41 +0530256
257config PRERAM_CBMEM_CONSOLE_SIZE
258 hex
Anil Kumar033038f2020-09-08 16:18:45 -0700259 default 0x2000
Brandon Breitenstein99b38a92019-12-19 23:12:58 -0800260
Furquan Shaikhf06d0462020-12-31 21:15:34 -0800261config DATA_BUS_WIDTH
262 int
263 default 128
264
265config DIMMS_PER_CHANNEL
266 int
267 default 2
268
269config MRC_CHANNEL_WIDTH
270 int
271 default 16
272
Francois Toguo15cbc3b2021-01-26 10:27:49 -0800273config SOC_INTEL_CRASHLOG
274 def_bool n
275 select SOC_INTEL_COMMON_BLOCK_CRASHLOG
276 select ACPI_BERT
277 help
278 Enables CrashLog.
279
Subrata Banik91e89c52019-11-01 18:30:01 +0530280endif