blob: 4df2e852ca99abf7f36acbe463080391d926e907 [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
Tim Wawrzynczak0cded1f2020-09-01 16:11:48 -060015 select CPU_INTEL_COMMON_HYPERTHREADING
Subrata Banik91e89c52019-11-01 18:30:01 +053016 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
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
51 select SOC_INTEL_COMMON_PCH_BASE
52 select SOC_INTEL_COMMON_RESET
Arthur Heymansc6872f52019-11-11 12:29:56 +010053 select SOC_INTEL_COMMON_BLOCK_CAR
Sumeet R Pawnikard2132462020-05-15 15:55:37 +053054 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banik91e89c52019-11-01 18:30:01 +053055 select SSE2
56 select SUPPORT_CPU_UCODE_IN_CBFS
57 select TSC_MONOTONIC_TIMER
58 select UDELAY_TSC
59 select UDK_2017_BINDING
60 select DISPLAY_FSP_VERSION_INFO
61 select HECI_DISABLE_USING_SMM
62
63config DCACHE_RAM_BASE
64 default 0xfef00000
65
66config DCACHE_RAM_SIZE
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053067 default 0x80000
Subrata Banik91e89c52019-11-01 18:30:01 +053068 help
69 The size of the cache-as-ram region required during bootblock
70 and/or romstage.
71
72config DCACHE_BSP_STACK_SIZE
73 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +053074 default 0x40400
Subrata Banik91e89c52019-11-01 18:30:01 +053075 help
76 The amount of anticipated stack usage in CAR by bootblock and
77 other stages. In the case of FSP_USES_CB_STACK default value will be
Aamir Bohra555c9b62020-03-23 10:13:10 +053078 sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement
79 (~1KiB).
Subrata Banik91e89c52019-11-01 18:30:01 +053080
81config FSP_TEMP_RAM_SIZE
82 hex
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053083 default 0x20000
Subrata Banik91e89c52019-11-01 18:30:01 +053084 help
85 The amount of anticipated heap usage in CAR by FSP.
86 Refer to Platform FSP integration guide document to know
87 the exact FSP requirement for Heap setup.
88
Duncan Lauriea5bb31f2020-07-29 16:31:18 -070089config CHIPSET_DEVICETREE
90 string
91 default "soc/intel/tigerlake/chipset.cb"
92
Subrata Banik91e89c52019-11-01 18:30:01 +053093config IFD_CHIPSET
94 string
Aamir Bohra555c9b62020-03-23 10:13:10 +053095 default "tgl"
Subrata Banik91e89c52019-11-01 18:30:01 +053096
97config IED_REGION_SIZE
98 hex
99 default 0x400000
100
101config HEAP_SIZE
102 hex
Duncan Laurieaab226c2020-06-08 17:36:21 -0700103 default 0x10000
Subrata Banik91e89c52019-11-01 18:30:01 +0530104
105config MAX_ROOT_PORTS
106 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530107 default 12
Subrata Banik91e89c52019-11-01 18:30:01 +0530108
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800109config MAX_PCIE_CLOCKS
110 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530111 default 7
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800112
Subrata Banik91e89c52019-11-01 18:30:01 +0530113config SMM_TSEG_SIZE
114 hex
115 default 0x800000
116
117config SMM_RESERVED_SIZE
118 hex
119 default 0x200000
120
121config PCR_BASE_ADDRESS
122 hex
123 default 0xfd000000
124 help
125 This option allows you to select MMIO Base Address of sideband bus.
126
127config MMCONF_BASE_ADDRESS
128 hex
129 default 0xc0000000
130
131config CPU_BCLK_MHZ
132 int
133 default 100
134
135config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
136 int
137 default 120
138
139config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
140 int
141 default 133
142
143config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
144 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530145 default 4
Subrata Banik91e89c52019-11-01 18:30:01 +0530146
147config SOC_INTEL_I2C_DEV_MAX
148 int
149 default 6
150
151config SOC_INTEL_UART_DEV_MAX
152 int
153 default 3
154
155config CONSOLE_UART_BASE_ADDRESS
156 hex
157 default 0xfe032000
158 depends on INTEL_LPSS_UART_FOR_CONSOLE
159
160# Clock divider parameters for 115200 baud rate
Ravi Sarawadi38387012019-12-19 15:04:58 -0800161# Baudrate = (UART source clcok * M) /(N *16)
162# TGL UART source clock: 120MHz
Subrata Banik91e89c52019-11-01 18:30:01 +0530163config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
164 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530165 default 0x25a
Subrata Banik91e89c52019-11-01 18:30:01 +0530166
167config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
168 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530169 default 0x7fff
Subrata Banik91e89c52019-11-01 18:30:01 +0530170
171config CHROMEOS
172 select CHROMEOS_RAMOOPS_DYNAMIC
173
Jes Klinkee046b712020-08-19 14:01:30 -0700174# Tiger Lake SoC requires at least 100us interrupt pulses in order to guarantee detection
175# in all low power states. Cr50 TPM, if used, needs to be told to generate longer pulses.
176config TPM_CR50
177 select CR50_USE_LONG_INTERRUPT_PULSES
178
Subrata Banik91e89c52019-11-01 18:30:01 +0530179config VBOOT
180 select VBOOT_SEPARATE_VERSTAGE
181 select VBOOT_MUST_REQUEST_DISPLAY
Subrata Banik91e89c52019-11-01 18:30:01 +0530182 select VBOOT_STARTS_IN_BOOTBLOCK
183 select VBOOT_VBNV_CMOS
184 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
185
186config C_ENV_BOOTBLOCK_SIZE
187 hex
188 default 0xC000
189
190config CBFS_SIZE
191 hex
192 default 0x200000
193
Subrata Banik91e89c52019-11-01 18:30:01 +0530194config FSP_HEADER_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530195 default "src/vendorcode/intel/fsp/fsp2_0/tigerlake/"
Subrata Banik91e89c52019-11-01 18:30:01 +0530196
197config FSP_FD_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530198 default "3rdparty/fsp/TigerLakeFspBinPkg/Fsp.fd"
Subrata Banik91e89c52019-11-01 18:30:01 +0530199
Subrata Banik56626cf2020-02-27 19:39:22 +0530200config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT
201 int "Debug Consent for TGL"
202 # USB DBC is more common for developers so make this default to 3 if
203 # SOC_INTEL_DEBUG_CONSENT=y
204 default 3 if SOC_INTEL_DEBUG_CONSENT
205 default 0
206 help
207 This is to control debug interface on SOC.
208 Setting non-zero value will allow to use DBC or DCI to debug SOC.
209 PlatformDebugConsent in FspmUpd.h has the details.
210
211 Desired platform debug type are
212 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
213 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
214 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikebf1daa2020-05-19 12:32:41 +0530215
216config PRERAM_CBMEM_CONSOLE_SIZE
217 hex
Anil Kumar033038f2020-09-08 16:18:45 -0700218 default 0x2000
Subrata Banik91e89c52019-11-01 18:30:01 +0530219endif