blob: 74c14a5ef6e10f13d058469b1742a54e981577e4 [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 Banikb3ced6a2020-08-04 13:34:03 +053076 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053077 select SOC_INTEL_COMMON_BLOCK_HDA
Tim Wawrzynczak0c057c22021-03-04 10:56:28 -070078 select SOC_INTEL_COMMON_BLOCK_IPU
Tim Wawrzynczak43607e42021-05-18 09:04:42 -060079 select SOC_INTEL_COMMON_BLOCK_IRQ
Furquan Shaikha1c247b2020-12-31 22:50:14 -080080 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Rizwan Qureshi307be992021-04-08 20:35:29 +053081 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Lean Sheng Tan75020002021-06-30 01:47:48 -070082 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
Sumeet R Pawnikar77298c62021-03-10 21:09:37 +053083 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053084 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +053085 select SOC_INTEL_COMMON_BLOCK_SMM
86 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banik8407c342021-09-08 20:15:36 +053087 select SOC_INTEL_COMMON_BLOCK_TCSS
Subrata Banikb2e8bd82021-11-17 15:35:05 +053088 select SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC
Eric Lai4ea47c32020-12-21 16:57:49 +080089 select SOC_INTEL_COMMON_BLOCK_USB4
90 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
91 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Tim Wawrzynczak242da792020-11-10 10:13:54 -070092 select SOC_INTEL_COMMON_BLOCK_XHCI
93 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053094 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053095 select SOC_INTEL_COMMON_PCH_BASE
96 select SOC_INTEL_COMMON_RESET
Tim Wawrzynczakc0e82e72021-06-17 12:42:35 -060097 select SOC_INTEL_CSE_SET_EOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053098 select SSE2
99 select SUPPORT_CPU_UCODE_IN_CBFS
100 select TSC_MONOTONIC_TIMER
101 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +0530102 select UDK_202005_BINDING
Subrata Banik2871e0e2020-09-27 11:30:58 +0530103 select DISPLAY_FSP_VERSION_INFO
Subrata Banik2871e0e2020-09-27 11:30:58 +0530104
Angel Pons5e7f90b2022-01-08 13:16:38 +0100105config ALDERLAKE_A0_CONFIGURE_PMC_DESCRIPTOR
106 bool
107 help
108 Alder Lake stepping A0 needs a different value for a PMC setting in
109 the IFD. When this option is selected, coreboot will update the IFD
110 value at runtime, which allows using an IFD with the new value with
111 any CPU stepping. To apply this workaround, the IFD region needs to
112 be writable by the host.
113
Subrata Banik095e2a72021-07-05 20:56:15 +0530114config ALDERLAKE_CAR_ENHANCED_NEM
115 bool
116 default y if !INTEL_CAR_NEM
117 select INTEL_CAR_NEM_ENHANCED
118 select CAR_HAS_SF_MASKS
119 select COS_MAPPED_TO_MSB
120 select CAR_HAS_L3_PROTECTED_WAYS
121
Subrata Banik2871e0e2020-09-27 11:30:58 +0530122config MAX_CPUS
123 int
124 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530125
126config DCACHE_RAM_BASE
127 default 0xfef00000
128
129config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +0530130 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530131 help
132 The size of the cache-as-ram region required during bootblock
133 and/or romstage.
134
135config DCACHE_BSP_STACK_SIZE
136 hex
Subrata Banik191bd822020-11-21 19:30:57 +0530137 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530138 help
139 The amount of anticipated stack usage in CAR by bootblock and
140 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +0530141 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530142 (~1KiB).
143
144config FSP_TEMP_RAM_SIZE
145 hex
146 default 0x20000
147 help
148 The amount of anticipated heap usage in CAR by FSP.
149 Refer to Platform FSP integration guide document to know
150 the exact FSP requirement for Heap setup.
151
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700152config CHIPSET_DEVICETREE
153 string
154 default "soc/intel/alderlake/chipset.cb"
155
Subrata Banik683c95e2020-12-19 19:36:45 +0530156config EXT_BIOS_WIN_BASE
157 default 0xf8000000
158
159config EXT_BIOS_WIN_SIZE
160 default 0x2000000
161
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530162config IFD_CHIPSET
163 string
164 default "adl"
165
166config IED_REGION_SIZE
167 hex
168 default 0x400000
169
170config HEAP_SIZE
171 hex
172 default 0x10000
173
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700174# Intel recommends reserving the following resources per PCIe TBT root port,
175# from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5
176# - 42 buses
177# - 194 MiB Non-prefetchable memory
178# - 448 MiB Prefetchable memory
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700179if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700180
181config PCIEXP_HOTPLUG_BUSES
182 int
183 default 42
184
185config PCIEXP_HOTPLUG_MEM
186 hex
187 default 0xc200000
188
189config PCIEXP_HOTPLUG_PREFETCH_MEM
190 hex
191 default 0x1c000000
192
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700193endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700194
Subrata Banik85144d92021-01-09 16:17:45 +0530195config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530196 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530197 default 10 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530198 default 12 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100199 default 12 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik2871e0e2020-09-27 11:30:58 +0530200
Subrata Banik85144d92021-01-09 16:17:45 +0530201config MAX_CPU_ROOT_PORTS
202 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530203 default 1 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530204 default 0 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100205 default 3 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik85144d92021-01-09 16:17:45 +0530206
207config MAX_ROOT_PORTS
208 int
209 default MAX_PCH_ROOT_PORTS
210
Subrata Banikcffc9382021-01-29 18:41:35 +0530211config MAX_PCIE_CLOCK_SRC
Subrata Banik2871e0e2020-09-27 11:30:58 +0530212 int
Subrata Banikcffc9382021-01-29 18:41:35 +0530213 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530214 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100215 default 7 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banikcffc9382021-01-29 18:41:35 +0530216
217config MAX_PCIE_CLOCK_REQ
218 int
Angel Ponsdb925aa2021-12-01 11:44:09 +0100219 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530220 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100221 default 10 if SOC_INTEL_ALDERLAKE_PCH_P
Subrata Banik2871e0e2020-09-27 11:30:58 +0530222
223config SMM_TSEG_SIZE
224 hex
225 default 0x800000
226
227config SMM_RESERVED_SIZE
228 hex
229 default 0x200000
230
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530231config PCR_BASE_ADDRESS
232 hex
233 default 0xfd000000
234 help
235 This option allows you to select MMIO Base Address of sideband bus.
236
Shelley Chen4e9bb332021-10-20 15:43:45 -0700237config ECAM_MMCONF_BASE_ADDRESS
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530238 default 0xc0000000
239
240config CPU_BCLK_MHZ
241 int
242 default 100
243
244config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
245 int
246 default 120
247
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200248config CPU_XTAL_HZ
249 default 38400000
250
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530251config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
252 int
253 default 133
254
255config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
256 int
257 default 7
258
259config SOC_INTEL_I2C_DEV_MAX
260 int
Varshit B Pandya339f0e72021-07-14 11:08:23 +0530261 default 8
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530262
263config SOC_INTEL_UART_DEV_MAX
264 int
265 default 7
266
267config CONSOLE_UART_BASE_ADDRESS
268 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800269 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530270 depends on INTEL_LPSS_UART_FOR_CONSOLE
271
Maulik V Vaghela996bab42021-02-05 12:03:19 +0530272config VBT_DATA_SIZE_KB
273 int
274 default 9
275
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530276# Clock divider parameters for 115200 baud rate
277# Baudrate = (UART source clcok * M) /(N *16)
278# ADL UART source clock: 120MHz
279config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
280 hex
281 default 0x25a
282
283config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
284 hex
285 default 0x7fff
286
Subrata Banik292afef2020-09-09 13:34:18 +0530287config VBOOT
288 select VBOOT_SEPARATE_VERSTAGE
289 select VBOOT_MUST_REQUEST_DISPLAY
290 select VBOOT_STARTS_IN_BOOTBLOCK
291 select VBOOT_VBNV_CMOS
292 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Subrata Banik34237862021-06-17 23:36:02 +0530293 select VBOOT_X86_SHA256_ACCELERATION
Subrata Banik292afef2020-09-09 13:34:18 +0530294
MAULIK V VAGHELA84532da2021-08-25 16:41:23 +0530295# Default hash block size is 1KiB. Increasing it to 4KiB to improve
296# hashing time as well as read time. This helps in improving
297# boot time for Alder Lake.
298config VBOOT_HASH_BLOCK_SIZE
299 hex
300 default 0x1000
301
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530302config CBFS_SIZE
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530303 default 0x200000
304
305config PRERAM_CBMEM_CONSOLE_SIZE
306 hex
Subrata Banikbf750552021-07-10 20:30:57 +0530307 default 0x2000
Subrata Banik2871e0e2020-09-27 11:30:58 +0530308
Subrata Banikee735942020-09-07 17:52:23 +0530309config FSP_HEADER_PATH
310 string "Location of FSP headers"
311 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
312
313config FSP_FD_PATH
314 string
315 depends on FSP_USE_REPO
316 default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd"
Subrata Banik292afef2020-09-09 13:34:18 +0530317
318config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
319 int "Debug Consent for ADL"
Subrata Banik0cd553b2021-12-29 08:09:37 +0000320 # USB DBC is more common for developers so make this default to 2 if
Subrata Banik292afef2020-09-09 13:34:18 +0530321 # SOC_INTEL_DEBUG_CONSENT=y
Kane Chen0e9a6162021-11-23 14:42:48 +0800322 default 2 if SOC_INTEL_DEBUG_CONSENT
Subrata Banik292afef2020-09-09 13:34:18 +0530323 default 0
324 help
325 This is to control debug interface on SOC.
326 Setting non-zero value will allow to use DBC or DCI to debug SOC.
327 PlatformDebugConsent in FspmUpd.h has the details.
328
329 Desired platform debug type are
Kane Chen0e9a6162021-11-23 14:42:48 +0800330 0:Disabled, 2:Enabled (All Probes+TraceHub), 6:Enable (Low Power),
331 7:Manual
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800332
333config DATA_BUS_WIDTH
334 int
335 default 128
336
337config DIMMS_PER_CHANNEL
338 int
339 default 2
340
341config MRC_CHANNEL_WIDTH
342 int
343 default 16
344
Sugnan Prabhu Sdcf04592021-12-03 19:07:04 +0530345config ACPI_ADL_IPU_ES_SUPPORT
346 def_bool n
347 help
348 Enables ACPI entry to provide silicon type information to IPU kernel driver.
349
Furquan Shaikhf888c682021-10-05 21:37:33 -0700350if STITCH_ME_BIN
351
352config CSE_BPDT_VERSION
353 default "1.7"
354
355endif
356
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530357endif