blob: ac8c2e3843b5a779bb13fc846bf9c895e824a1da [file] [log] [blame]
Subrata Banikb3ced6a2020-08-04 13:34:03 +05301config SOC_INTEL_ALDERLAKE
2 bool
3 help
Angel Ponsdb925aa2021-12-01 11:44:09 +01004 Intel Alderlake support. Mainboards should specify the PCH
5 type using the `SOC_INTEL_ALDERLAKE_PCH_*` options instead
6 of selecting this option directly.
Subrata Banikb3ced6a2020-08-04 13:34:03 +05307
Varshit Pandyab5df56f2021-01-18 09:44:35 +05308config SOC_INTEL_ALDERLAKE_PCH_M
9 bool
Angel Ponsdb925aa2021-12-01 11:44:09 +010010 select SOC_INTEL_ALDERLAKE
Varshit Pandyab5df56f2021-01-18 09:44:35 +053011 help
Angel Ponsdb925aa2021-12-01 11:44:09 +010012 Choose this option if your mainboard has a PCH-M chipset.
13
Usha P78c9b672021-11-30 11:27:38 +053014config SOC_INTEL_ALDERLAKE_PCH_N
15 bool
16 select SOC_INTEL_ALDERLAKE
17 help
18 Choose this option if your mainboard has a PCH-N chipset.
19
Angel Ponsdb925aa2021-12-01 11:44:09 +010020config SOC_INTEL_ALDERLAKE_PCH_P
21 bool
22 select SOC_INTEL_ALDERLAKE
23 help
24 Choose this option if your mainboard has a PCH-P chipset.
Varshit Pandyab5df56f2021-01-18 09:44:35 +053025
Subrata Banikb3ced6a2020-08-04 13:34:03 +053026if SOC_INTEL_ALDERLAKE
27
28config CPU_SPECIFIC_OPTIONS
29 def_bool y
Angel Ponsa25eaff2020-09-23 15:37:15 +020030 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Sugnan Prabhu Sdcf04592021-12-03 19:07:04 +053031 select ACPI_ADL_IPU_ES_SUPPORT
Angel Pons8e035e32021-06-22 12:58:20 +020032 select ARCH_X86
Subrata Banikb3ced6a2020-08-04 13:34:03 +053033 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik292afef2020-09-09 13:34:18 +053034 select CACHE_MRC_SETTINGS
35 select CPU_INTEL_COMMON
Subrata Banik2871e0e2020-09-27 11:30:58 +053036 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhner5307f122021-09-19 00:32:37 +020037 select CPU_SUPPORTS_INTEL_TME
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020038 select CPU_SUPPORTS_PM_TIMER_EMULATION
Eric Lai4ea47c32020-12-21 16:57:49 +080039 select DRIVERS_USB_ACPI
Subrata Banik2871e0e2020-09-27 11:30:58 +053040 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik683c95e2020-12-19 19:36:45 +053041 select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
Subrata Banik292afef2020-09-09 13:34:18 +053042 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053043 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banik298b3592021-09-14 12:38:08 +053044 select FSPS_HAS_ARCH_UPD
Subrata Banik2871e0e2020-09-27 11:30:58 +053045 select GENERIC_GPIO_LIB
Subrata Banikb4a169a2021-12-29 18:36:23 +000046 select HAVE_DEBUG_RAM_SETUP
Subrata Banik2871e0e2020-09-27 11:30:58 +053047 select HAVE_FSP_GOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053048 select INTEL_DESCRIPTOR_MODE_CAPABLE
Subrata Banik2871e0e2020-09-27 11:30:58 +053049 select HAVE_SMI_HANDLER
Subrata Banikb3ced6a2020-08-04 13:34:03 +053050 select IDT_IN_EVERY_STAGE
Subrata Banik2871e0e2020-09-27 11:30:58 +053051 select INTEL_GMA_ACPI
52 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
Meera Ravindranath81d367f2021-07-08 09:39:11 +053053 select INTEL_GMA_OPREGION_2_1
Subrata Banik0aed4e52020-10-12 17:27:31 +053054 select INTEL_TME
Aamir Bohra30cca6c2021-02-04 20:57:51 +053055 select MP_SERVICES_PPI_V2
Subrata Banik292afef2020-09-09 13:34:18 +053056 select MRC_SETTINGS_PROTECT
Subrata Banik2871e0e2020-09-27 11:30:58 +053057 select PARALLEL_MP_AP_WORK
Subrata Banikb3ced6a2020-08-04 13:34:03 +053058 select MICROCODE_BLOB_UNDISCLOSED
Subrata Banikee735942020-09-07 17:52:23 +053059 select PLATFORM_USES_FSP2_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053060 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banikb3ced6a2020-08-04 13:34:03 +053061 select SOC_INTEL_COMMON
Subrata Banik08089922020-10-03 13:02:06 +053062 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Subrata Banikb3ced6a2020-08-04 13:34:03 +053063 select SOC_INTEL_COMMON_BLOCK
Subrata Banik08089922020-10-03 13:02:06 +053064 select SOC_INTEL_COMMON_BLOCK_ACPI
ravindr174596572021-03-29 19:41:25 +053065 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
Sridahr Siricilla73b90c62021-11-11 01:10:16 +053066 select SOC_INTEL_COMMON_BLOCK_ACPI_CPU_HYBRID
Angel Pons98f672a2021-02-19 19:42:10 +010067 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Tim Wawrzynczak5faee2e2021-07-01 08:24:18 -060068 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
69 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ
Subrata Banik21974ab2020-10-31 21:40:43 +053070 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik292afef2020-09-09 13:34:18 +053071 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Subrata Banikb3ced6a2020-08-04 13:34:03 +053072 select SOC_INTEL_COMMON_BLOCK_CPU
Subrata Banik2871e0e2020-09-27 11:30:58 +053073 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010074 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Subrata Banik2871e0e2020-09-27 11:30:58 +053075 select SOC_INTEL_COMMON_BLOCK_DTT
76 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banikaf2f8b92022-01-10 10:26:52 +000077 select SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_SBI
Subrata Banikb3ced6a2020-08-04 13:34:03 +053078 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053079 select SOC_INTEL_COMMON_BLOCK_HDA
Tim Wawrzynczak0c057c22021-03-04 10:56:28 -070080 select SOC_INTEL_COMMON_BLOCK_IPU
Tim Wawrzynczak43607e42021-05-18 09:04:42 -060081 select SOC_INTEL_COMMON_BLOCK_IRQ
Furquan Shaikha1c247b2020-12-31 22:50:14 -080082 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Rizwan Qureshi307be992021-04-08 20:35:29 +053083 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Lean Sheng Tan75020002021-06-30 01:47:48 -070084 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
Sumeet R Pawnikar77298c62021-03-10 21:09:37 +053085 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053086 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +053087 select SOC_INTEL_COMMON_BLOCK_SMM
88 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banik8407c342021-09-08 20:15:36 +053089 select SOC_INTEL_COMMON_BLOCK_TCSS
Subrata Banikb2e8bd82021-11-17 15:35:05 +053090 select SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC
Eric Lai4ea47c32020-12-21 16:57:49 +080091 select SOC_INTEL_COMMON_BLOCK_USB4
92 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
93 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Tim Wawrzynczak242da792020-11-10 10:13:54 -070094 select SOC_INTEL_COMMON_BLOCK_XHCI
95 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053096 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053097 select SOC_INTEL_COMMON_PCH_BASE
98 select SOC_INTEL_COMMON_RESET
Tim Wawrzynczakc0e82e72021-06-17 12:42:35 -060099 select SOC_INTEL_CSE_SET_EOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530100 select SSE2
101 select SUPPORT_CPU_UCODE_IN_CBFS
102 select TSC_MONOTONIC_TIMER
103 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +0530104 select UDK_202005_BINDING
Subrata Banik2871e0e2020-09-27 11:30:58 +0530105 select DISPLAY_FSP_VERSION_INFO
Subrata Banik2871e0e2020-09-27 11:30:58 +0530106
Angel Pons5e7f90b2022-01-08 13:16:38 +0100107config ALDERLAKE_A0_CONFIGURE_PMC_DESCRIPTOR
108 bool
109 help
110 Alder Lake stepping A0 needs a different value for a PMC setting in
111 the IFD. When this option is selected, coreboot will update the IFD
112 value at runtime, which allows using an IFD with the new value with
113 any CPU stepping. To apply this workaround, the IFD region needs to
114 be writable by the host.
115
Subrata Banik095e2a72021-07-05 20:56:15 +0530116config ALDERLAKE_CAR_ENHANCED_NEM
117 bool
118 default y if !INTEL_CAR_NEM
119 select INTEL_CAR_NEM_ENHANCED
120 select CAR_HAS_SF_MASKS
121 select COS_MAPPED_TO_MSB
122 select CAR_HAS_L3_PROTECTED_WAYS
123
Subrata Banik2871e0e2020-09-27 11:30:58 +0530124config MAX_CPUS
125 int
126 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530127
128config DCACHE_RAM_BASE
129 default 0xfef00000
130
131config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +0530132 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530133 help
134 The size of the cache-as-ram region required during bootblock
135 and/or romstage.
136
137config DCACHE_BSP_STACK_SIZE
138 hex
Subrata Banik191bd822020-11-21 19:30:57 +0530139 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530140 help
141 The amount of anticipated stack usage in CAR by bootblock and
142 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +0530143 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530144 (~1KiB).
145
146config FSP_TEMP_RAM_SIZE
147 hex
148 default 0x20000
149 help
150 The amount of anticipated heap usage in CAR by FSP.
151 Refer to Platform FSP integration guide document to know
152 the exact FSP requirement for Heap setup.
153
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700154config CHIPSET_DEVICETREE
155 string
156 default "soc/intel/alderlake/chipset.cb"
157
Subrata Banik683c95e2020-12-19 19:36:45 +0530158config EXT_BIOS_WIN_BASE
159 default 0xf8000000
160
161config EXT_BIOS_WIN_SIZE
162 default 0x2000000
163
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530164config IFD_CHIPSET
165 string
166 default "adl"
167
168config IED_REGION_SIZE
169 hex
170 default 0x400000
171
172config HEAP_SIZE
173 hex
174 default 0x10000
175
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700176# Intel recommends reserving the following resources per PCIe TBT root port,
177# from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5
178# - 42 buses
179# - 194 MiB Non-prefetchable memory
180# - 448 MiB Prefetchable memory
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700181if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700182
183config PCIEXP_HOTPLUG_BUSES
184 int
185 default 42
186
187config PCIEXP_HOTPLUG_MEM
188 hex
189 default 0xc200000
190
191config PCIEXP_HOTPLUG_PREFETCH_MEM
192 hex
193 default 0x1c000000
194
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700195endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700196
Subrata Banik85144d92021-01-09 16:17:45 +0530197config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530198 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530199 default 10 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530200 default 12 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100201 default 12 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik2871e0e2020-09-27 11:30:58 +0530202
Subrata Banik85144d92021-01-09 16:17:45 +0530203config MAX_CPU_ROOT_PORTS
204 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530205 default 1 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530206 default 0 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100207 default 3 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik85144d92021-01-09 16:17:45 +0530208
209config MAX_ROOT_PORTS
210 int
211 default MAX_PCH_ROOT_PORTS
212
Subrata Banikcffc9382021-01-29 18:41:35 +0530213config MAX_PCIE_CLOCK_SRC
Subrata Banik2871e0e2020-09-27 11:30:58 +0530214 int
Subrata Banikcffc9382021-01-29 18:41:35 +0530215 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530216 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100217 default 7 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banikcffc9382021-01-29 18:41:35 +0530218
219config MAX_PCIE_CLOCK_REQ
220 int
Angel Ponsdb925aa2021-12-01 11:44:09 +0100221 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530222 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100223 default 10 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik2871e0e2020-09-27 11:30:58 +0530224
225config SMM_TSEG_SIZE
226 hex
227 default 0x800000
228
229config SMM_RESERVED_SIZE
230 hex
231 default 0x200000
232
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530233config PCR_BASE_ADDRESS
234 hex
235 default 0xfd000000
236 help
237 This option allows you to select MMIO Base Address of sideband bus.
238
Shelley Chen4e9bb332021-10-20 15:43:45 -0700239config ECAM_MMCONF_BASE_ADDRESS
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530240 default 0xc0000000
241
242config CPU_BCLK_MHZ
243 int
244 default 100
245
246config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
247 int
248 default 120
249
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200250config CPU_XTAL_HZ
251 default 38400000
252
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530253config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
254 int
255 default 133
256
257config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
258 int
259 default 7
260
261config SOC_INTEL_I2C_DEV_MAX
262 int
Varshit B Pandya339f0e72021-07-14 11:08:23 +0530263 default 8
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530264
265config SOC_INTEL_UART_DEV_MAX
266 int
267 default 7
268
269config CONSOLE_UART_BASE_ADDRESS
270 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800271 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530272 depends on INTEL_LPSS_UART_FOR_CONSOLE
273
Maulik V Vaghela996bab42021-02-05 12:03:19 +0530274config VBT_DATA_SIZE_KB
275 int
276 default 9
277
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530278# Clock divider parameters for 115200 baud rate
279# Baudrate = (UART source clcok * M) /(N *16)
280# ADL UART source clock: 120MHz
281config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
282 hex
283 default 0x25a
284
285config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
286 hex
287 default 0x7fff
288
Subrata Banik292afef2020-09-09 13:34:18 +0530289config VBOOT
290 select VBOOT_SEPARATE_VERSTAGE
291 select VBOOT_MUST_REQUEST_DISPLAY
292 select VBOOT_STARTS_IN_BOOTBLOCK
293 select VBOOT_VBNV_CMOS
294 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Subrata Banik34237862021-06-17 23:36:02 +0530295 select VBOOT_X86_SHA256_ACCELERATION
Subrata Banik292afef2020-09-09 13:34:18 +0530296
MAULIK V VAGHELA84532da2021-08-25 16:41:23 +0530297# Default hash block size is 1KiB. Increasing it to 4KiB to improve
298# hashing time as well as read time. This helps in improving
299# boot time for Alder Lake.
300config VBOOT_HASH_BLOCK_SIZE
301 hex
302 default 0x1000
303
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530304config CBFS_SIZE
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530305 default 0x200000
306
307config PRERAM_CBMEM_CONSOLE_SIZE
308 hex
Subrata Banikbf750552021-07-10 20:30:57 +0530309 default 0x2000
Subrata Banik2871e0e2020-09-27 11:30:58 +0530310
Subrata Banikee735942020-09-07 17:52:23 +0530311config FSP_HEADER_PATH
312 string "Location of FSP headers"
313 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
314
315config FSP_FD_PATH
316 string
317 depends on FSP_USE_REPO
318 default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd"
Subrata Banik292afef2020-09-09 13:34:18 +0530319
320config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
321 int "Debug Consent for ADL"
Subrata Banik0cd553b2021-12-29 08:09:37 +0000322 # USB DBC is more common for developers so make this default to 2 if
Subrata Banik292afef2020-09-09 13:34:18 +0530323 # SOC_INTEL_DEBUG_CONSENT=y
Kane Chen0e9a6162021-11-23 14:42:48 +0800324 default 2 if SOC_INTEL_DEBUG_CONSENT
Subrata Banik292afef2020-09-09 13:34:18 +0530325 default 0
326 help
327 This is to control debug interface on SOC.
328 Setting non-zero value will allow to use DBC or DCI to debug SOC.
329 PlatformDebugConsent in FspmUpd.h has the details.
330
331 Desired platform debug type are
Kane Chen0e9a6162021-11-23 14:42:48 +0800332 0:Disabled, 2:Enabled (All Probes+TraceHub), 6:Enable (Low Power),
333 7:Manual
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800334
335config DATA_BUS_WIDTH
336 int
337 default 128
338
339config DIMMS_PER_CHANNEL
340 int
341 default 2
342
343config MRC_CHANNEL_WIDTH
344 int
345 default 16
346
Sugnan Prabhu Sdcf04592021-12-03 19:07:04 +0530347config ACPI_ADL_IPU_ES_SUPPORT
348 def_bool n
349 help
350 Enables ACPI entry to provide silicon type information to IPU kernel driver.
351
Furquan Shaikhf888c682021-10-05 21:37:33 -0700352if STITCH_ME_BIN
353
354config CSE_BPDT_VERSION
355 default "1.7"
356
357endif
358
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530359endif