Debian Codegraph @

src/soc/intel/pantherlake/Kconfig

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