blob: 79595269a2de23555f4e7f7e5058cd21fcea2b61 [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
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
Shreesh Chhabbi7fbcdb32020-09-16 11:39:01 -070025 select INTEL_CAR_NEM
Subrata Banik91e89c52019-11-01 18:30:01 +053026 select INTEL_GMA_ACPI
27 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
28 select IOAPIC
29 select MRC_SETTINGS_PROTECT
30 select PARALLEL_MP
31 select PARALLEL_MP_AP_WORK
32 select MICROCODE_BLOB_UNDISCLOSED
Subrata Banikb622d4b2020-05-26 18:33:22 +053033 select PLATFORM_USES_FSP2_2
Jonathan Zhang01e38552020-06-17 16:03:18 -070034 select FSP_PEIM_TO_PEIM_INTERFACE
Subrata Banik91e89c52019-11-01 18:30:01 +053035 select REG_SCRIPT
Subrata Banik91e89c52019-11-01 18:30:01 +053036 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banik0359d9d2020-09-28 18:43:47 +053037 select PMC_LOW_POWER_MODE_PROGRAM
Subrata Banik91e89c52019-11-01 18:30:01 +053038 select SOC_INTEL_COMMON
39 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
40 select SOC_INTEL_COMMON_BLOCK
41 select SOC_INTEL_COMMON_BLOCK_ACPI
42 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Furquan Shaikh23e88132020-10-08 23:44:20 -070043 select SOC_INTEL_COMMON_BLOCK_CNVI
Subrata Banik91e89c52019-11-01 18:30:01 +053044 select SOC_INTEL_COMMON_BLOCK_CPU
45 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -060046 select SOC_INTEL_COMMON_BLOCK_DTT
Nick Vaccaroef8258a2019-12-09 22:11:33 -080047 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banik91e89c52019-11-01 18:30:01 +053048 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
49 select SOC_INTEL_COMMON_BLOCK_HDA
50 select SOC_INTEL_COMMON_BLOCK_SA
51 select SOC_INTEL_COMMON_BLOCK_SMM
52 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Duncan Laurie6f58b992020-08-28 19:44:42 +000053 select SOC_INTEL_COMMON_BLOCK_USB4
54 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
Duncan Laurie2e9315c2020-10-27 10:29:16 -070055 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Subrata Banik91e89c52019-11-01 18:30:01 +053056 select SOC_INTEL_COMMON_PCH_BASE
57 select SOC_INTEL_COMMON_RESET
Arthur Heymansc6872f52019-11-11 12:29:56 +010058 select SOC_INTEL_COMMON_BLOCK_CAR
Sumeet R Pawnikard2132462020-05-15 15:55:37 +053059 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banik91e89c52019-11-01 18:30:01 +053060 select SSE2
61 select SUPPORT_CPU_UCODE_IN_CBFS
62 select TSC_MONOTONIC_TIMER
63 select UDELAY_TSC
64 select UDK_2017_BINDING
65 select DISPLAY_FSP_VERSION_INFO
66 select HECI_DISABLE_USING_SMM
67
68config DCACHE_RAM_BASE
69 default 0xfef00000
70
71config DCACHE_RAM_SIZE
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053072 default 0x80000
Subrata Banik91e89c52019-11-01 18:30:01 +053073 help
74 The size of the cache-as-ram region required during bootblock
75 and/or romstage.
76
77config DCACHE_BSP_STACK_SIZE
78 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +053079 default 0x40400
Subrata Banik91e89c52019-11-01 18:30:01 +053080 help
81 The amount of anticipated stack usage in CAR by bootblock and
82 other stages. In the case of FSP_USES_CB_STACK default value will be
Aamir Bohra555c9b62020-03-23 10:13:10 +053083 sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement
84 (~1KiB).
Subrata Banik91e89c52019-11-01 18:30:01 +053085
86config FSP_TEMP_RAM_SIZE
87 hex
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053088 default 0x20000
Subrata Banik91e89c52019-11-01 18:30:01 +053089 help
90 The amount of anticipated heap usage in CAR by FSP.
91 Refer to Platform FSP integration guide document to know
92 the exact FSP requirement for Heap setup.
93
Duncan Lauriea5bb31f2020-07-29 16:31:18 -070094config CHIPSET_DEVICETREE
95 string
96 default "soc/intel/tigerlake/chipset.cb"
97
Subrata Banik91e89c52019-11-01 18:30:01 +053098config IFD_CHIPSET
99 string
Aamir Bohra555c9b62020-03-23 10:13:10 +0530100 default "tgl"
Subrata Banik91e89c52019-11-01 18:30:01 +0530101
102config IED_REGION_SIZE
103 hex
104 default 0x400000
105
106config HEAP_SIZE
107 hex
Duncan Laurieaab226c2020-06-08 17:36:21 -0700108 default 0x10000
Subrata Banik91e89c52019-11-01 18:30:01 +0530109
110config MAX_ROOT_PORTS
111 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530112 default 12
Subrata Banik91e89c52019-11-01 18:30:01 +0530113
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800114config MAX_PCIE_CLOCKS
115 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530116 default 7
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800117
Subrata Banik91e89c52019-11-01 18:30:01 +0530118config SMM_TSEG_SIZE
119 hex
120 default 0x800000
121
122config SMM_RESERVED_SIZE
123 hex
124 default 0x200000
125
126config PCR_BASE_ADDRESS
127 hex
128 default 0xfd000000
129 help
130 This option allows you to select MMIO Base Address of sideband bus.
131
132config MMCONF_BASE_ADDRESS
133 hex
134 default 0xc0000000
135
136config CPU_BCLK_MHZ
137 int
138 default 100
139
140config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
141 int
142 default 120
143
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200144config CPU_XTAL_HZ
145 default 38400000
146
Subrata Banik91e89c52019-11-01 18:30:01 +0530147config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
148 int
149 default 133
150
151config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
152 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530153 default 4
Subrata Banik91e89c52019-11-01 18:30:01 +0530154
155config SOC_INTEL_I2C_DEV_MAX
156 int
157 default 6
158
159config SOC_INTEL_UART_DEV_MAX
160 int
161 default 3
162
163config CONSOLE_UART_BASE_ADDRESS
164 hex
165 default 0xfe032000
166 depends on INTEL_LPSS_UART_FOR_CONSOLE
167
168# Clock divider parameters for 115200 baud rate
Ravi Sarawadi38387012019-12-19 15:04:58 -0800169# Baudrate = (UART source clcok * M) /(N *16)
170# TGL UART source clock: 120MHz
Subrata Banik91e89c52019-11-01 18:30:01 +0530171config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
172 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530173 default 0x25a
Subrata Banik91e89c52019-11-01 18:30:01 +0530174
175config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
176 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530177 default 0x7fff
Subrata Banik91e89c52019-11-01 18:30:01 +0530178
179config CHROMEOS
180 select CHROMEOS_RAMOOPS_DYNAMIC
181
Jes Klinkee046b712020-08-19 14:01:30 -0700182# Tiger Lake SoC requires at least 100us interrupt pulses in order to guarantee detection
183# in all low power states. Cr50 TPM, if used, needs to be told to generate longer pulses.
184config TPM_CR50
185 select CR50_USE_LONG_INTERRUPT_PULSES
186
Subrata Banik91e89c52019-11-01 18:30:01 +0530187config VBOOT
188 select VBOOT_SEPARATE_VERSTAGE
189 select VBOOT_MUST_REQUEST_DISPLAY
Subrata Banik91e89c52019-11-01 18:30:01 +0530190 select VBOOT_STARTS_IN_BOOTBLOCK
191 select VBOOT_VBNV_CMOS
192 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
193
194config C_ENV_BOOTBLOCK_SIZE
195 hex
196 default 0xC000
197
198config CBFS_SIZE
199 hex
200 default 0x200000
201
Subrata Banik91e89c52019-11-01 18:30:01 +0530202config FSP_HEADER_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530203 default "src/vendorcode/intel/fsp/fsp2_0/tigerlake/"
Subrata Banik91e89c52019-11-01 18:30:01 +0530204
205config FSP_FD_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530206 default "3rdparty/fsp/TigerLakeFspBinPkg/Fsp.fd"
Subrata Banik91e89c52019-11-01 18:30:01 +0530207
Subrata Banik56626cf2020-02-27 19:39:22 +0530208config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT
209 int "Debug Consent for TGL"
210 # USB DBC is more common for developers so make this default to 3 if
211 # SOC_INTEL_DEBUG_CONSENT=y
212 default 3 if SOC_INTEL_DEBUG_CONSENT
213 default 0
214 help
215 This is to control debug interface on SOC.
216 Setting non-zero value will allow to use DBC or DCI to debug SOC.
217 PlatformDebugConsent in FspmUpd.h has the details.
218
219 Desired platform debug type are
220 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
221 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
222 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikebf1daa2020-05-19 12:32:41 +0530223
224config PRERAM_CBMEM_CONSOLE_SIZE
225 hex
Anil Kumar033038f2020-09-08 16:18:45 -0700226 default 0x2000
Subrata Banik91e89c52019-11-01 18:30:01 +0530227endif