Debian Codegraph @

src/soc/intel/snowridge/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 config SOC_INTEL_SNOWRIDGE
4 bool
5 help
6 Intel Snow Ridge SoC support
7
8 select BOOT_DEVICE_SUPPORTS_WRITES
9
10 ## Arch
11 select ARCH_X86
12
13 ## CPU
14 select SSE
15 select SUPPORT_CPU_UCODE_IN_CBFS
16 select MICROCODE_BLOB_NOT_IN_BLOB_REPO
17 select CPU_INTEL_COMMON
18 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
19 select PARALLEL_MP
20 select PARALLEL_MP_AP_WORK
21 select UDELAY_TSC
22 select TSC_MONOTONIC_TIMER
23 select TSC_SYNC_MFENCE
24 select HAVE_SMI_HANDLER
25
26 ## ACPI
27 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
28
29 ## Device
30 select DRAM_SUPPORT_DDR4
31
32 ## Drivers
33 select CACHE_MRC_SETTINGS
34 select UART_OVERRIDE_REFCLK
35
36 ## FSP 2.0
37 select PLATFORM_USES_FSP2_0
38 select FSP_CAR
39 select FSP_USES_CB_STACK
40 select FSP_M_XIP
41 select FSP_T_XIP
42 select SOC_INTEL_COMMON_FSP_RESET
43
44 ## SoC
45 select SOC_INTEL_COMMON
46 select SOC_INTEL_COMMON_BASECODE
47 select SOC_INTEL_COMMON_BLOCK
48 select SOC_INTEL_COMMON_BLOCK_ACPI
49 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
50 select SOC_INTEL_COMMON_BLOCK_CPU
51 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
52 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
53 select USE_INTEL_FSP_MP_INIT
54 select SOC_INTEL_COMMON_BLOCK_FAST_SPI
55 select SOC_INTEL_COMMON_BLOCK_GPIO
56 select SOC_INTEL_COMMON_BLOCK_GPIO_ITSS_POL_CFG
57 select SOC_INTEL_COMMON_BLOCK_GPMR
58 select USE_SOC_GPMR_DEFS
59 select SOC_INTEL_COMMON_BLOCK_IMC
60 select SOC_INTEL_COMMON_BLOCK_IRQ
61 select SOC_INTEL_COMMON_BLOCK_ITSS
62 select SOC_INTEL_COMMON_BLOCK_LPC
63 select SOC_INTEL_COMMON_BLOCK_LPC_MIRROR_TO_GPMR
64 select SOC_INTEL_COMMON_BLOCK_MEMINIT
65 select SOC_INTEL_COMMON_BLOCK_P2SB
66 select SOC_INTEL_COMMON_BLOCK_PCR
67 select SOC_INTEL_COMMON_BLOCK_PMC
68 select SOC_INTEL_COMMON_BLOCK_RTC
69 select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION
70 select PMC_GLOBAL_RESET_ENABLE_LOCK
71 select SOC_INTEL_COMMON_BLOCK_SMBUS
72 select SOC_INTEL_COMMON_BLOCK_TCO
73 select SOC_INTEL_COMMON_BLOCK_TCO_ENABLE_THROUGH_SMBUS
74 select SOC_INTEL_COMMON_BLOCK_SA_SERVER
75 select SOC_INTEL_COMMON_BLOCK_SMM
76 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
77 select SOC_INTEL_COMMON_BLOCK_SMM_ESPI_DISABLE
78 select SOC_INTEL_COMMON_BLOCK_SMM_TCO_ENABLE
79 select SOC_INTEL_COMMON_BLOCK_SPI
80 select SOC_INTEL_COMMON_BLOCK_TIMER
81 select SOC_INTEL_COMMON_BLOCK_XHCI
82 select SOC_INTEL_COMMON_IBL_BASE # Select this one to add intelpch to including path.
83 select SOC_INTEL_COMMON_PCH_LOCKDOWN
84 select SOC_INTEL_COMMON_RESET
85
86 ## Southbridge
87 select INTEL_DESCRIPTOR_MODE_CAPABLE
88
89 ## Vendorcode
90 select UDK_202005_BINDING
91
92 if SOC_INTEL_SNOWRIDGE
93
94 config CHIPSET_DEVICETREE
95 default "soc/intel/snowridge/chipset.cb"
96
97 config MAX_CPUS
98 default 16
99
100 config HEAP_SIZE
101 default 0x100000
102
103 config PRERAM_CBFS_CACHE_SIZE
104 default 0x0
105
106 config C_ENV_BOOTBLOCK_SIZE
107 default 0x8000
108
109 # CAR memory layout on Snow Ridge hardware:
110 # CAR base address - 0xfe800000
111 # CAR size - 0x7ff00 (512KB - 0x100)
112 # FSP:
113 # FSP reserved base - 0xfe800000
114 # FSP reserved size - 0x40000
115 # remaining:
116 # DCACHE base - 0xfe840000
117 # DCACHE size - 0x3ff00
118
119 config DCACHE_RAM_BASE
120 default 0xfe840000
121
122 config DCACHE_RAM_SIZE
123 default 0x3ff00 if FSP_CAR
124
125 config DCACHE_BSP_STACK_SIZE
126 default 0x1C400
127 help
128 The amount of anticipated stack usage in CAR by bootblock and other stages.
129 In the case of FSP_USES_CB_STACK, the default value will be sum of FSP-M
130 stack requirement (112KiB) and CB romstage stack requirement (~1KiB).
131
132 config CPU_INTEL_NUM_FIT_ENTRIES
133 default 24
134 help
135 Number of microcode files.
136
137 config ECAM_MMCONF_BASE_ADDRESS
138 default 0x80000000
139
140 config ECAM_MMCONF_BUS_NUMBER
141 default 256
142
143 config ALWAYS_ALLOW_ABOVE_4G_ALLOCATION
144 default y
145
146 config MAX_SOCKET
147 int
148 default 1
149
150 config FSP_HEADER_PATH
151 default "src/vendorcode/intel/fsp/fsp2_0/snowridge" if !FSP_USE_REPO
152
153 config FSP_TEMP_RAM_SIZE
154 default 0x20000
155 help
156 The amount of anticipated heap usage in CAR by FSP. Refer to platform FSP
157 integration guide document to know the exact FSP requirement for heap setup.
158
159 config FSP_T_LOCATION
160 hex "Intel FSP-T (temp ram init) binary location"
161 depends on ADD_FSP_BINARIES && FSP_CAR
162 default 0xffe20000
163 help
164 The memory location of the Intel FSP-T binary for this platform.
165
166 config FSP_M_ADDR
167 hex "Intel FSP-M (memory init) binary location"
168 depends on ADD_FSP_BINARIES
169 default 0xffe27000
170 help
171 The memory location of the Intel FSP-M binary for this platform.
172
173 config FSP_S_ADDR
174 hex "Intel FSP-S (silicon init) binary location"
175 depends on ADD_FSP_BINARIES
176 default 0xffdb5000
177 help
178 The memory location of the Intel FSP-S binary for this platform.
179
180 config DIMMS_PER_CHANNEL
181 default 2
182
183 config DATA_BUS_WIDTH
184 default 128
185
186 config MRC_CHANNEL_WIDTH
187 default 64
188
189 ## Private settings
190 config KTI_CACHE_IN_FMAP
191 bool
192 default y
193 help
194 Save KTI cache data to flash and load it on following boots.
195
196 if KTI_CACHE_IN_FMAP
197
198 config KTI_CACHE_FMAP_NAME
199 string
200 default "RW_KTI_CACHE"
201
202 config KTI_CACHE_SIZE
203 hex
204 default 0x1000
205 help
206 Size should be aligned to sector size.
207
208 endif # KTI_CACHE_IN_FMAP
209
210 config HSUART_DEV
211 hex
212 default 0x1a
213
214 choice
215 prompt "UART mode selection"
216 default HIGH_SPEED_UART
217
218 config LEGACY_UART
219 bool "Enable legacy UART"
220 select DRIVERS_UART_8250IO
221
222 config HIGH_SPEED_UART
223 bool "Enable High-Speed UART"
224 select DRIVERS_UART_8250MEM
225 endchoice
226
227 config CONSOLE_UART_BASE_ADDRESS
228 hex "Temporary MMIO Base Address for HSUART"
229 default 0xfe032000
230 depends on HIGH_SPEED_UART
231 help
232 This option allows you to select temporary MMIO Base Address for HSUART.
233 It should be selected from 8M temporary MMIO address space starting at
234 0xfe000000. It will be used until coreboot resource allocation overwrite it
235 with new allocated value.
236
237 config PCR_BASE_ADDRESS
238 hex
239 default 0xfd000000
240 help
241 This option allows you to select MMIO Base Address of sideband bus.
242
243 config IED_REGION_SIZE
244 hex
245 default 0x400000
246
247 config SMM_RESERVED_SIZE
248 hex
249 default 0x200000
250
251 config CPU_BCLK_MHZ
252 int
253 default 100
254
255 config ENABLE_VTD
256 bool "Enable Intel Virtualization Technology"
257 default y
258
259 endif # SOC_INTEL_SNOWRIDGE