blob: 6d201127d65bd9f8354d062a24c229f9bbe59dde [file] [log] [blame]
Subrata Banik91e89c52019-11-01 18:30:01 +05301config SOC_INTEL_TIGERLAKE
2 bool
3 help
4 Intel Tigerlake support
5
Jeremy Soller6b1b9ad2021-08-12 10:49:58 -06006config SOC_INTEL_TIGERLAKE_PCH_H
7 bool
8
Aamir Bohraa23e0c92020-03-25 15:31:12 +05309if SOC_INTEL_TIGERLAKE
Subrata Banik91e89c52019-11-01 18:30:01 +053010
11config CPU_SPECIFIC_OPTIONS
12 def_bool y
13 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Angel Pons8e035e32021-06-22 12:58:20 +020014 select ARCH_X86
Subrata Banik91e89c52019-11-01 18:30:01 +053015 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik91e89c52019-11-01 18:30:01 +053016 select CACHE_MRC_SETTINGS
Alex Levinf3668fc2020-06-11 20:09:45 -070017 select CPU_INTEL_COMMON
Subrata Banik91e89c52019-11-01 18:30:01 +053018 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhner5307f122021-09-19 00:32:37 +020019 select CPU_SUPPORTS_INTEL_TME
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020020 select CPU_SUPPORTS_PM_TIMER_EMULATION
Subrata Banik34f26b22022-02-10 12:38:02 +053021 select DISPLAY_FSP_VERSION_INFO
Duncan Laurie2e9315c2020-10-27 10:29:16 -070022 select DRIVERS_USB_ACPI
Furquan Shaikhba75c4c2020-11-22 15:45:54 -080023 select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
Karthikeyan Ramasubramanian6abee842020-06-16 23:29:28 -060024 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik91e89c52019-11-01 18:30:01 +053025 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053026 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banik91e89c52019-11-01 18:30:01 +053027 select GENERIC_GPIO_LIB
28 select HAVE_FSP_GOP
Felix Singer3e3c4562020-12-17 18:34:45 +000029 select HAVE_INTEL_FSP_REPO
Subrata Banik91e89c52019-11-01 18:30:01 +053030 select INTEL_DESCRIPTOR_MODE_CAPABLE
31 select HAVE_SMI_HANDLER
32 select IDT_IN_EVERY_STAGE
Shreesh Chhabbi87c7ec72020-12-03 14:07:15 -080033 select INTEL_CAR_NEM_ENHANCED if !INTEL_CAR_NEM
Shreesh Chhabbi860c6842020-12-03 15:06:20 -080034 select CAR_HAS_SF_MASKS if INTEL_CAR_NEM_ENHANCED
Shreesh Chhabbi42b1d3f2020-11-05 12:06:29 -080035 select COS_MAPPED_TO_MSB if INTEL_CAR_NEM_ENHANCED
Subrata Banikad082652021-07-23 16:15:57 +053036 select SF_MASK_2WAYS_PER_BIT if INTEL_CAR_NEM_ENHANCED
Subrata Banik91e89c52019-11-01 18:30:01 +053037 select INTEL_GMA_ACPI
38 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
Aamir Bohra30cca6c2021-02-04 20:57:51 +053039 select MP_SERVICES_PPI_V1
Subrata Banik91e89c52019-11-01 18:30:01 +053040 select MRC_SETTINGS_PROTECT
Subrata Banik91e89c52019-11-01 18:30:01 +053041 select PARALLEL_MP_AP_WORK
Subrata Banikb622d4b2020-05-26 18:33:22 +053042 select PLATFORM_USES_FSP2_2
Subrata Banik91e89c52019-11-01 18:30:01 +053043 select PMC_GLOBAL_RESET_ENABLE_LOCK
44 select SOC_INTEL_COMMON
45 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
46 select SOC_INTEL_COMMON_BLOCK
47 select SOC_INTEL_COMMON_BLOCK_ACPI
Michael Niewöhner02275be2020-11-12 23:50:37 +010048 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
Angel Pons98f672a2021-02-19 19:42:10 +010049 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Michael Niewöhner8a6c34e2021-01-01 21:26:42 +010050 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
Tim Wawrzynczak72d94022021-07-01 08:25:11 -060051 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
52 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ
Subrata Banik21974ab2020-10-31 21:40:43 +053053 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik91e89c52019-11-01 18:30:01 +053054 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Furquan Shaikh23e88132020-10-08 23:44:20 -070055 select SOC_INTEL_COMMON_BLOCK_CNVI
Subrata Banik91e89c52019-11-01 18:30:01 +053056 select SOC_INTEL_COMMON_BLOCK_CPU
57 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010058 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -060059 select SOC_INTEL_COMMON_BLOCK_DTT
Nick Vaccaroef8258a2019-12-09 22:11:33 -080060 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Duncan Laurie7d971362020-11-05 10:09:58 -080061 select SOC_INTEL_COMMON_BLOCK_GPIO_IOSTANDBY
Subrata Banik91e89c52019-11-01 18:30:01 +053062 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
63 select SOC_INTEL_COMMON_BLOCK_HDA
Subrata Banik7ef471c2022-01-28 23:40:00 +053064 select SOC_INTEL_COMMON_BLOCK_HECI1_DISABLE_USING_PMC_IPC if DISABLE_HECI1_AT_PRE_BOOT
Tim Wawrzynczaked042a92021-02-04 17:07:14 -070065 select SOC_INTEL_COMMON_BLOCK_IRQ
Furquan Shaikhf06d0462020-12-31 21:15:34 -080066 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Duncan Lauriee997d852020-10-10 00:18:08 +000067 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Lean Sheng Tan75020002021-06-30 01:47:48 -070068 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
Subrata Banik91e89c52019-11-01 18:30:01 +053069 select SOC_INTEL_COMMON_BLOCK_SA
70 select SOC_INTEL_COMMON_BLOCK_SMM
71 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
John Zhao3c463712022-01-10 15:49:37 -080072 select SOC_INTEL_COMMON_BLOCK_TCSS
73 select SOC_INTEL_COMMON_BLOCK_TCSS_REG_ACCESS_REGBAR
Duncan Laurie6f58b992020-08-28 19:44:42 +000074 select SOC_INTEL_COMMON_BLOCK_USB4
75 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
Duncan Laurie2e9315c2020-10-27 10:29:16 -070076 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Karthikeyan Ramasubramanianfa9e8f92020-11-04 22:22:46 -070077 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053078 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banik91e89c52019-11-01 18:30:01 +053079 select SOC_INTEL_COMMON_PCH_BASE
80 select SOC_INTEL_COMMON_RESET
Sumeet R Pawnikard2132462020-05-15 15:55:37 +053081 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Tim Wawrzynczak25d24522021-06-17 12:44:06 -060082 select SOC_INTEL_CSE_SET_EOP
Subrata Banik91e89c52019-11-01 18:30:01 +053083 select SSE2
84 select SUPPORT_CPU_UCODE_IN_CBFS
85 select TSC_MONOTONIC_TIMER
86 select UDELAY_TSC
87 select UDK_2017_BINDING
Subrata Banik34f26b22022-02-10 12:38:02 +053088 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
89 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
90 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
Subrata Banik91e89c52019-11-01 18:30:01 +053091
Andy Pontd2f52ff2021-06-08 10:30:35 +010092config MAX_CPUS
93 int
Tim Crawfordf4962862021-08-30 13:08:36 -060094 default 16 if SOC_INTEL_TIGERLAKE_PCH_H
Andy Pontd2f52ff2021-06-08 10:30:35 +010095 default 8
96
Subrata Banik91e89c52019-11-01 18:30:01 +053097config DCACHE_RAM_BASE
98 default 0xfef00000
99
100config DCACHE_RAM_SIZE
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +0530101 default 0x80000
Subrata Banik91e89c52019-11-01 18:30:01 +0530102 help
103 The size of the cache-as-ram region required during bootblock
104 and/or romstage.
105
106config DCACHE_BSP_STACK_SIZE
107 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530108 default 0x40400
Subrata Banik91e89c52019-11-01 18:30:01 +0530109 help
110 The amount of anticipated stack usage in CAR by bootblock and
111 other stages. In the case of FSP_USES_CB_STACK default value will be
Aamir Bohra555c9b62020-03-23 10:13:10 +0530112 sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement
113 (~1KiB).
Subrata Banik91e89c52019-11-01 18:30:01 +0530114
115config FSP_TEMP_RAM_SIZE
116 hex
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +0530117 default 0x20000
Subrata Banik91e89c52019-11-01 18:30:01 +0530118 help
119 The amount of anticipated heap usage in CAR by FSP.
120 Refer to Platform FSP integration guide document to know
121 the exact FSP requirement for Heap setup.
122
Duncan Lauriea5bb31f2020-07-29 16:31:18 -0700123config CHIPSET_DEVICETREE
124 string
Jeremy Soller6b1b9ad2021-08-12 10:49:58 -0600125 default "soc/intel/tigerlake/chipset_pch_h.cb" if SOC_INTEL_TIGERLAKE_PCH_H
Duncan Lauriea5bb31f2020-07-29 16:31:18 -0700126 default "soc/intel/tigerlake/chipset.cb"
127
Furquan Shaikhba75c4c2020-11-22 15:45:54 -0800128config EXT_BIOS_WIN_BASE
129 default 0xf8000000
130
131config EXT_BIOS_WIN_SIZE
132 default 0x2000000
133
Subrata Banik91e89c52019-11-01 18:30:01 +0530134config IFD_CHIPSET
135 string
Aamir Bohra555c9b62020-03-23 10:13:10 +0530136 default "tgl"
Subrata Banik91e89c52019-11-01 18:30:01 +0530137
138config IED_REGION_SIZE
139 hex
140 default 0x400000
141
142config HEAP_SIZE
143 hex
Duncan Laurieaab226c2020-06-08 17:36:21 -0700144 default 0x10000
Subrata Banik91e89c52019-11-01 18:30:01 +0530145
146config MAX_ROOT_PORTS
147 int
Jeremy Soller6b1b9ad2021-08-12 10:49:58 -0600148 default 24 if SOC_INTEL_TIGERLAKE_PCH_H
Aamir Bohra555c9b62020-03-23 10:13:10 +0530149 default 12
Subrata Banik91e89c52019-11-01 18:30:01 +0530150
Rizwan Qureshia9794602021-04-08 20:31:47 +0530151config MAX_PCIE_CLOCK_SRC
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800152 int
Jeremy Soller6b1b9ad2021-08-12 10:49:58 -0600153 default 16 if SOC_INTEL_TIGERLAKE_PCH_H
Aamir Bohra555c9b62020-03-23 10:13:10 +0530154 default 7
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800155
Subrata Banik91e89c52019-11-01 18:30:01 +0530156config SMM_TSEG_SIZE
157 hex
158 default 0x800000
159
160config SMM_RESERVED_SIZE
161 hex
162 default 0x200000
163
164config PCR_BASE_ADDRESS
165 hex
166 default 0xfd000000
167 help
168 This option allows you to select MMIO Base Address of sideband bus.
169
Shelley Chen4e9bb332021-10-20 15:43:45 -0700170config ECAM_MMCONF_BASE_ADDRESS
Subrata Banik91e89c52019-11-01 18:30:01 +0530171 default 0xc0000000
172
173config CPU_BCLK_MHZ
174 int
175 default 100
176
177config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
178 int
179 default 120
180
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200181config CPU_XTAL_HZ
182 default 38400000
183
Subrata Banik91e89c52019-11-01 18:30:01 +0530184config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
185 int
186 default 133
187
188config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
189 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530190 default 4
Subrata Banik91e89c52019-11-01 18:30:01 +0530191
192config SOC_INTEL_I2C_DEV_MAX
193 int
194 default 6
195
Sean Rhodes56226662021-11-08 21:34:34 +0000196config SOC_INTEL_TIGERLAKE_S3
197 bool
198 default n
199 help
200 Select if using S3 instead of S0ix to disable D3Cold
201
Subrata Banik91e89c52019-11-01 18:30:01 +0530202config SOC_INTEL_UART_DEV_MAX
203 int
204 default 3
205
206config CONSOLE_UART_BASE_ADDRESS
207 hex
Bora Guvendikc3c3e452020-11-13 21:35:19 -0800208 default 0xfe03e000
Subrata Banik91e89c52019-11-01 18:30:01 +0530209 depends on INTEL_LPSS_UART_FOR_CONSOLE
210
211# Clock divider parameters for 115200 baud rate
Ravi Sarawadi38387012019-12-19 15:04:58 -0800212# Baudrate = (UART source clcok * M) /(N *16)
213# TGL UART source clock: 120MHz
Subrata Banik91e89c52019-11-01 18:30:01 +0530214config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
215 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530216 default 0x25a
Subrata Banik91e89c52019-11-01 18:30:01 +0530217
218config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
219 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530220 default 0x7fff
Subrata Banik91e89c52019-11-01 18:30:01 +0530221
Jes Klinkee046b712020-08-19 14:01:30 -0700222# Tiger Lake SoC requires at least 100us interrupt pulses in order to guarantee detection
223# in all low power states. Cr50 TPM, if used, needs to be told to generate longer pulses.
224config TPM_CR50
225 select CR50_USE_LONG_INTERRUPT_PULSES
226
Srinidhi N Kaushik74c16d02020-11-04 11:29:33 -0800227config VBT_DATA_SIZE_KB
228 int
229 default 9
230
Subrata Banik91e89c52019-11-01 18:30:01 +0530231config VBOOT
232 select VBOOT_SEPARATE_VERSTAGE
233 select VBOOT_MUST_REQUEST_DISPLAY
Subrata Banik91e89c52019-11-01 18:30:01 +0530234 select VBOOT_STARTS_IN_BOOTBLOCK
235 select VBOOT_VBNV_CMOS
236 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
237
Subrata Banik91e89c52019-11-01 18:30:01 +0530238config CBFS_SIZE
Subrata Banik91e89c52019-11-01 18:30:01 +0530239 default 0x200000
240
Felix Singer3e3c4562020-12-17 18:34:45 +0000241config FSP_TYPE_IOT
242 bool
243 default n
244 help
245 This option allows to select FSP IOT type from 3rdparty/fsp repo
246
247config FSP_TYPE_CLIENT
248 bool
249 default !FSP_TYPE_IOT
250 help
251 This option allows to select FSP CLIENT type from 3rdparty/fsp repo
252
Subrata Banik91e89c52019-11-01 18:30:01 +0530253config FSP_HEADER_PATH
Felix Singer3e3c4562020-12-17 18:34:45 +0000254 default "3rdparty/fsp/TigerLakeFspBinPkg/TGL_IOT/Include/" if FSP_TYPE_IOT
255 default "3rdparty/fsp/TigerLakeFspBinPkg/Client/Include/" if FSP_TYPE_CLIENT
Subrata Banik91e89c52019-11-01 18:30:01 +0530256
257config FSP_FD_PATH
Felix Singer3e3c4562020-12-17 18:34:45 +0000258 default "3rdparty/fsp/TigerLakeFspBinPkg/TGL_IOT/Fsp.fd" if FSP_TYPE_IOT
259 default "3rdparty/fsp/TigerLakeFspBinPkg/Client/Fsp.fd" if FSP_TYPE_CLIENT
Subrata Banik91e89c52019-11-01 18:30:01 +0530260
Subrata Banik56626cf2020-02-27 19:39:22 +0530261config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT
262 int "Debug Consent for TGL"
263 # USB DBC is more common for developers so make this default to 3 if
264 # SOC_INTEL_DEBUG_CONSENT=y
265 default 3 if SOC_INTEL_DEBUG_CONSENT
266 default 0
267 help
268 This is to control debug interface on SOC.
269 Setting non-zero value will allow to use DBC or DCI to debug SOC.
270 PlatformDebugConsent in FspmUpd.h has the details.
271
272 Desired platform debug type are
273 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
274 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
275 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikebf1daa2020-05-19 12:32:41 +0530276
277config PRERAM_CBMEM_CONSOLE_SIZE
278 hex
Anil Kumar033038f2020-09-08 16:18:45 -0700279 default 0x2000
Brandon Breitenstein99b38a92019-12-19 23:12:58 -0800280
Furquan Shaikhf06d0462020-12-31 21:15:34 -0800281config DATA_BUS_WIDTH
282 int
283 default 128
284
285config DIMMS_PER_CHANNEL
286 int
287 default 2
288
289config MRC_CHANNEL_WIDTH
290 int
291 default 16
292
Furquan Shaikhbee831e2021-08-24 13:42:05 -0700293# Intel recommends reserving the following resources per USB4 root port,
294# from TGL BIOS Spec (doc #611569) Revision 0.7.6 Section 7.2.5.1.5
295# - 42 buses
296# - 194 MiB Non-prefetchable memory
297# - 448 MiB Prefetchable memory
298if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
299
300config PCIEXP_HOTPLUG_BUSES
301 default 42
302
303config PCIEXP_HOTPLUG_MEM
304 default 0xc200000 # 194 MiB
305
306config PCIEXP_HOTPLUG_PREFETCH_MEM
307 default 0x1c000000 # 448 MiB
308
309endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
310
Tim Crawford1724b572021-09-21 21:50:49 -0600311config INTEL_GMA_BCLV_OFFSET
312 default 0xc8258
313
314config INTEL_GMA_BCLV_WIDTH
315 default 32
316
317config INTEL_GMA_BCLM_OFFSET
318 default 0xc8254
319
320config INTEL_GMA_BCLM_WIDTH
321 default 32
322
Subrata Banik91e89c52019-11-01 18:30:01 +0530323endif