Debian Codegraph @

src/soc/intel/denverton_ns/Kconfig

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 config SOC_INTEL_DENVERTON_NS
4 bool
5 select ARCH_X86
6 select BOOT_DEVICE_SUPPORTS_WRITES
7 select CACHE_MRC_SETTINGS
8 select CPU_INTEL_COMMON
9 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
10 select CPU_SUPPORTS_PM_TIMER_EMULATION
11 select DEBUG_GPIO
12 select DRAM_SUPPORT_DDR4
13 select EDK2_CPU_TIMER_LIB if PAYLOAD_EDK2
14 select FSP_M_XIP
15 select FSP_T_XIP if FSP_CAR
16 select HAVE_INTEL_FSP_REPO
17 select HAVE_SMI_HANDLER
18 select INTEL_DESCRIPTOR_MODE_CAPABLE
19 select PCR_COMMON_IOSF_1_0
20 select PLATFORM_USES_FSP2_0
21 select SOC_INTEL_COMMON
22 select SOC_INTEL_COMMON_RESET
23 select SOC_INTEL_COMMON_BLOCK
24 select SOC_INTEL_COMMON_BLOCK_CPU
25 select SOC_INTEL_COMMON_BLOCK_ACPI
26 select SOC_INTEL_COMMON_BLOCK_PMC
27 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
28 select SOC_INTEL_COMMON_BLOCK_SPI
29 select SOC_INTEL_COMMON_BLOCK_FAST_SPI
30 select SOC_INTEL_COMMON_BLOCK_GPIO
31 select SOC_INTEL_COMMON_BLOCK_PCR
32 select SOC_INTEL_COMMON_BLOCK_PMC_DISCOVERABLE
33 select SOC_INTEL_COMMON_BLOCK_SMBUS
34 select SUPPORT_CPU_UCODE_IN_CBFS
35 select SOUTHBRIDGE_INTEL_COMMON_SMBUS
36 select TSC_MONOTONIC_TIMER
37 select TSC_SYNC_MFENCE
38 select UDELAY_TSC
39 select UDK_2017_BINDING
40 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
41 select USE_FSP_NOTIFY_PHASE_READY_TO_BOOT
42 select USE_FSP_NOTIFY_PHASE_END_OF_FIRMWARE
43 help
44 Intel Denverton-NS SoC support
45
46 if SOC_INTEL_DENVERTON_NS
47
48 config CPU_INTEL_NUM_FIT_ENTRIES
49 int
50 default 1
51
52 config ECAM_MMCONF_BASE_ADDRESS
53 default 0xe0000000
54
55 config ECAM_MMCONF_BUS_NUMBER
56 int
57 default 256
58
59 config FSP_HEADER_PATH
60 default "3rdparty/fsp/DenvertonNSFspBinPkg/Include/"
61
62 config FSP_FD_PATH
63 default "3rdparty/fsp/DenvertonNSFspBinPkg/FspBin/DenvertonNSFsp.fd"
64
65 # CAR memory layout on DENVERTON_NS hardware:
66 ## CAR base address - 0xfef00000
67 ## CAR size 1MB - 0x100 (0xfff00)
68 ## coreboot usage:
69 ## DCACHE base - 0xfef00000
70 ## DCACHE size - 0xb0000
71 ## FSP usage:
72 ## FSP base - 0xfefb0000
73 ## FSP size - 0x50000 - 0x100 (0x4ff00)
74 config MAX_CPUS
75 int
76 default 16
77
78 config PCR_BASE_ADDRESS
79 hex
80 default 0xfd000000
81 help
82 This option allows you to select MMIO Base Address of sideband bus.
83
84 config DCACHE_RAM_BASE
85 hex
86 default 0xfef00000
87
88 config DCACHE_RAM_SIZE
89 hex
90 default 0xb0000 if FSP_CAR
91 default 0x100000 if !FSP_CAR
92
93 config DCACHE_BSP_STACK_SIZE
94 hex
95 default 0x10000
96
97 config CPU_BCLK_MHZ
98 int
99 default 100
100
101 config CPU_XTAL_HZ
102 default 24000000
103
104 config SMM_TSEG_SIZE
105 hex
106 default 0x200000
107
108 config SMM_RESERVED_SIZE
109 hex
110 default 0x000000
111
112 config IQAT_ENABLE
113 bool "Enable IQAT"
114 default y
115
116 config HSUART_DEV
117 hex
118 default 0x1a
119
120 choice
121 prompt "UART mode selection"
122 default NON_LEGACY_UART_MODE
123
124 config NON_LEGACY_UART_MODE
125 bool "Non Legacy Mode"
126 help
127 Disable legacy UART mode
128
129 config LEGACY_UART_MODE
130 bool "Legacy Mode"
131 help
132 Enable legacy UART mode
133 select CONSOLE_SERIAL
134 select DRIVERS_UART
135 select DRIVERS_UART_8250IO
136 endchoice
137
138 config ENABLE_HSUART
139 depends on NON_LEGACY_UART_MODE
140 bool "Enable High-speed UART debug port selected by UART_FOR_CONSOLE."
141 default n
142 select CONSOLE_SERIAL
143 select DRIVERS_UART
144 select DRIVERS_UART_8250MEM
145
146 config CONSOLE_UART_BASE_ADDRESS
147 depends on ENABLE_HSUART
148 hex "MMIO base address for UART"
149 default 0xd4000000
150
151 choice
152 prompt "Cache-as-ram implementation"
153 default USE_DENVERTON_NS_CAR_NEM_ENHANCED
154 help
155 This option allows you to select how cache-as-ram (CAR) is set up.
156
157 config USE_DENVERTON_NS_CAR_NEM_ENHANCED
158 bool "Enhanced Non-evict mode"
159 select SOC_INTEL_COMMON_BLOCK_CAR
160 select INTEL_CAR_NEM_ENHANCED
161 help
162 A current limitation of NEM (Non-Evict mode) is that code and data sizes
163 are derived from the requirement to not write out any modified cache line.
164 With NEM, if there is no physical memory behind the cached area,
165 the modified data will be lost and NEM results will be inconsistent.
166 ENHANCED NEM guarantees that modified data is always
167 kept in cache while clean data is replaced.
168
169 config USE_DENVERTON_NS_FSP_CAR
170 bool "Use FSP CAR"
171 select FSP_CAR
172 help
173 Use FSP APIs to initialize and tear down the Cache-As-Ram.
174
175 endchoice
176
177 config IFD_CHIPSET
178 string
179 default "dnv"
180
181 endif ## SOC_INTEL_DENVERTON_NS