blob: 214829afb0c7341f8bc577ea1db9f7227f719eed [file] [log] [blame]
Subrata Banikb3ced6a2020-08-04 13:34:03 +05301config SOC_INTEL_ALDERLAKE
2 bool
3 help
4 Intel Alderlake support
5
Varshit Pandyab5df56f2021-01-18 09:44:35 +05306config SOC_INTEL_ALDERLAKE_PCH_M
7 bool
8 help
9 Choose this option if you have PCH-M chipset.
10
Subrata Banikb3ced6a2020-08-04 13:34:03 +053011if SOC_INTEL_ALDERLAKE
12
13config CPU_SPECIFIC_OPTIONS
14 def_bool y
Angel Ponsa25eaff2020-09-23 15:37:15 +020015 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Angel Pons8e035e32021-06-22 12:58:20 +020016 select ARCH_X86
Subrata Banikb3ced6a2020-08-04 13:34:03 +053017 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik292afef2020-09-09 13:34:18 +053018 select CACHE_MRC_SETTINGS
19 select CPU_INTEL_COMMON
Subrata Banik2871e0e2020-09-27 11:30:58 +053020 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhner5307f122021-09-19 00:32:37 +020021 select CPU_SUPPORTS_INTEL_TME
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020022 select CPU_SUPPORTS_PM_TIMER_EMULATION
Eric Lai4ea47c32020-12-21 16:57:49 +080023 select DRIVERS_USB_ACPI
Subrata Banik2871e0e2020-09-27 11:30:58 +053024 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik683c95e2020-12-19 19:36:45 +053025 select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
Subrata Banik292afef2020-09-09 13:34:18 +053026 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053027 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banik298b3592021-09-14 12:38:08 +053028 select FSPS_HAS_ARCH_UPD
Subrata Banik2871e0e2020-09-27 11:30:58 +053029 select GENERIC_GPIO_LIB
30 select HAVE_FSP_GOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053031 select INTEL_DESCRIPTOR_MODE_CAPABLE
Subrata Banik2871e0e2020-09-27 11:30:58 +053032 select HAVE_SMI_HANDLER
Subrata Banikb3ced6a2020-08-04 13:34:03 +053033 select IDT_IN_EVERY_STAGE
Subrata Banik2871e0e2020-09-27 11:30:58 +053034 select INTEL_GMA_ACPI
35 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
Meera Ravindranath81d367f2021-07-08 09:39:11 +053036 select INTEL_GMA_OPREGION_2_1
Subrata Banik0aed4e52020-10-12 17:27:31 +053037 select INTEL_TME
Aamir Bohra30cca6c2021-02-04 20:57:51 +053038 select MP_SERVICES_PPI_V2
Subrata Banik292afef2020-09-09 13:34:18 +053039 select MRC_SETTINGS_PROTECT
Subrata Banik2871e0e2020-09-27 11:30:58 +053040 select PARALLEL_MP_AP_WORK
Subrata Banikb3ced6a2020-08-04 13:34:03 +053041 select MICROCODE_BLOB_UNDISCLOSED
Subrata Banikee735942020-09-07 17:52:23 +053042 select PLATFORM_USES_FSP2_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053043 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banikb3ced6a2020-08-04 13:34:03 +053044 select SOC_INTEL_COMMON
Subrata Banik08089922020-10-03 13:02:06 +053045 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Subrata Banikb3ced6a2020-08-04 13:34:03 +053046 select SOC_INTEL_COMMON_BLOCK
Subrata Banik08089922020-10-03 13:02:06 +053047 select SOC_INTEL_COMMON_BLOCK_ACPI
ravindr174596572021-03-29 19:41:25 +053048 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
Angel Pons98f672a2021-02-19 19:42:10 +010049 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Tim Wawrzynczak5faee2e2021-07-01 08:24:18 -060050 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
51 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ
Subrata Banik21974ab2020-10-31 21:40:43 +053052 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik292afef2020-09-09 13:34:18 +053053 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Subrata Banikb3ced6a2020-08-04 13:34:03 +053054 select SOC_INTEL_COMMON_BLOCK_CPU
Subrata Banik2871e0e2020-09-27 11:30:58 +053055 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010056 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Subrata Banik2871e0e2020-09-27 11:30:58 +053057 select SOC_INTEL_COMMON_BLOCK_DTT
58 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053059 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053060 select SOC_INTEL_COMMON_BLOCK_HDA
Tim Wawrzynczak0c057c22021-03-04 10:56:28 -070061 select SOC_INTEL_COMMON_BLOCK_IPU
Tim Wawrzynczak43607e42021-05-18 09:04:42 -060062 select SOC_INTEL_COMMON_BLOCK_IRQ
Furquan Shaikha1c247b2020-12-31 22:50:14 -080063 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Rizwan Qureshi307be992021-04-08 20:35:29 +053064 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Lean Sheng Tan75020002021-06-30 01:47:48 -070065 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
Sumeet R Pawnikar77298c62021-03-10 21:09:37 +053066 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053067 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +053068 select SOC_INTEL_COMMON_BLOCK_SMM
69 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banik8407c342021-09-08 20:15:36 +053070 select SOC_INTEL_COMMON_BLOCK_TCSS
Eric Lai4ea47c32020-12-21 16:57:49 +080071 select SOC_INTEL_COMMON_BLOCK_USB4
72 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
73 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Tim Wawrzynczak242da792020-11-10 10:13:54 -070074 select SOC_INTEL_COMMON_BLOCK_XHCI
75 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053076 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053077 select SOC_INTEL_COMMON_PCH_BASE
78 select SOC_INTEL_COMMON_RESET
Tim Wawrzynczakc0e82e72021-06-17 12:42:35 -060079 select SOC_INTEL_CSE_SET_EOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053080 select SSE2
81 select SUPPORT_CPU_UCODE_IN_CBFS
82 select TSC_MONOTONIC_TIMER
83 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +053084 select UDK_202005_BINDING
Subrata Banik2871e0e2020-09-27 11:30:58 +053085 select DISPLAY_FSP_VERSION_INFO
Subrata Banik2871e0e2020-09-27 11:30:58 +053086
Subrata Banik095e2a72021-07-05 20:56:15 +053087config ALDERLAKE_CAR_ENHANCED_NEM
88 bool
89 default y if !INTEL_CAR_NEM
90 select INTEL_CAR_NEM_ENHANCED
91 select CAR_HAS_SF_MASKS
92 select COS_MAPPED_TO_MSB
93 select CAR_HAS_L3_PROTECTED_WAYS
94
Subrata Banik2871e0e2020-09-27 11:30:58 +053095config MAX_CPUS
96 int
97 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +053098
99config DCACHE_RAM_BASE
100 default 0xfef00000
101
102config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +0530103 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530104 help
105 The size of the cache-as-ram region required during bootblock
106 and/or romstage.
107
108config DCACHE_BSP_STACK_SIZE
109 hex
Subrata Banik191bd822020-11-21 19:30:57 +0530110 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530111 help
112 The amount of anticipated stack usage in CAR by bootblock and
113 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +0530114 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530115 (~1KiB).
116
117config FSP_TEMP_RAM_SIZE
118 hex
119 default 0x20000
120 help
121 The amount of anticipated heap usage in CAR by FSP.
122 Refer to Platform FSP integration guide document to know
123 the exact FSP requirement for Heap setup.
124
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700125config CHIPSET_DEVICETREE
126 string
127 default "soc/intel/alderlake/chipset.cb"
128
Subrata Banik683c95e2020-12-19 19:36:45 +0530129config EXT_BIOS_WIN_BASE
130 default 0xf8000000
131
132config EXT_BIOS_WIN_SIZE
133 default 0x2000000
134
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530135config IFD_CHIPSET
136 string
137 default "adl"
138
139config IED_REGION_SIZE
140 hex
141 default 0x400000
142
143config HEAP_SIZE
144 hex
145 default 0x10000
146
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700147# Intel recommends reserving the following resources per PCIe TBT root port,
148# from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5
149# - 42 buses
150# - 194 MiB Non-prefetchable memory
151# - 448 MiB Prefetchable memory
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700152if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700153
154config PCIEXP_HOTPLUG_BUSES
155 int
156 default 42
157
158config PCIEXP_HOTPLUG_MEM
159 hex
160 default 0xc200000
161
162config PCIEXP_HOTPLUG_PREFETCH_MEM
163 hex
164 default 0x1c000000
165
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700166endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700167
Subrata Banik85144d92021-01-09 16:17:45 +0530168config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530169 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530170 default 10 if SOC_INTEL_ALDERLAKE_PCH_M
Subrata Banik2871e0e2020-09-27 11:30:58 +0530171 default 12
172
Subrata Banik85144d92021-01-09 16:17:45 +0530173config MAX_CPU_ROOT_PORTS
174 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530175 default 1 if SOC_INTEL_ALDERLAKE_PCH_M
Subrata Banik85144d92021-01-09 16:17:45 +0530176 default 3
177
178config MAX_ROOT_PORTS
179 int
180 default MAX_PCH_ROOT_PORTS
181
Subrata Banikcffc9382021-01-29 18:41:35 +0530182config MAX_PCIE_CLOCK_SRC
Subrata Banik2871e0e2020-09-27 11:30:58 +0530183 int
Subrata Banikcffc9382021-01-29 18:41:35 +0530184 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
185 default 7
186
187config MAX_PCIE_CLOCK_REQ
188 int
189 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
190 default 10
Subrata Banik2871e0e2020-09-27 11:30:58 +0530191
192config SMM_TSEG_SIZE
193 hex
194 default 0x800000
195
196config SMM_RESERVED_SIZE
197 hex
198 default 0x200000
199
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530200config PCR_BASE_ADDRESS
201 hex
202 default 0xfd000000
203 help
204 This option allows you to select MMIO Base Address of sideband bus.
205
206config MMCONF_BASE_ADDRESS
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530207 default 0xc0000000
208
209config CPU_BCLK_MHZ
210 int
211 default 100
212
213config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
214 int
215 default 120
216
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200217config CPU_XTAL_HZ
218 default 38400000
219
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530220config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
221 int
222 default 133
223
224config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
225 int
226 default 7
227
228config SOC_INTEL_I2C_DEV_MAX
229 int
Varshit B Pandya339f0e72021-07-14 11:08:23 +0530230 default 8
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530231
232config SOC_INTEL_UART_DEV_MAX
233 int
234 default 7
235
236config CONSOLE_UART_BASE_ADDRESS
237 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800238 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530239 depends on INTEL_LPSS_UART_FOR_CONSOLE
240
Maulik V Vaghela996bab42021-02-05 12:03:19 +0530241config VBT_DATA_SIZE_KB
242 int
243 default 9
244
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530245# Clock divider parameters for 115200 baud rate
246# Baudrate = (UART source clcok * M) /(N *16)
247# ADL UART source clock: 120MHz
248config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
249 hex
250 default 0x25a
251
252config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
253 hex
254 default 0x7fff
255
Subrata Banik292afef2020-09-09 13:34:18 +0530256config VBOOT
257 select VBOOT_SEPARATE_VERSTAGE
258 select VBOOT_MUST_REQUEST_DISPLAY
259 select VBOOT_STARTS_IN_BOOTBLOCK
260 select VBOOT_VBNV_CMOS
261 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Subrata Banik34237862021-06-17 23:36:02 +0530262 select VBOOT_X86_SHA256_ACCELERATION
Subrata Banik292afef2020-09-09 13:34:18 +0530263
MAULIK V VAGHELA84532da2021-08-25 16:41:23 +0530264# Default hash block size is 1KiB. Increasing it to 4KiB to improve
265# hashing time as well as read time. This helps in improving
266# boot time for Alder Lake.
267config VBOOT_HASH_BLOCK_SIZE
268 hex
269 default 0x1000
270
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530271config CBFS_SIZE
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530272 default 0x200000
273
274config PRERAM_CBMEM_CONSOLE_SIZE
275 hex
Subrata Banikbf750552021-07-10 20:30:57 +0530276 default 0x2000
Subrata Banik2871e0e2020-09-27 11:30:58 +0530277
Subrata Banikee735942020-09-07 17:52:23 +0530278config FSP_HEADER_PATH
279 string "Location of FSP headers"
280 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
281
282config FSP_FD_PATH
283 string
284 depends on FSP_USE_REPO
285 default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd"
Subrata Banik292afef2020-09-09 13:34:18 +0530286
287config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
288 int "Debug Consent for ADL"
289 # USB DBC is more common for developers so make this default to 3 if
290 # SOC_INTEL_DEBUG_CONSENT=y
291 default 3 if SOC_INTEL_DEBUG_CONSENT
292 default 0
293 help
294 This is to control debug interface on SOC.
295 Setting non-zero value will allow to use DBC or DCI to debug SOC.
296 PlatformDebugConsent in FspmUpd.h has the details.
297
298 Desired platform debug type are
299 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
300 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
301 6:Enable (2-wire DCI OOB), 7:Manual
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800302
303config DATA_BUS_WIDTH
304 int
305 default 128
306
307config DIMMS_PER_CHANNEL
308 int
309 default 2
310
311config MRC_CHANNEL_WIDTH
312 int
313 default 16
314
Francois Toguocea4f922021-04-16 21:20:39 -0700315config SOC_INTEL_CRASHLOG
316 def_bool n
317 select SOC_INTEL_COMMON_BLOCK_CRASHLOG
318 select ACPI_BERT
319 help
320 Enables CrashLog.
321
Furquan Shaikhf888c682021-10-05 21:37:33 -0700322if STITCH_ME_BIN
323
324config CSE_BPDT_VERSION
325 default "1.7"
326
327endif
328
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530329endif