blob: 51c379dff22379d200e51ffa084fca8338f83777 [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
11 select ARCH_BOOTBLOCK_X86_32
12 select ARCH_RAMSTAGE_X86_32
13 select ARCH_ROMSTAGE_X86_32
14 select ARCH_VERSTAGE_X86_32
15 select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH
16 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik91e89c52019-11-01 18:30:01 +053017 select CACHE_MRC_SETTINGS
Alex Levinf3668fc2020-06-11 20:09:45 -070018 select CPU_INTEL_COMMON
Subrata Banik91e89c52019-11-01 18:30:01 +053019 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Karthikeyan Ramasubramanian6abee842020-06-16 23:29:28 -060020 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik91e89c52019-11-01 18:30:01 +053021 select FSP_M_XIP
22 select GENERIC_GPIO_LIB
23 select HAVE_FSP_GOP
24 select INTEL_DESCRIPTOR_MODE_CAPABLE
25 select HAVE_SMI_HANDLER
26 select IDT_IN_EVERY_STAGE
Aamir Bohraa23e0c92020-03-25 15:31:12 +053027 select INTEL_CAR_NEM #TODO - Enable 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
38 select SMP
Subrata Banik91e89c52019-11-01 18:30:01 +053039 select PMC_GLOBAL_RESET_ENABLE_LOCK
Kyösti Mälkkib0f15f02019-11-22 23:15:29 +020040 select CPU_INTEL_COMMON_SMM
Subrata Banik91e89c52019-11-01 18:30:01 +053041 select SOC_INTEL_COMMON
42 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
43 select SOC_INTEL_COMMON_BLOCK
44 select SOC_INTEL_COMMON_BLOCK_ACPI
45 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
46 select SOC_INTEL_COMMON_BLOCK_CPU
47 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Tim Wawrzynczakc5316ec2020-05-29 15:20:56 -060048 select SOC_INTEL_COMMON_BLOCK_DTT
Nick Vaccaroef8258a2019-12-09 22:11:33 -080049 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banik91e89c52019-11-01 18:30:01 +053050 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
51 select SOC_INTEL_COMMON_BLOCK_HDA
52 select SOC_INTEL_COMMON_BLOCK_SA
53 select SOC_INTEL_COMMON_BLOCK_SMM
54 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
55 select SOC_INTEL_COMMON_PCH_BASE
56 select SOC_INTEL_COMMON_RESET
Arthur Heymansc6872f52019-11-11 12:29:56 +010057 select SOC_INTEL_COMMON_BLOCK_CAR
Sumeet R Pawnikard2132462020-05-15 15:55:37 +053058 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banik91e89c52019-11-01 18:30:01 +053059 select SSE2
60 select SUPPORT_CPU_UCODE_IN_CBFS
61 select TSC_MONOTONIC_TIMER
62 select UDELAY_TSC
63 select UDK_2017_BINDING
64 select DISPLAY_FSP_VERSION_INFO
65 select HECI_DISABLE_USING_SMM
66
67config DCACHE_RAM_BASE
68 default 0xfef00000
69
70config DCACHE_RAM_SIZE
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053071 default 0x80000
Subrata Banik91e89c52019-11-01 18:30:01 +053072 help
73 The size of the cache-as-ram region required during bootblock
74 and/or romstage.
75
76config DCACHE_BSP_STACK_SIZE
77 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +053078 default 0x40400
Subrata Banik91e89c52019-11-01 18:30:01 +053079 help
80 The amount of anticipated stack usage in CAR by bootblock and
81 other stages. In the case of FSP_USES_CB_STACK default value will be
Aamir Bohra555c9b62020-03-23 10:13:10 +053082 sum of FSP-M stack requirement(256KiB) and CB romstage stack requirement
83 (~1KiB).
Subrata Banik91e89c52019-11-01 18:30:01 +053084
85config FSP_TEMP_RAM_SIZE
86 hex
Maulik V Vaghelae9b1e0f2019-12-16 16:39:53 +053087 default 0x20000
Subrata Banik91e89c52019-11-01 18:30:01 +053088 help
89 The amount of anticipated heap usage in CAR by FSP.
90 Refer to Platform FSP integration guide document to know
91 the exact FSP requirement for Heap setup.
92
93config 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
174config VBOOT
175 select VBOOT_SEPARATE_VERSTAGE
176 select VBOOT_MUST_REQUEST_DISPLAY
Subrata Banik91e89c52019-11-01 18:30:01 +0530177 select VBOOT_STARTS_IN_BOOTBLOCK
178 select VBOOT_VBNV_CMOS
179 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
180
181config C_ENV_BOOTBLOCK_SIZE
182 hex
183 default 0xC000
184
185config CBFS_SIZE
186 hex
187 default 0x200000
188
Subrata Banik91e89c52019-11-01 18:30:01 +0530189config FSP_HEADER_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530190 default "src/vendorcode/intel/fsp/fsp2_0/tigerlake/"
Subrata Banik91e89c52019-11-01 18:30:01 +0530191
192config FSP_FD_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530193 default "3rdparty/fsp/TigerLakeFspBinPkg/Fsp.fd"
Subrata Banik91e89c52019-11-01 18:30:01 +0530194
Subrata Banik56626cf2020-02-27 19:39:22 +0530195config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT
196 int "Debug Consent for TGL"
197 # USB DBC is more common for developers so make this default to 3 if
198 # SOC_INTEL_DEBUG_CONSENT=y
199 default 3 if SOC_INTEL_DEBUG_CONSENT
200 default 0
201 help
202 This is to control debug interface on SOC.
203 Setting non-zero value will allow to use DBC or DCI to debug SOC.
204 PlatformDebugConsent in FspmUpd.h has the details.
205
206 Desired platform debug type are
207 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
208 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
209 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikebf1daa2020-05-19 12:32:41 +0530210
211config PRERAM_CBMEM_CONSOLE_SIZE
212 hex
213 default 0xe00
Subrata Banik91e89c52019-11-01 18:30:01 +0530214endif