Debian Codegraph @

src/soc/intel/meteorlake/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 config SOC_INTEL_METEORLAKE
4 bool
5 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
6 select ARCH_X86
7 select BOOT_DEVICE_SUPPORTS_WRITES
8 select CACHE_MRC_SETTINGS
9 select CPU_INTEL_COMMON
10 select CPU_INTEL_COMMON_VOLTAGE
11 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
12 select CPU_SUPPORTS_INTEL_TME
13 select CPU_SUPPORTS_PM_TIMER_EMULATION
14 select DEFAULT_SOFTWARE_CONNECTION_MANAGER
15 select DEFAULT_X2APIC_LATE_WORKAROUND
16 select DISPLAY_FSP_VERSION_INFO_2 if !FSP_USE_REPO
17 select DRAM_SUPPORT_DDR5
18 select DRIVERS_USB_ACPI
19 select EDK2_CPU_TIMER_LIB if PAYLOAD_EDK2
20 select FSP_COMPRESS_FSP_S_LZ4
21 select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
22 select FSP_M_XIP
23 select FSP_UGOP_EARLY_SIGN_OF_LIFE if !SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON && !BOARD_GOOGLE_BASEBOARD_OVIS
24 select FSP_USES_CB_DEBUG_EVENT_HANDLER
25 select FSPS_HAS_ARCH_UPD
26 select GENERIC_GPIO_LIB
27 select HAVE_DEBUG_RAM_SETUP
28 select HAVE_FSP_GOP
29 select HAVE_INTEL_FSP_REPO if FSP_TYPE_IOT
30 select HAVE_HYPERTHREADING
31 select HAVE_INTEL_COMPLIANCE_TEST_MODE
32 select HAVE_SMI_HANDLER
33 select IDT_IN_EVERY_STAGE
34 select INTEL_DESCRIPTOR_MODE_CAPABLE
35 select INTEL_GMA_ACPI
36 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
37 select INTEL_GMA_OPREGION_2_1
38 select INTEL_GMA_VERSION_2
39 select IOAPIC
40 select MP_SERVICES_PPI_V2
41 select MRC_CACHE_USING_MRC_VERSION if !FSP_USE_REPO
42 select MRC_SETTINGS_PROTECT
43 select PARALLEL_MP_AP_WORK
44 select PCIE_CLOCK_CONTROL_THROUGH_P2SB
45 select PLATFORM_USES_FSP2_4 if HAVE_X86_64_SUPPORT
46 select PLATFORM_USES_FSP2_3 if !HAVE_X86_64_SUPPORT
47 select PMC_GLOBAL_RESET_ENABLE_LOCK
48 select SOC_INTEL_COMMON
49 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
50 select SOC_INTEL_COMMON_BLOCK
51 select SOC_INTEL_COMMON_BLOCK_ACPI
52 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
53 select SOC_INTEL_COMMON_BLOCK_ACPI_CPU_HYBRID
54 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
55 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
56 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
57 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ
58 select SOC_INTEL_COMMON_BLOCK_ASPM
59 select SOC_INTEL_COMMON_BLOCK_CAR
60 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
61 select SOC_INTEL_COMMON_BLOCK_CNVI
62 select SOC_INTEL_COMMON_BLOCK_CPU
63 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
64 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
65 select SOC_INTEL_COMMON_BLOCK_DTT
66 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
67 select SOC_INTEL_COMMON_BLOCK_GPIO_IOSTANDBY
68 select SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_PCR
69 select SOC_INTEL_COMMON_BLOCK_GPIO_PMODE_4BITS
70 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
71 select SOC_INTEL_COMMON_BLOCK_HDA
72 select SOC_INTEL_COMMON_BLOCK_HECI1_DISABLE_USING_PMC_IPC
73 select SOC_INTEL_COMMON_BLOCK_IPU
74 select SOC_INTEL_COMMON_BLOCK_IOE_P2SB
75 select SOC_INTEL_COMMON_BLOCK_IRQ
76 select SOC_INTEL_COMMON_BLOCK_ME_SPEC_18
77 select SOC_INTEL_COMMON_BLOCK_MEMINIT
78 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
79 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
80 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
81 select SOC_INTEL_COMMON_BLOCK_SA
82 select SOC_INTEL_COMMON_BLOCK_SMM
83 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
84 select SOC_INTEL_COMMON_BLOCK_SMM_TCO_ENABLE
85 select SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC
86 select SOC_INTEL_COMMON_BLOCK_XHCI
87 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
88 select SOC_INTEL_COMMON_BASECODE
89 select SOC_INTEL_COMMON_BASECODE_RAMTOP
90 select SOC_INTEL_COMMON_FSP_RESET
91 select SOC_INTEL_COMMON_PCH_CLIENT
92 select SOC_INTEL_COMMON_RESET
93 select SOC_INTEL_COMMON_BLOCK_IOC
94 select SOC_INTEL_CRASHLOG
95 select SOC_INTEL_CSE_LITE_PSR if MAINBOARD_HAS_CHROMEOS && SOC_INTEL_CSE_LITE_SKU
96 select SOC_INTEL_CSE_SEND_EOP_LATE if !MAINBOARD_HAS_CHROMEOS
97 select SOC_INTEL_CSE_SET_EOP
98 select SOC_INTEL_IOE_DIE_SUPPORT
99 select SOC_INTEL_GFX_NON_PREFETCHABLE_MMIO
100 select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION
101 select SSE2
102 select SUPPORT_CPU_UCODE_IN_CBFS
103 select TSC_MONOTONIC_TIMER
104 select UDELAY_TSC
105 select UDK_202302_BINDING
106 select X86_INIT_NEED_1_SIPI
107 select INTEL_KEYLOCKER
108 help
109 Intel Meteorlake support. Mainboards should specify the SoC
110 type using the `SOC_INTEL_METEORLAKE_*` options instead
111 of selecting this option directly.
112
113 config SOC_INTEL_METEORLAKE_U_H
114 bool
115 select SOC_INTEL_METEORLAKE
116 help
117 Choose this option if your mainboard has a MTL-U (9W or 15W)
118 or MTL-H (28W or 45W) SoC.
119
120 Note, the MTL-U/H-Processor Line offered in a 1-Chip Platform
121 that includes the Compute, SOC, GT, and IOE tile on the same
122 package.
123
124 config SOC_INTEL_METEORLAKE_S
125 bool
126 select SOC_INTEL_METEORLAKE
127 help
128 Choose this option if your mainboard has a MTL-S (35W or 65W) SoC.
129 Note, MTL-S SoC combines Compute, GFX, SoC, IOE and PCH die.
130
131 config SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
132 bool
133 default n
134 help
135 Choose this option if your mainboard has a Meteor Lake pre-production
136 silicon. Typically known as engineering samples (like ES). This type
137 of the silicon are very common for early platform development.
138
139 if SOC_INTEL_METEORLAKE
140
141 config SOC_INTEL_METEORLAKE_TCSS_USB4_SUPPORT
142 bool
143 default y
144 select SOC_INTEL_COMMON_BLOCK_TCSS
145 select SOC_INTEL_COMMON_BLOCK_USB4
146 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
147 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
148
149 config METEORLAKE_CAR_ENHANCED_NEM
150 bool
151 default y if !INTEL_CAR_NEM
152 select INTEL_CAR_NEM_ENHANCED
153 select CAR_HAS_SF_MASKS
154 select COS_MAPPED_TO_MSB
155 select CAR_HAS_L3_PROTECTED_WAYS
156 select INTEL_CAR_ENEM_USE_EFFECTIVE_WAY_SIZE
157
158 config MAX_CPUS
159 int
160 default 22
161
162 config DCACHE_RAM_BASE
163 default 0xfef00000
164
165 config DCACHE_RAM_SIZE
166 default 0xc0000
167 help
168 The size of the cache-as-ram region required during bootblock
169 and/or romstage.
170
171 config DCACHE_BSP_STACK_SIZE
172 hex
173 default 0x88000
174 help
175 The amount of anticipated stack usage in CAR by bootblock and
176 other stages. In the case of FSP_USES_CB_STACK default value will be
177 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
178 (~32KiB).
179
180 config FSP_TEMP_RAM_SIZE
181 hex
182 default 0x20000
183 help
184 The amount of anticipated heap usage in CAR by FSP.
185 Refer to Platform FSP integration guide document to know
186 the exact FSP requirement for Heap setup.
187
188 config CHIPSET_DEVICETREE
189 string
190 default "soc/intel/meteorlake/chipset.cb"
191
192 config EXT_BIOS_WIN_BASE
193 default 0xf8000000
194
195 config EXT_BIOS_WIN_SIZE
196 default 0x2000000
197
198 config IFD_CHIPSET
199 string
200 default "mtl"
201
202 config IED_REGION_SIZE
203 hex
204 default 0x400000
205
206 # Intel recommends reserving the PCIe TBT root port resources as below:
207 # - 42 buses
208 # - 194 MiB Non-prefetchable memory
209 # - 448 MiB Prefetchable memory
210 if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
211
212 config PCIEXP_HOTPLUG_BUSES
213 int
214 default 42
215
216 config PCIEXP_HOTPLUG_MEM
217 hex
218 default 0xc200000
219
220 config PCIEXP_HOTPLUG_PREFETCH_MEM
221 hex
222 default 0x1c000000
223
224 endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
225
226 config MAX_TBT_ROOT_PORTS
227 int
228 default 4
229
230 config MAX_ROOT_PORTS
231 int
232 default 12
233
234 config MAX_PCIE_CLOCK_SRC
235 int
236 default 9
237
238 config SMM_TSEG_SIZE
239 hex
240 default 0x800000
241
242 config SMM_RESERVED_SIZE
243 hex
244 default 0x200000
245
246 config PCR_BASE_ADDRESS
247 hex
248 default 0xe0000000
249 help
250 This option allows you to select MMIO Base Address of sideband bus.
251
252 config IOE_PCR_BASE_ADDRESS
253 hex
254 default 0x3fff0000000
255 help
256 This option allows you to select MMIO Base Address of IOE sideband bus.
257
258 config ECAM_MMCONF_BASE_ADDRESS
259 default 0xc0000000
260
261 config SOC_INTEL_PERFORMANCE_CORE_SCALE_FACTOR
262 int
263 default 125
264
265 config SOC_INTEL_EFFICIENT_CORE_SCALE_FACTOR
266 int
267 default 100
268
269 config CPU_BCLK_MHZ
270 int
271 default 100
272
273 config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
274 int
275 default 120
276
277 config CPU_XTAL_HZ
278 default 38400000
279
280 config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
281 int
282 default 133
283
284 config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
285 int
286 default 3
287
288 config SOC_INTEL_I2C_DEV_MAX
289 int
290 default 6
291
292 config SOC_INTEL_UART_DEV_MAX
293 int
294 default 3
295
296 config SOC_INTEL_USB2_DEV_MAX
297 int
298 default 10
299
300 config SOC_INTEL_USB3_DEV_MAX
301 int
302 default 2
303
304 config CONSOLE_UART_BASE_ADDRESS
305 hex
306 default 0xfe02c000
307 depends on INTEL_LPSS_UART_FOR_CONSOLE
308
309 # Clock divider parameters for 115200 baud rate
310 # Baudrate = (UART source clock * M) /(N *16)
311 # MTL UART source clock: 100MHz
312 config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
313 hex
314 default 0x25a
315
316 config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
317 hex
318 default 0x7fff
319
320 config VBOOT
321 select VBOOT_SEPARATE_VERSTAGE
322 select VBOOT_MUST_REQUEST_DISPLAY
323 select VBOOT_STARTS_IN_BOOTBLOCK
324 select VBOOT_VBNV_CMOS
325 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
326 select VBOOT_X86_SHA256_ACCELERATION
327 select VBOOT_X86_RSA_ACCELERATION
328
329 # Default hash block size is 1KiB. Increasing it to 4KiB to improve
330 # hashing time as well as read time.
331 config VBOOT_HASH_BLOCK_SIZE
332 hex
333 default 0x1000
334
335 config CBFS_SIZE
336 hex
337 default 0x200000
338
339 config PRERAM_CBMEM_CONSOLE_SIZE
340 hex
341 default 0x2000
342
343 config CONSOLE_CBMEM_BUFFER_SIZE
344 hex
345 default 0x100000 if BUILDING_WITH_DEBUG_FSP
346 default 0x40000
347
348 config FSP_TYPE_IOT
349 bool
350 default n
351 help
352 This option allows to select FSP IOT type from 3rdparty/fsp repo
353
354 config FSP_HEADER_PATH
355 string "Location of FSP headers"
356 default "3rdparty/fsp/MeteorLakeFspBinPkg/IoT/MeteorLake/Include" if FSP_USE_REPO && FSP_TYPE_IOT
357 default "src/vendorcode/intel/fsp/fsp2_0/meteorlake/x86_64/" if HAVE_X86_64_SUPPORT
358 default "src/vendorcode/intel/fsp/fsp2_0/meteorlake/x86_32/"
359
360 config FSP_FD_PATH
361 string
362 depends on FSP_USE_REPO
363 default "3rdparty/fsp/MeteorLakeFspBinPkg/IoT/MeteorLake/Fsp.fd" if FSP_TYPE_IOT
364 default "3rdparty/fsp/MeteorLakeFspBinPkg/Fsp.fd"
365
366 # Override platform debug consent value:
367 # 0:Disabled, 2:Enabled Trace Active, 4:Enabled Trace Ready,
368 # 6:Enable Trace Power-Off, 7:Manual
369 config SOC_INTEL_COMMON_DEBUG_CONSENT
370 int
371 default 6 if SOC_INTEL_DEBUG_CONSENT
372 default 2 if SOC_INTEL_COMMON_BLOCK_TRACEHUB
373
374 config DATA_BUS_WIDTH
375 int
376 default 128
377
378 config DIMMS_PER_CHANNEL
379 int
380 default 2
381
382 config MRC_CHANNEL_WIDTH
383 int
384 default 16
385
386 config SOC_INTEL_GFX_FRAMEBUFFER_OFFSET
387 hex
388 default 0x800000
389
390 config INTEL_GMA_BCLV_OFFSET
391 default 0xc8258
392
393 config INTEL_GMA_BCLV_WIDTH
394 default 32
395
396 config INTEL_GMA_BCLM_OFFSET
397 default 0xc8254
398
399 config INTEL_GMA_BCLM_WIDTH
400 default 32
401
402 config DROP_CPU_FEATURE_PROGRAM_IN_FSP
403 bool
404 default y if MP_SERVICES_PPI_V2_NOOP || CHROMEOS
405 default n
406 help
407 This is to avoid FSP running basic CPU feature programming on BSP
408 and on APs using the "CpuFeaturesPei.efi" module. The feature programming
409 includes enabling x2APIC, MCA, MCE and Turbo etc.
410
411 Most of these feature programming are getting performed today in scope
412 of coreboot doing MP Init. Running these redundant programming in scope
413 of FSP (when `USE_FSP_FEATURE_PROGRAM_ON_APS` config is enabled) would
414 results in CPU exception.
415
416 SoC users to select this config after dropping "CpuFeaturesPei.ffs" module
417 from FSP-S Firmware Volume (FV). Upon selection, coreboot runs those additional
418 feature programming on BSP and APs.
419
420 This feature is default enabled, in case of "coreboot running MP init"
421 aka MP_SERVICES_PPI_V2_NOOP config is selected.
422
423 config PCIE_LTR_MAX_SNOOP_LATENCY
424 hex
425 default 0x100f
426 help
427 Latency tolerance reporting, max snoop latency value defaults to 15.73 ms.
428
429 config PCIE_LTR_MAX_NO_SNOOP_LATENCY
430 hex
431 default 0x100f
432 help
433 Latency tolerance reporting, max non-snoop latency value defaults to 15.73 ms.
434
435 config IOE_DIE_CLOCK_START
436 int
437 default 6 if SOC_INTEL_METEORLAKE_U_H
438
439 config HAVE_BMP_LOGO_COMPRESS_LZMA
440 default n
441
442 # The default offset to store CSE RW FW version information is at 68.
443 # However, in Intel Meteor Lake based systems that use PSR, the additional
444 # size required to keep CSE RW FW version information and PSR back-up status
445 # in adjacent CMOS memory at offset 68 is not available. Therefore, we
446 # override the default offset to 161, which has enough space to keep both
447 # the CSE related information together.
448 config SOC_INTEL_CSE_FW_PARTITION_CMOS_OFFSET
449 int
450 default 161
451
452 config SOC_INTEL_COMMON_BLOCK_ACPI_SLP_S0_FREQ_HZ
453 default 0x2005
454 help
455 slp_s0_residency granularity in 122us ticks (i.e. ~8.2KHz) in Meteor Lake.
456
457 config SOC_PHYSICAL_ADDRESS_WIDTH
458 int
459 default 42
460
461 config SKIP_SEND_CONNECT_TOPOLOGY_CMD
462 bool
463 default y if SOFTWARE_CONNECTION_MANAGER
464 default n
465 help
466 When selected, the FSP UPD ITbtConnectTopologyTimeoutInMs will be set to
467 zero, causing FSP to skip sending the Connect Topology (CNTP) command,
468 which by default has a 5s timeout. CNTP is not needed when using software
469 connection manager, and sending it will cause a 5-10s boot delay.
470 Mainboards which use firmware connection manager may also wish to select this
471 as needed.
472
473 config TME_KEY_REGENERATION_ON_WARM_BOOT
474 default y if INTEL_TME
475
476 endif