blob: e0d29fbeefa6c3eaee59cbd86f2b925c2d931353 [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
18 select COMMON_FADT
19 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
20 select FSP_M_XIP
21 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
Aamir Bohraa23e0c92020-03-25 15:31:12 +053026 select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED
Subrata Banik91e89c52019-11-01 18:30:01 +053027 select INTEL_GMA_ACPI
28 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
29 select IOAPIC
30 select MRC_SETTINGS_PROTECT
31 select PARALLEL_MP
32 select PARALLEL_MP_AP_WORK
33 select MICROCODE_BLOB_UNDISCLOSED
34 select PLATFORM_USES_FSP2_1
35 select REG_SCRIPT
36 select SMP
37 select SOC_AHCI_PORT_IMPLEMENTED_INVERT
38 select PMC_GLOBAL_RESET_ENABLE_LOCK
Kyösti Mälkkib0f15f02019-11-22 23:15:29 +020039 select CPU_INTEL_COMMON_SMM
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
44 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
45 select SOC_INTEL_COMMON_BLOCK_CPU
46 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
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
53 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
91config IFD_CHIPSET
92 string
Aamir Bohra555c9b62020-03-23 10:13:10 +053093 default "tgl"
Subrata Banik91e89c52019-11-01 18:30:01 +053094
95config IED_REGION_SIZE
96 hex
97 default 0x400000
98
99config HEAP_SIZE
100 hex
101 default 0x8000
102
103config MAX_ROOT_PORTS
104 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530105 default 12
Subrata Banik91e89c52019-11-01 18:30:01 +0530106
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800107config MAX_PCIE_CLOCKS
108 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530109 default 7
Ravi Sarawadi2fd49722019-12-16 23:41:36 -0800110
Subrata Banik91e89c52019-11-01 18:30:01 +0530111config SMM_TSEG_SIZE
112 hex
113 default 0x800000
114
115config SMM_RESERVED_SIZE
116 hex
117 default 0x200000
118
119config PCR_BASE_ADDRESS
120 hex
121 default 0xfd000000
122 help
123 This option allows you to select MMIO Base Address of sideband bus.
124
125config MMCONF_BASE_ADDRESS
126 hex
127 default 0xc0000000
128
129config CPU_BCLK_MHZ
130 int
131 default 100
132
133config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
134 int
135 default 120
136
137config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
138 int
139 default 133
140
141config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
142 int
Aamir Bohra555c9b62020-03-23 10:13:10 +0530143 default 4
Subrata Banik91e89c52019-11-01 18:30:01 +0530144
145config SOC_INTEL_I2C_DEV_MAX
146 int
147 default 6
148
149config SOC_INTEL_UART_DEV_MAX
150 int
151 default 3
152
153config CONSOLE_UART_BASE_ADDRESS
154 hex
155 default 0xfe032000
156 depends on INTEL_LPSS_UART_FOR_CONSOLE
157
158# Clock divider parameters for 115200 baud rate
Ravi Sarawadi38387012019-12-19 15:04:58 -0800159# Baudrate = (UART source clcok * M) /(N *16)
160# TGL UART source clock: 120MHz
Subrata Banik91e89c52019-11-01 18:30:01 +0530161config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
162 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530163 default 0x25a
Subrata Banik91e89c52019-11-01 18:30:01 +0530164
165config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
166 hex
Aamir Bohra555c9b62020-03-23 10:13:10 +0530167 default 0x7fff
Subrata Banik91e89c52019-11-01 18:30:01 +0530168
169config CHROMEOS
170 select CHROMEOS_RAMOOPS_DYNAMIC
171
172config VBOOT
173 select VBOOT_SEPARATE_VERSTAGE
174 select VBOOT_MUST_REQUEST_DISPLAY
Subrata Banik91e89c52019-11-01 18:30:01 +0530175 select VBOOT_STARTS_IN_BOOTBLOCK
176 select VBOOT_VBNV_CMOS
177 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
178
179config C_ENV_BOOTBLOCK_SIZE
180 hex
181 default 0xC000
182
183config CBFS_SIZE
184 hex
185 default 0x200000
186
Subrata Banik91e89c52019-11-01 18:30:01 +0530187config FSP_HEADER_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530188 default "src/vendorcode/intel/fsp/fsp2_0/tigerlake/"
Subrata Banik91e89c52019-11-01 18:30:01 +0530189
190config FSP_FD_PATH
Aamir Bohra555c9b62020-03-23 10:13:10 +0530191 default "3rdparty/fsp/TigerLakeFspBinPkg/Fsp.fd"
Subrata Banik91e89c52019-11-01 18:30:01 +0530192
Subrata Banik56626cf2020-02-27 19:39:22 +0530193config SOC_INTEL_TIGERLAKE_DEBUG_CONSENT
194 int "Debug Consent for TGL"
195 # USB DBC is more common for developers so make this default to 3 if
196 # SOC_INTEL_DEBUG_CONSENT=y
197 default 3 if SOC_INTEL_DEBUG_CONSENT
198 default 0
199 help
200 This is to control debug interface on SOC.
201 Setting non-zero value will allow to use DBC or DCI to debug SOC.
202 PlatformDebugConsent in FspmUpd.h has the details.
203
204 Desired platform debug type are
205 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
206 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
207 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikebf1daa2020-05-19 12:32:41 +0530208
209config PRERAM_CBMEM_CONSOLE_SIZE
210 hex
211 default 0xe00
Subrata Banik91e89c52019-11-01 18:30:01 +0530212endif