blob: 0021da5821da0d7344742bb7ad692a92425ff421 [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
Karthikeyan Ramasubramanian6abee842020-06-16 23:29:28 -060017 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik91e89c52019-11-01 18:30:01 +053018 select FSP_M_XIP
19 select GENERIC_GPIO_LIB
20 select HAVE_FSP_GOP
21 select INTEL_DESCRIPTOR_MODE_CAPABLE
22 select HAVE_SMI_HANDLER
23 select IDT_IN_EVERY_STAGE
Shreesh Chhabbi7fbcdb32020-09-16 11:39:01 -070024 select INTEL_CAR_NEM
Subrata Banik91e89c52019-11-01 18:30:01 +053025 select INTEL_GMA_ACPI
26 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
27 select IOAPIC
28 select MRC_SETTINGS_PROTECT
29 select PARALLEL_MP
30 select PARALLEL_MP_AP_WORK
31 select MICROCODE_BLOB_UNDISCLOSED
Subrata Banikb622d4b2020-05-26 18:33:22 +053032 select PLATFORM_USES_FSP2_2
Jonathan Zhang01e38552020-06-17 16:03:18 -070033 select FSP_PEIM_TO_PEIM_INTERFACE
Subrata Banik91e89c52019-11-01 18:30:01 +053034 select REG_SCRIPT
Subrata Banik91e89c52019-11-01 18:30:01 +053035 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banik0359d9d2020-09-28 18:43:47 +053036 select PMC_LOW_POWER_MODE_PROGRAM
Subrata Banik91e89c52019-11-01 18:30:01 +053037 select SOC_INTEL_COMMON
38 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
39 select SOC_INTEL_COMMON_BLOCK
40 select SOC_INTEL_COMMON_BLOCK_ACPI
41 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
42 select SOC_INTEL_COMMON_BLOCK_CPU
43 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -060044 select SOC_INTEL_COMMON_BLOCK_DTT
Nick Vaccaroef8258a2019-12-09 22:11:33 -080045 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banik91e89c52019-11-01 18:30:01 +053046 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
47 select SOC_INTEL_COMMON_BLOCK_HDA
48 select SOC_INTEL_COMMON_BLOCK_SA
49 select SOC_INTEL_COMMON_BLOCK_SMM
50 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Duncan Laurie6f58b992020-08-28 19:44:42 +000051 select SOC_INTEL_COMMON_BLOCK_USB4
52 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
Subrata Banik91e89c52019-11-01 18:30:01 +053053 select SOC_INTEL_COMMON_PCH_BASE
54 select SOC_INTEL_COMMON_RESET
Arthur Heymansc6872f52019-11-11 12:29:56 +010055 select SOC_INTEL_COMMON_BLOCK_CAR
Sumeet R Pawnikard2132462020-05-15 15:55:37 +053056 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banik91e89c52019-11-01 18:30:01 +053057 select SSE2
58 select SUPPORT_CPU_UCODE_IN_CBFS
59 select TSC_MONOTONIC_TIMER
60 select UDELAY_TSC
61 select UDK_2017_BINDING
62 select DISPLAY_FSP_VERSION_INFO
63 select HECI_DISABLE_USING_SMM
64
65config DCACHE_RAM_BASE
66 default 0xfef00000
67
68config DCACHE_RAM_SIZE
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053069 default 0x80000
Subrata Banik91e89c52019-11-01 18:30:01 +053070 help
71 The size of the cache-as-ram region required during bootblock
72 and/or romstage.
73
74config DCACHE_BSP_STACK_SIZE
75 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +053076 default 0x40400
Subrata Banik91e89c52019-11-01 18:30:01 +053077 help
78 The amount of anticipated stack usage in CAR by bootblock and
79 other stages. In the case of FSP_USES_CB_STACK default value will be
Aamir Bohra555c9b62020-03-23 10:13:10 +053080 sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement
81 (~1KiB).
Subrata Banik91e89c52019-11-01 18:30:01 +053082
83config FSP_TEMP_RAM_SIZE
84 hex
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053085 default 0x20000
Subrata Banik91e89c52019-11-01 18:30:01 +053086 help
87 The amount of anticipated heap usage in CAR by FSP.
88 Refer to Platform FSP integration guide document to know
89 the exact FSP requirement for Heap setup.
90
Duncan Lauriea5bb31f2020-07-29 16:31:18 -070091config CHIPSET_DEVICETREE
92 string
93 default "soc/intel/tigerlake/chipset.cb"
94
Subrata Banik91e89c52019-11-01 18:30:01 +053095config IFD_CHIPSET
96 string
Aamir Bohra555c9b62020-03-23 10:13:10 +053097 default "tgl"
Subrata Banik91e89c52019-11-01 18:30:01 +053098
99config IED_REGION_SIZE
100 hex
101 default 0x400000
102
103config HEAP_SIZE
104 hex
Duncan Laurieaab226c2020-06-08 17:36:21 -0700105 default 0x10000
Subrata Banik91e89c52019-11-01 18:30:01 +0530106
107config MAX_ROOT_PORTS
108 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530109 default 12
Subrata Banik91e89c52019-11-01 18:30:01 +0530110
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800111config MAX_PCIE_CLOCKS
112 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530113 default 7
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800114
Subrata Banik91e89c52019-11-01 18:30:01 +0530115config SMM_TSEG_SIZE
116 hex
117 default 0x800000
118
119config SMM_RESERVED_SIZE
120 hex
121 default 0x200000
122
123config PCR_BASE_ADDRESS
124 hex
125 default 0xfd000000
126 help
127 This option allows you to select MMIO Base Address of sideband bus.
128
129config MMCONF_BASE_ADDRESS
130 hex
131 default 0xc0000000
132
133config CPU_BCLK_MHZ
134 int
135 default 100
136
137config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
138 int
139 default 120
140
141config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
142 int
143 default 133
144
145config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
146 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530147 default 4
Subrata Banik91e89c52019-11-01 18:30:01 +0530148
149config SOC_INTEL_I2C_DEV_MAX
150 int
151 default 6
152
153config SOC_INTEL_UART_DEV_MAX
154 int
155 default 3
156
157config CONSOLE_UART_BASE_ADDRESS
158 hex
159 default 0xfe032000
160 depends on INTEL_LPSS_UART_FOR_CONSOLE
161
162# Clock divider parameters for 115200 baud rate
Ravi Sarawadi38387012019-12-19 15:04:58 -0800163# Baudrate = (UART source clcok * M) /(N *16)
164# TGL UART source clock: 120MHz
Subrata Banik91e89c52019-11-01 18:30:01 +0530165config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
166 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530167 default 0x25a
Subrata Banik91e89c52019-11-01 18:30:01 +0530168
169config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
170 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530171 default 0x7fff
Subrata Banik91e89c52019-11-01 18:30:01 +0530172
173config CHROMEOS
174 select CHROMEOS_RAMOOPS_DYNAMIC
175
Jes Klinkee046b712020-08-19 14:01:30 -0700176# Tiger Lake SoC requires at least 100us interrupt pulses in order to guarantee detection
177# in all low power states. Cr50 TPM, if used, needs to be told to generate longer pulses.
178config TPM_CR50
179 select CR50_USE_LONG_INTERRUPT_PULSES
180
Subrata Banik91e89c52019-11-01 18:30:01 +0530181config VBOOT
182 select VBOOT_SEPARATE_VERSTAGE
183 select VBOOT_MUST_REQUEST_DISPLAY
Subrata Banik91e89c52019-11-01 18:30:01 +0530184 select VBOOT_STARTS_IN_BOOTBLOCK
185 select VBOOT_VBNV_CMOS
186 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
187
188config C_ENV_BOOTBLOCK_SIZE
189 hex
190 default 0xC000
191
192config CBFS_SIZE
193 hex
194 default 0x200000
195
Subrata Banik91e89c52019-11-01 18:30:01 +0530196config FSP_HEADER_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530197 default "src/vendorcode/intel/fsp/fsp2_0/tigerlake/"
Subrata Banik91e89c52019-11-01 18:30:01 +0530198
199config FSP_FD_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530200 default "3rdparty/fsp/TigerLakeFspBinPkg/Fsp.fd"
Subrata Banik91e89c52019-11-01 18:30:01 +0530201
Subrata Banik56626cf2020-02-27 19:39:22 +0530202config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT
203 int "Debug Consent for TGL"
204 # USB DBC is more common for developers so make this default to 3 if
205 # SOC_INTEL_DEBUG_CONSENT=y
206 default 3 if SOC_INTEL_DEBUG_CONSENT
207 default 0
208 help
209 This is to control debug interface on SOC.
210 Setting non-zero value will allow to use DBC or DCI to debug SOC.
211 PlatformDebugConsent in FspmUpd.h has the details.
212
213 Desired platform debug type are
214 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
215 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
216 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikebf1daa2020-05-19 12:32:41 +0530217
218config PRERAM_CBMEM_CONSOLE_SIZE
219 hex
Anil Kumar033038f2020-09-08 16:18:45 -0700220 default 0x2000
Subrata Banik91e89c52019-11-01 18:30:01 +0530221endif