blob: 04e113a9119258d78a86a614dbea7e6e12f1c4de [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
Angel Pons98f672a2021-02-19 19:42:10 +010066 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Tim Wawrzynczak5faee2e2021-07-01 08:24:18 -060067 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
68 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ
Subrata Banik21974ab2020-10-31 21:40:43 +053069 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik292afef2020-09-09 13:34:18 +053070 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Subrata Banikb3ced6a2020-08-04 13:34:03 +053071 select SOC_INTEL_COMMON_BLOCK_CPU
Subrata Banik2871e0e2020-09-27 11:30:58 +053072 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010073 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Subrata Banik2871e0e2020-09-27 11:30:58 +053074 select SOC_INTEL_COMMON_BLOCK_DTT
75 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banikaf2f8b92022-01-10 10:26:52 +000076 select SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_SBI
Subrata Banikb3ced6a2020-08-04 13:34:03 +053077 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053078 select SOC_INTEL_COMMON_BLOCK_HDA
Tim Wawrzynczak0c057c22021-03-04 10:56:28 -070079 select SOC_INTEL_COMMON_BLOCK_IPU
Tim Wawrzynczak43607e42021-05-18 09:04:42 -060080 select SOC_INTEL_COMMON_BLOCK_IRQ
Furquan Shaikha1c247b2020-12-31 22:50:14 -080081 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Rizwan Qureshi307be992021-04-08 20:35:29 +053082 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Lean Sheng Tan75020002021-06-30 01:47:48 -070083 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
Sumeet R Pawnikar77298c62021-03-10 21:09:37 +053084 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053085 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +053086 select SOC_INTEL_COMMON_BLOCK_SMM
87 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banik8407c342021-09-08 20:15:36 +053088 select SOC_INTEL_COMMON_BLOCK_TCSS
Subrata Banikb2e8bd82021-11-17 15:35:05 +053089 select SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC
Eric Lai4ea47c32020-12-21 16:57:49 +080090 select SOC_INTEL_COMMON_BLOCK_USB4
91 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
92 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Tim Wawrzynczak242da792020-11-10 10:13:54 -070093 select SOC_INTEL_COMMON_BLOCK_XHCI
94 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053095 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053096 select SOC_INTEL_COMMON_PCH_BASE
97 select SOC_INTEL_COMMON_RESET
Tim Wawrzynczakc0e82e72021-06-17 12:42:35 -060098 select SOC_INTEL_CSE_SET_EOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053099 select SSE2
100 select SUPPORT_CPU_UCODE_IN_CBFS
101 select TSC_MONOTONIC_TIMER
102 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +0530103 select UDK_202005_BINDING
Subrata Banik2871e0e2020-09-27 11:30:58 +0530104 select DISPLAY_FSP_VERSION_INFO
Subrata Banik2871e0e2020-09-27 11:30:58 +0530105
Angel Pons5e7f90b2022-01-08 13:16:38 +0100106config ALDERLAKE_A0_CONFIGURE_PMC_DESCRIPTOR
107 bool
108 help
109 Alder Lake stepping A0 needs a different value for a PMC setting in
110 the IFD. When this option is selected, coreboot will update the IFD
111 value at runtime, which allows using an IFD with the new value with
112 any CPU stepping. To apply this workaround, the IFD region needs to
113 be writable by the host.
114
Subrata Banik095e2a72021-07-05 20:56:15 +0530115config ALDERLAKE_CAR_ENHANCED_NEM
116 bool
117 default y if !INTEL_CAR_NEM
118 select INTEL_CAR_NEM_ENHANCED
119 select CAR_HAS_SF_MASKS
120 select COS_MAPPED_TO_MSB
121 select CAR_HAS_L3_PROTECTED_WAYS
122
Subrata Banik2871e0e2020-09-27 11:30:58 +0530123config MAX_CPUS
124 int
125 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530126
127config DCACHE_RAM_BASE
128 default 0xfef00000
129
130config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +0530131 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530132 help
133 The size of the cache-as-ram region required during bootblock
134 and/or romstage.
135
136config DCACHE_BSP_STACK_SIZE
137 hex
Subrata Banik191bd822020-11-21 19:30:57 +0530138 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530139 help
140 The amount of anticipated stack usage in CAR by bootblock and
141 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +0530142 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530143 (~1KiB).
144
145config FSP_TEMP_RAM_SIZE
146 hex
147 default 0x20000
148 help
149 The amount of anticipated heap usage in CAR by FSP.
150 Refer to Platform FSP integration guide document to know
151 the exact FSP requirement for Heap setup.
152
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700153config CHIPSET_DEVICETREE
154 string
155 default "soc/intel/alderlake/chipset.cb"
156
Subrata Banik683c95e2020-12-19 19:36:45 +0530157config EXT_BIOS_WIN_BASE
158 default 0xf8000000
159
160config EXT_BIOS_WIN_SIZE
161 default 0x2000000
162
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530163config IFD_CHIPSET
164 string
165 default "adl"
166
167config IED_REGION_SIZE
168 hex
169 default 0x400000
170
171config HEAP_SIZE
172 hex
173 default 0x10000
174
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700175# Intel recommends reserving the following resources per PCIe TBT root port,
176# from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5
177# - 42 buses
178# - 194 MiB Non-prefetchable memory
179# - 448 MiB Prefetchable memory
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700180if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700181
182config PCIEXP_HOTPLUG_BUSES
183 int
184 default 42
185
186config PCIEXP_HOTPLUG_MEM
187 hex
188 default 0xc200000
189
190config PCIEXP_HOTPLUG_PREFETCH_MEM
191 hex
192 default 0x1c000000
193
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700194endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700195
Subrata Banik85144d92021-01-09 16:17:45 +0530196config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530197 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530198 default 10 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530199 default 12 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100200 default 12 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik2871e0e2020-09-27 11:30:58 +0530201
Subrata Banik85144d92021-01-09 16:17:45 +0530202config MAX_CPU_ROOT_PORTS
203 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530204 default 1 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530205 default 0 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100206 default 3 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik85144d92021-01-09 16:17:45 +0530207
208config MAX_ROOT_PORTS
209 int
210 default MAX_PCH_ROOT_PORTS
211
Subrata Banikcffc9382021-01-29 18:41:35 +0530212config MAX_PCIE_CLOCK_SRC
Subrata Banik2871e0e2020-09-27 11:30:58 +0530213 int
Subrata Banikcffc9382021-01-29 18:41:35 +0530214 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530215 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100216 default 7 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banikcffc9382021-01-29 18:41:35 +0530217
218config MAX_PCIE_CLOCK_REQ
219 int
Angel Ponsdb925aa2021-12-01 11:44:09 +0100220 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530221 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100222 default 10 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik2871e0e2020-09-27 11:30:58 +0530223
224config SMM_TSEG_SIZE
225 hex
226 default 0x800000
227
228config SMM_RESERVED_SIZE
229 hex
230 default 0x200000
231
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530232config PCR_BASE_ADDRESS
233 hex
234 default 0xfd000000
235 help
236 This option allows you to select MMIO Base Address of sideband bus.
237
Shelley Chen4e9bb332021-10-20 15:43:45 -0700238config ECAM_MMCONF_BASE_ADDRESS
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530239 default 0xc0000000
240
241config CPU_BCLK_MHZ
242 int
243 default 100
244
245config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
246 int
247 default 120
248
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200249config CPU_XTAL_HZ
250 default 38400000
251
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530252config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
253 int
254 default 133
255
256config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
257 int
258 default 7
259
260config SOC_INTEL_I2C_DEV_MAX
261 int
Varshit B Pandya339f0e72021-07-14 11:08:23 +0530262 default 8
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530263
264config SOC_INTEL_UART_DEV_MAX
265 int
266 default 7
267
268config CONSOLE_UART_BASE_ADDRESS
269 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800270 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530271 depends on INTEL_LPSS_UART_FOR_CONSOLE
272
Maulik V Vaghela996bab42021-02-05 12:03:19 +0530273config VBT_DATA_SIZE_KB
274 int
275 default 9
276
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530277# Clock divider parameters for 115200 baud rate
278# Baudrate = (UART source clcok * M) /(N *16)
279# ADL UART source clock: 120MHz
280config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
281 hex
282 default 0x25a
283
284config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
285 hex
286 default 0x7fff
287
Subrata Banik292afef2020-09-09 13:34:18 +0530288config VBOOT
289 select VBOOT_SEPARATE_VERSTAGE
290 select VBOOT_MUST_REQUEST_DISPLAY
291 select VBOOT_STARTS_IN_BOOTBLOCK
292 select VBOOT_VBNV_CMOS
293 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Subrata Banik34237862021-06-17 23:36:02 +0530294 select VBOOT_X86_SHA256_ACCELERATION
Subrata Banik292afef2020-09-09 13:34:18 +0530295
MAULIK V VAGHELA84532da2021-08-25 16:41:23 +0530296# Default hash block size is 1KiB. Increasing it to 4KiB to improve
297# hashing time as well as read time. This helps in improving
298# boot time for Alder Lake.
299config VBOOT_HASH_BLOCK_SIZE
300 hex
301 default 0x1000
302
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530303config CBFS_SIZE
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530304 default 0x200000
305
306config PRERAM_CBMEM_CONSOLE_SIZE
307 hex
Subrata Banikbf750552021-07-10 20:30:57 +0530308 default 0x2000
Subrata Banik2871e0e2020-09-27 11:30:58 +0530309
Subrata Banikee735942020-09-07 17:52:23 +0530310config FSP_HEADER_PATH
311 string "Location of FSP headers"
312 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
313
314config FSP_FD_PATH
315 string
316 depends on FSP_USE_REPO
317 default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd"
Subrata Banik292afef2020-09-09 13:34:18 +0530318
319config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
320 int "Debug Consent for ADL"
Subrata Banik0cd553b2021-12-29 08:09:37 +0000321 # USB DBC is more common for developers so make this default to 2 if
Subrata Banik292afef2020-09-09 13:34:18 +0530322 # SOC_INTEL_DEBUG_CONSENT=y
Kane Chen0e9a6162021-11-23 14:42:48 +0800323 default 2 if SOC_INTEL_DEBUG_CONSENT
Subrata Banik292afef2020-09-09 13:34:18 +0530324 default 0
325 help
326 This is to control debug interface on SOC.
327 Setting non-zero value will allow to use DBC or DCI to debug SOC.
328 PlatformDebugConsent in FspmUpd.h has the details.
329
330 Desired platform debug type are
Kane Chen0e9a6162021-11-23 14:42:48 +0800331 0:Disabled, 2:Enabled (All Probes+TraceHub), 6:Enable (Low Power),
332 7:Manual
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800333
334config DATA_BUS_WIDTH
335 int
336 default 128
337
338config DIMMS_PER_CHANNEL
339 int
340 default 2
341
342config MRC_CHANNEL_WIDTH
343 int
344 default 16
345
Sugnan Prabhu Sdcf04592021-12-03 19:07:04 +0530346config ACPI_ADL_IPU_ES_SUPPORT
347 def_bool n
348 help
349 Enables ACPI entry to provide silicon type information to IPU kernel driver.
350
Furquan Shaikhf888c682021-10-05 21:37:33 -0700351if STITCH_ME_BIN
352
353config CSE_BPDT_VERSION
354 default "1.7"
355
356endif
357
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530358endif