blob: 375fedc434ed48073fd4b43c21cfb5cc4a6eb96b [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
Subrata Banik2871e0e2020-09-27 11:30:58 +053016 select ARCH_ALL_STAGES_X86_32
Angel Pons8e035e32021-06-22 12:58:20 +020017 select ARCH_X86
Subrata Banikb3ced6a2020-08-04 13:34:03 +053018 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik292afef2020-09-09 13:34:18 +053019 select CACHE_MRC_SETTINGS
20 select CPU_INTEL_COMMON
Subrata Banik2871e0e2020-09-27 11:30:58 +053021 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
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 Banik2871e0e2020-09-27 11:30:58 +053028 select GENERIC_GPIO_LIB
29 select HAVE_FSP_GOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053030 select INTEL_DESCRIPTOR_MODE_CAPABLE
Subrata Banik2871e0e2020-09-27 11:30:58 +053031 select HAVE_SMI_HANDLER
Subrata Banikb3ced6a2020-08-04 13:34:03 +053032 select IDT_IN_EVERY_STAGE
33 select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED
Subrata Banik2871e0e2020-09-27 11:30:58 +053034 select INTEL_GMA_ACPI
35 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
36 select IOAPIC
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 REG_SCRIPT
44 select PMC_GLOBAL_RESET_ENABLE_LOCK
45 select PMC_LOW_POWER_MODE_PROGRAM
Lean Sheng Tan508dc162021-06-16 01:32:22 -070046 select PMC_EPOC
Subrata Banikb3ced6a2020-08-04 13:34:03 +053047 select SOC_INTEL_COMMON
Subrata Banik08089922020-10-03 13:02:06 +053048 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Subrata Banikb3ced6a2020-08-04 13:34:03 +053049 select SOC_INTEL_COMMON_BLOCK
Subrata Banik08089922020-10-03 13:02:06 +053050 select SOC_INTEL_COMMON_BLOCK_ACPI
ravindr174596572021-03-29 19:41:25 +053051 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
Angel Pons98f672a2021-02-19 19:42:10 +010052 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Subrata Banik21974ab2020-10-31 21:40:43 +053053 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik292afef2020-09-09 13:34:18 +053054 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Subrata Banikb3ced6a2020-08-04 13:34:03 +053055 select SOC_INTEL_COMMON_BLOCK_CPU
Subrata Banik2871e0e2020-09-27 11:30:58 +053056 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010057 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Subrata Banik2871e0e2020-09-27 11:30:58 +053058 select SOC_INTEL_COMMON_BLOCK_DTT
59 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053060 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053061 select SOC_INTEL_COMMON_BLOCK_HDA
Tim Wawrzynczak0c057c22021-03-04 10:56:28 -070062 select SOC_INTEL_COMMON_BLOCK_IPU
Tim Wawrzynczak43607e42021-05-18 09:04:42 -060063 select SOC_INTEL_COMMON_BLOCK_IRQ
Furquan Shaikha1c247b2020-12-31 22:50:14 -080064 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Rizwan Qureshi307be992021-04-08 20:35:29 +053065 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
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
Eric Lai4ea47c32020-12-21 16:57:49 +080070 select SOC_INTEL_COMMON_BLOCK_USB4
71 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
72 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Tim Wawrzynczak242da792020-11-10 10:13:54 -070073 select SOC_INTEL_COMMON_BLOCK_XHCI
74 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053075 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053076 select SOC_INTEL_COMMON_PCH_BASE
77 select SOC_INTEL_COMMON_RESET
Tim Wawrzynczakc0e82e72021-06-17 12:42:35 -060078 select SOC_INTEL_CSE_SET_EOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053079 select SSE2
80 select SUPPORT_CPU_UCODE_IN_CBFS
81 select TSC_MONOTONIC_TIMER
82 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +053083 select UDK_202005_BINDING
Subrata Banik2871e0e2020-09-27 11:30:58 +053084 select DISPLAY_FSP_VERSION_INFO
85 select HECI_DISABLE_USING_SMM
86
87config MAX_CPUS
88 int
89 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +053090
91config DCACHE_RAM_BASE
92 default 0xfef00000
93
94config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +053095 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +053096 help
97 The size of the cache-as-ram region required during bootblock
98 and/or romstage.
99
100config DCACHE_BSP_STACK_SIZE
101 hex
Subrata Banik191bd822020-11-21 19:30:57 +0530102 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530103 help
104 The amount of anticipated stack usage in CAR by bootblock and
105 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +0530106 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530107 (~1KiB).
108
109config FSP_TEMP_RAM_SIZE
110 hex
111 default 0x20000
112 help
113 The amount of anticipated heap usage in CAR by FSP.
114 Refer to Platform FSP integration guide document to know
115 the exact FSP requirement for Heap setup.
116
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700117config CHIPSET_DEVICETREE
118 string
119 default "soc/intel/alderlake/chipset.cb"
120
Subrata Banik683c95e2020-12-19 19:36:45 +0530121config EXT_BIOS_WIN_BASE
122 default 0xf8000000
123
124config EXT_BIOS_WIN_SIZE
125 default 0x2000000
126
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530127config IFD_CHIPSET
128 string
129 default "adl"
130
131config IED_REGION_SIZE
132 hex
133 default 0x400000
134
135config HEAP_SIZE
136 hex
137 default 0x10000
138
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700139# Intel recommends reserving the following resources per PCIe TBT root port,
140# from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5
141# - 42 buses
142# - 194 MiB Non-prefetchable memory
143# - 448 MiB Prefetchable memory
144config ADL_ENABLE_USB4_PCIE_RESOURCES
145 def_bool n
146 select PCIEXP_HOTPLUG
147
148if ADL_ENABLE_USB4_PCIE_RESOURCES
149
150config PCIEXP_HOTPLUG_BUSES
151 int
152 default 42
153
154config PCIEXP_HOTPLUG_MEM
155 hex
156 default 0xc200000
157
158config PCIEXP_HOTPLUG_PREFETCH_MEM
159 hex
160 default 0x1c000000
161
162endif # ADL_ENABLE_USB4_PCIE_RESOURCES
163
Subrata Banik85144d92021-01-09 16:17:45 +0530164config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530165 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530166 default 10 if SOC_INTEL_ALDERLAKE_PCH_M
Subrata Banik2871e0e2020-09-27 11:30:58 +0530167 default 12
168
Subrata Banik85144d92021-01-09 16:17:45 +0530169config MAX_CPU_ROOT_PORTS
170 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530171 default 1 if SOC_INTEL_ALDERLAKE_PCH_M
Subrata Banik85144d92021-01-09 16:17:45 +0530172 default 3
173
174config MAX_ROOT_PORTS
175 int
176 default MAX_PCH_ROOT_PORTS
177
Subrata Banikcffc9382021-01-29 18:41:35 +0530178config MAX_PCIE_CLOCK_SRC
Subrata Banik2871e0e2020-09-27 11:30:58 +0530179 int
Subrata Banikcffc9382021-01-29 18:41:35 +0530180 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
181 default 7
182
183config MAX_PCIE_CLOCK_REQ
184 int
185 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
186 default 10
Subrata Banik2871e0e2020-09-27 11:30:58 +0530187
188config SMM_TSEG_SIZE
189 hex
190 default 0x800000
191
192config SMM_RESERVED_SIZE
193 hex
194 default 0x200000
195
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530196config PCR_BASE_ADDRESS
197 hex
198 default 0xfd000000
199 help
200 This option allows you to select MMIO Base Address of sideband bus.
201
202config MMCONF_BASE_ADDRESS
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530203 default 0xc0000000
204
205config CPU_BCLK_MHZ
206 int
207 default 100
208
209config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
210 int
211 default 120
212
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200213config CPU_XTAL_HZ
214 default 38400000
215
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530216config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
217 int
218 default 133
219
220config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
221 int
222 default 7
223
224config SOC_INTEL_I2C_DEV_MAX
225 int
226 default 6
227
228config SOC_INTEL_UART_DEV_MAX
229 int
230 default 7
231
232config CONSOLE_UART_BASE_ADDRESS
233 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800234 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530235 depends on INTEL_LPSS_UART_FOR_CONSOLE
236
Maulik V Vaghela996bab42021-02-05 12:03:19 +0530237config VBT_DATA_SIZE_KB
238 int
239 default 9
240
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530241# Clock divider parameters for 115200 baud rate
242# Baudrate = (UART source clcok * M) /(N *16)
243# ADL UART source clock: 120MHz
244config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
245 hex
246 default 0x25a
247
248config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
249 hex
250 default 0x7fff
251
Subrata Banik292afef2020-09-09 13:34:18 +0530252config VBOOT
253 select VBOOT_SEPARATE_VERSTAGE
254 select VBOOT_MUST_REQUEST_DISPLAY
255 select VBOOT_STARTS_IN_BOOTBLOCK
256 select VBOOT_VBNV_CMOS
257 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
258
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530259config CBFS_SIZE
260 hex
261 default 0x200000
262
263config PRERAM_CBMEM_CONSOLE_SIZE
264 hex
265 default 0x1400
Subrata Banik2871e0e2020-09-27 11:30:58 +0530266
Subrata Banikee735942020-09-07 17:52:23 +0530267config FSP_HEADER_PATH
268 string "Location of FSP headers"
269 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
270
271config FSP_FD_PATH
272 string
273 depends on FSP_USE_REPO
274 default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd"
Subrata Banik292afef2020-09-09 13:34:18 +0530275
276config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
277 int "Debug Consent for ADL"
278 # USB DBC is more common for developers so make this default to 3 if
279 # SOC_INTEL_DEBUG_CONSENT=y
280 default 3 if SOC_INTEL_DEBUG_CONSENT
281 default 0
282 help
283 This is to control debug interface on SOC.
284 Setting non-zero value will allow to use DBC or DCI to debug SOC.
285 PlatformDebugConsent in FspmUpd.h has the details.
286
287 Desired platform debug type are
288 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
289 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
290 6:Enable (2-wire DCI OOB), 7:Manual
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800291
292config DATA_BUS_WIDTH
293 int
294 default 128
295
296config DIMMS_PER_CHANNEL
297 int
298 default 2
299
300config MRC_CHANNEL_WIDTH
301 int
302 default 16
303
Francois Toguocea4f922021-04-16 21:20:39 -0700304config SOC_INTEL_CRASHLOG
305 def_bool n
306 select SOC_INTEL_COMMON_BLOCK_CRASHLOG
307 select ACPI_BERT
308 help
309 Enables CrashLog.
310
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530311endif