blob: eafd08dba613056b267d300c2b2090554184b094 [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
Subrata Banikb3ced6a2020-08-04 13:34:03 +053046 select SOC_INTEL_COMMON
Subrata Banik08089922020-10-03 13:02:06 +053047 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Subrata Banikb3ced6a2020-08-04 13:34:03 +053048 select SOC_INTEL_COMMON_BLOCK
Subrata Banik08089922020-10-03 13:02:06 +053049 select SOC_INTEL_COMMON_BLOCK_ACPI
ravindr174596572021-03-29 19:41:25 +053050 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
Angel Pons98f672a2021-02-19 19:42:10 +010051 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
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
Sumeet R Pawnikar77298c62021-03-10 21:09:37 +053065 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053066 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +053067 select SOC_INTEL_COMMON_BLOCK_SMM
68 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Eric Lai4ea47c32020-12-21 16:57:49 +080069 select SOC_INTEL_COMMON_BLOCK_USB4
70 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
71 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Tim Wawrzynczak242da792020-11-10 10:13:54 -070072 select SOC_INTEL_COMMON_BLOCK_XHCI
73 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053074 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053075 select SOC_INTEL_COMMON_PCH_BASE
76 select SOC_INTEL_COMMON_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053077 select SSE2
78 select SUPPORT_CPU_UCODE_IN_CBFS
79 select TSC_MONOTONIC_TIMER
80 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +053081 select UDK_202005_BINDING
Subrata Banik2871e0e2020-09-27 11:30:58 +053082 select DISPLAY_FSP_VERSION_INFO
83 select HECI_DISABLE_USING_SMM
84
85config MAX_CPUS
86 int
87 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +053088
89config DCACHE_RAM_BASE
90 default 0xfef00000
91
92config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +053093 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +053094 help
95 The size of the cache-as-ram region required during bootblock
96 and/or romstage.
97
98config DCACHE_BSP_STACK_SIZE
99 hex
Subrata Banik191bd822020-11-21 19:30:57 +0530100 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530101 help
102 The amount of anticipated stack usage in CAR by bootblock and
103 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +0530104 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530105 (~1KiB).
106
107config FSP_TEMP_RAM_SIZE
108 hex
109 default 0x20000
110 help
111 The amount of anticipated heap usage in CAR by FSP.
112 Refer to Platform FSP integration guide document to know
113 the exact FSP requirement for Heap setup.
114
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700115config CHIPSET_DEVICETREE
116 string
117 default "soc/intel/alderlake/chipset.cb"
118
Subrata Banik683c95e2020-12-19 19:36:45 +0530119config EXT_BIOS_WIN_BASE
120 default 0xf8000000
121
122config EXT_BIOS_WIN_SIZE
123 default 0x2000000
124
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530125config IFD_CHIPSET
126 string
127 default "adl"
128
129config IED_REGION_SIZE
130 hex
131 default 0x400000
132
133config HEAP_SIZE
134 hex
135 default 0x10000
136
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700137# Intel recommends reserving the following resources per PCIe TBT root port,
138# from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5
139# - 42 buses
140# - 194 MiB Non-prefetchable memory
141# - 448 MiB Prefetchable memory
142config ADL_ENABLE_USB4_PCIE_RESOURCES
143 def_bool n
144 select PCIEXP_HOTPLUG
145
146if ADL_ENABLE_USB4_PCIE_RESOURCES
147
148config PCIEXP_HOTPLUG_BUSES
149 int
150 default 42
151
152config PCIEXP_HOTPLUG_MEM
153 hex
154 default 0xc200000
155
156config PCIEXP_HOTPLUG_PREFETCH_MEM
157 hex
158 default 0x1c000000
159
160endif # ADL_ENABLE_USB4_PCIE_RESOURCES
161
Subrata Banik85144d92021-01-09 16:17:45 +0530162config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530163 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530164 default 10 if SOC_INTEL_ALDERLAKE_PCH_M
Subrata Banik2871e0e2020-09-27 11:30:58 +0530165 default 12
166
Subrata Banik85144d92021-01-09 16:17:45 +0530167config MAX_CPU_ROOT_PORTS
168 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530169 default 1 if SOC_INTEL_ALDERLAKE_PCH_M
Subrata Banik85144d92021-01-09 16:17:45 +0530170 default 3
171
172config MAX_ROOT_PORTS
173 int
174 default MAX_PCH_ROOT_PORTS
175
Subrata Banikcffc9382021-01-29 18:41:35 +0530176config MAX_PCIE_CLOCK_SRC
Subrata Banik2871e0e2020-09-27 11:30:58 +0530177 int
Subrata Banikcffc9382021-01-29 18:41:35 +0530178 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
179 default 7
180
181config MAX_PCIE_CLOCK_REQ
182 int
183 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
184 default 10
Subrata Banik2871e0e2020-09-27 11:30:58 +0530185
186config SMM_TSEG_SIZE
187 hex
188 default 0x800000
189
190config SMM_RESERVED_SIZE
191 hex
192 default 0x200000
193
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530194config PCR_BASE_ADDRESS
195 hex
196 default 0xfd000000
197 help
198 This option allows you to select MMIO Base Address of sideband bus.
199
200config MMCONF_BASE_ADDRESS
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530201 default 0xc0000000
202
203config CPU_BCLK_MHZ
204 int
205 default 100
206
207config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
208 int
209 default 120
210
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200211config CPU_XTAL_HZ
212 default 38400000
213
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530214config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
215 int
216 default 133
217
218config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
219 int
220 default 7
221
222config SOC_INTEL_I2C_DEV_MAX
223 int
224 default 6
225
226config SOC_INTEL_UART_DEV_MAX
227 int
228 default 7
229
230config CONSOLE_UART_BASE_ADDRESS
231 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800232 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530233 depends on INTEL_LPSS_UART_FOR_CONSOLE
234
Maulik V Vaghela996bab42021-02-05 12:03:19 +0530235config VBT_DATA_SIZE_KB
236 int
237 default 9
238
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530239# Clock divider parameters for 115200 baud rate
240# Baudrate = (UART source clcok * M) /(N *16)
241# ADL UART source clock: 120MHz
242config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
243 hex
244 default 0x25a
245
246config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
247 hex
248 default 0x7fff
249
Subrata Banik292afef2020-09-09 13:34:18 +0530250config VBOOT
251 select VBOOT_SEPARATE_VERSTAGE
252 select VBOOT_MUST_REQUEST_DISPLAY
253 select VBOOT_STARTS_IN_BOOTBLOCK
254 select VBOOT_VBNV_CMOS
255 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
256
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530257config CBFS_SIZE
258 hex
259 default 0x200000
260
261config PRERAM_CBMEM_CONSOLE_SIZE
262 hex
263 default 0x1400
Subrata Banik2871e0e2020-09-27 11:30:58 +0530264
Subrata Banikee735942020-09-07 17:52:23 +0530265config FSP_HEADER_PATH
266 string "Location of FSP headers"
267 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
268
269config FSP_FD_PATH
270 string
271 depends on FSP_USE_REPO
272 default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd"
Subrata Banik292afef2020-09-09 13:34:18 +0530273
274config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
275 int "Debug Consent for ADL"
276 # USB DBC is more common for developers so make this default to 3 if
277 # SOC_INTEL_DEBUG_CONSENT=y
278 default 3 if SOC_INTEL_DEBUG_CONSENT
279 default 0
280 help
281 This is to control debug interface on SOC.
282 Setting non-zero value will allow to use DBC or DCI to debug SOC.
283 PlatformDebugConsent in FspmUpd.h has the details.
284
285 Desired platform debug type are
286 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
287 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
288 6:Enable (2-wire DCI OOB), 7:Manual
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800289
290config DATA_BUS_WIDTH
291 int
292 default 128
293
294config DIMMS_PER_CHANNEL
295 int
296 default 2
297
298config MRC_CHANNEL_WIDTH
299 int
300 default 16
301
Francois Toguocea4f922021-04-16 21:20:39 -0700302config SOC_INTEL_CRASHLOG
303 def_bool n
304 select SOC_INTEL_COMMON_BLOCK_CRASHLOG
305 select ACPI_BERT
306 help
307 Enables CrashLog.
308
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530309endif