blob: e962e4ccccbf4539322af467a821bfe8006dd92a [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
Karthikeyan Ramasubramanian6abee842020-06-16 23:29:28 -060018 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik91e89c52019-11-01 18:30:01 +053019 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053020 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banik91e89c52019-11-01 18:30:01 +053021 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 Chhabbi42b1d3f2020-11-05 12:06:29 -080026 select USE_CAR_NEM_ENHANCED_V1 if !INTEL_CAR_NEM
27 select COS_MAPPED_TO_MSB if INTEL_CAR_NEM_ENHANCED
Subrata Banik91e89c52019-11-01 18:30:01 +053028 select INTEL_GMA_ACPI
29 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
30 select IOAPIC
31 select MRC_SETTINGS_PROTECT
32 select PARALLEL_MP
33 select PARALLEL_MP_AP_WORK
34 select MICROCODE_BLOB_UNDISCLOSED
Subrata Banikb622d4b2020-05-26 18:33:22 +053035 select PLATFORM_USES_FSP2_2
Jonathan Zhang01e38552020-06-17 16:03:18 -070036 select FSP_PEIM_TO_PEIM_INTERFACE
Subrata Banik91e89c52019-11-01 18:30:01 +053037 select REG_SCRIPT
Subrata Banik91e89c52019-11-01 18:30:01 +053038 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banik0359d9d2020-09-28 18:43:47 +053039 select PMC_LOW_POWER_MODE_PROGRAM
Subrata Banik91e89c52019-11-01 18:30:01 +053040 select SOC_INTEL_COMMON
41 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
42 select SOC_INTEL_COMMON_BLOCK
43 select SOC_INTEL_COMMON_BLOCK_ACPI
Subrata Banik21974ab2020-10-31 21:40:43 +053044 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik91e89c52019-11-01 18:30:01 +053045 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Furquan Shaikh23e88132020-10-08 23:44:20 -070046 select SOC_INTEL_COMMON_BLOCK_CNVI
Subrata Banik91e89c52019-11-01 18:30:01 +053047 select SOC_INTEL_COMMON_BLOCK_CPU
48 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -060049 select SOC_INTEL_COMMON_BLOCK_DTT
Nick Vaccaroef8258a2019-12-09 22:11:33 -080050 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Duncan Laurie7d971362020-11-05 10:09:58 -080051 select SOC_INTEL_COMMON_BLOCK_GPIO_IOSTANDBY
Subrata Banik91e89c52019-11-01 18:30:01 +053052 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
53 select SOC_INTEL_COMMON_BLOCK_HDA
Duncan Lauriee997d852020-10-10 00:18:08 +000054 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Subrata Banik91e89c52019-11-01 18:30:01 +053055 select SOC_INTEL_COMMON_BLOCK_SA
56 select SOC_INTEL_COMMON_BLOCK_SMM
57 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Duncan Laurie6f58b992020-08-28 19:44:42 +000058 select SOC_INTEL_COMMON_BLOCK_USB4
59 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
Duncan Laurie2e9315c2020-10-27 10:29:16 -070060 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Karthikeyan Ramasubramanianfa9e8f92020-11-04 22:22:46 -070061 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053062 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banik91e89c52019-11-01 18:30:01 +053063 select SOC_INTEL_COMMON_PCH_BASE
64 select SOC_INTEL_COMMON_RESET
Sumeet R Pawnikard2132462020-05-15 15:55:37 +053065 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banik91e89c52019-11-01 18:30:01 +053066 select SSE2
67 select SUPPORT_CPU_UCODE_IN_CBFS
68 select TSC_MONOTONIC_TIMER
69 select UDELAY_TSC
70 select UDK_2017_BINDING
71 select DISPLAY_FSP_VERSION_INFO
72 select HECI_DISABLE_USING_SMM
73
74config DCACHE_RAM_BASE
75 default 0xfef00000
76
77config DCACHE_RAM_SIZE
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053078 default 0x80000
Subrata Banik91e89c52019-11-01 18:30:01 +053079 help
80 The size of the cache-as-ram region required during bootblock
81 and/or romstage.
82
83config DCACHE_BSP_STACK_SIZE
84 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +053085 default 0x40400
Subrata Banik91e89c52019-11-01 18:30:01 +053086 help
87 The amount of anticipated stack usage in CAR by bootblock and
88 other stages. In the case of FSP_USES_CB_STACK default value will be
Aamir Bohra555c9b62020-03-23 10:13:10 +053089 sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement
90 (~1KiB).
Subrata Banik91e89c52019-11-01 18:30:01 +053091
92config FSP_TEMP_RAM_SIZE
93 hex
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053094 default 0x20000
Subrata Banik91e89c52019-11-01 18:30:01 +053095 help
96 The amount of anticipated heap usage in CAR by FSP.
97 Refer to Platform FSP integration guide document to know
98 the exact FSP requirement for Heap setup.
99
Duncan Lauriea5bb31f2020-07-29 16:31:18 -0700100config CHIPSET_DEVICETREE
101 string
102 default "soc/intel/tigerlake/chipset.cb"
103
Subrata Banik91e89c52019-11-01 18:30:01 +0530104config IFD_CHIPSET
105 string
Aamir Bohra555c9b62020-03-23 10:13:10 +0530106 default "tgl"
Subrata Banik91e89c52019-11-01 18:30:01 +0530107
108config IED_REGION_SIZE
109 hex
110 default 0x400000
111
112config HEAP_SIZE
113 hex
Duncan Laurieaab226c2020-06-08 17:36:21 -0700114 default 0x10000
Subrata Banik91e89c52019-11-01 18:30:01 +0530115
116config MAX_ROOT_PORTS
117 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530118 default 12
Subrata Banik91e89c52019-11-01 18:30:01 +0530119
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800120config MAX_PCIE_CLOCKS
121 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530122 default 7
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800123
Subrata Banik91e89c52019-11-01 18:30:01 +0530124config SMM_TSEG_SIZE
125 hex
126 default 0x800000
127
128config SMM_RESERVED_SIZE
129 hex
130 default 0x200000
131
132config PCR_BASE_ADDRESS
133 hex
134 default 0xfd000000
135 help
136 This option allows you to select MMIO Base Address of sideband bus.
137
138config MMCONF_BASE_ADDRESS
139 hex
140 default 0xc0000000
141
142config CPU_BCLK_MHZ
143 int
144 default 100
145
146config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
147 int
148 default 120
149
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200150config CPU_XTAL_HZ
151 default 38400000
152
Subrata Banik91e89c52019-11-01 18:30:01 +0530153config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
154 int
155 default 133
156
157config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
158 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530159 default 4
Subrata Banik91e89c52019-11-01 18:30:01 +0530160
161config SOC_INTEL_I2C_DEV_MAX
162 int
163 default 6
164
165config SOC_INTEL_UART_DEV_MAX
166 int
167 default 3
168
169config CONSOLE_UART_BASE_ADDRESS
170 hex
171 default 0xfe032000
172 depends on INTEL_LPSS_UART_FOR_CONSOLE
173
174# Clock divider parameters for 115200 baud rate
Ravi Sarawadi38387012019-12-19 15:04:58 -0800175# Baudrate = (UART source clcok * M) /(N *16)
176# TGL UART source clock: 120MHz
Subrata Banik91e89c52019-11-01 18:30:01 +0530177config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
178 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530179 default 0x25a
Subrata Banik91e89c52019-11-01 18:30:01 +0530180
181config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
182 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530183 default 0x7fff
Subrata Banik91e89c52019-11-01 18:30:01 +0530184
185config CHROMEOS
186 select CHROMEOS_RAMOOPS_DYNAMIC
187
Jes Klinkee046b712020-08-19 14:01:30 -0700188# Tiger Lake SoC requires at least 100us interrupt pulses in order to guarantee detection
189# in all low power states. Cr50 TPM, if used, needs to be told to generate longer pulses.
190config TPM_CR50
191 select CR50_USE_LONG_INTERRUPT_PULSES
192
Srinidhi N Kaushik74c16d02020-11-04 11:29:33 -0800193config VBT_DATA_SIZE_KB
194 int
195 default 9
196
Subrata Banik91e89c52019-11-01 18:30:01 +0530197config VBOOT
198 select VBOOT_SEPARATE_VERSTAGE
199 select VBOOT_MUST_REQUEST_DISPLAY
Subrata Banik91e89c52019-11-01 18:30:01 +0530200 select VBOOT_STARTS_IN_BOOTBLOCK
201 select VBOOT_VBNV_CMOS
202 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
203
204config C_ENV_BOOTBLOCK_SIZE
205 hex
206 default 0xC000
207
208config CBFS_SIZE
209 hex
210 default 0x200000
211
Subrata Banik91e89c52019-11-01 18:30:01 +0530212config FSP_HEADER_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530213 default "src/vendorcode/intel/fsp/fsp2_0/tigerlake/"
Subrata Banik91e89c52019-11-01 18:30:01 +0530214
215config FSP_FD_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530216 default "3rdparty/fsp/TigerLakeFspBinPkg/Fsp.fd"
Subrata Banik91e89c52019-11-01 18:30:01 +0530217
Subrata Banik56626cf2020-02-27 19:39:22 +0530218config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT
219 int "Debug Consent for TGL"
220 # USB DBC is more common for developers so make this default to 3 if
221 # SOC_INTEL_DEBUG_CONSENT=y
222 default 3 if SOC_INTEL_DEBUG_CONSENT
223 default 0
224 help
225 This is to control debug interface on SOC.
226 Setting non-zero value will allow to use DBC or DCI to debug SOC.
227 PlatformDebugConsent in FspmUpd.h has the details.
228
229 Desired platform debug type are
230 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
231 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
232 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikebf1daa2020-05-19 12:32:41 +0530233
234config PRERAM_CBMEM_CONSOLE_SIZE
235 hex
Anil Kumar033038f2020-09-08 16:18:45 -0700236 default 0x2000
Brandon Breitenstein99b38a92019-12-19 23:12:58 -0800237
238config EARLY_TCSS_DISPLAY
239 bool "Enable early TCSS display"
240 depends on RUN_FSP_GOP
241 help
242 Enable displays to be detected over Type-C ports during boot.
243
Subrata Banik91e89c52019-11-01 18:30:01 +0530244endif