blob: 05077ad31605bbd5569817ad233a6f06179d1d74 [file] [log] [blame]
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -07001config SOC_INTEL_ELKHARTLAKE
2 bool
3 help
4 Intel Elkhartlake support
5
6if SOC_INTEL_ELKHARTLAKE
7
8config CPU_SPECIFIC_OPTIONS
9 def_bool y
10 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Angel Ponsa32df262020-09-25 10:20:11 +020011 select ARCH_ALL_STAGES_X86_32
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070012 select BOOT_DEVICE_SUPPORTS_WRITES
13 select CACHE_MRC_SETTINGS
14 select CPU_INTEL_COMMON
15 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020016 select CPU_SUPPORTS_PM_TIMER_EMULATION
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070017 select FSP_COMPRESS_FSP_S_LZ4
18 select FSP_M_XIP
19 select GENERIC_GPIO_LIB
20 select HAVE_FSP_GOP
21 select INTEL_DESCRIPTOR_MODE_CAPABLE
22 select HAVE_SMI_HANDLER
23 select IDT_IN_EVERY_STAGE
24 select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED
25 select INTEL_GMA_ACPI
26 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
27 select IOAPIC
28 select MRC_SETTINGS_PROTECT
29 select PARALLEL_MP
30 select PARALLEL_MP_AP_WORK
31 select MICROCODE_BLOB_UNDISCLOSED
32 select PLATFORM_USES_FSP2_2
33 select FSP_PEIM_TO_PEIM_INTERFACE
34 select REG_SCRIPT
35 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banik0359d9d2020-09-28 18:43:47 +053036 select PMC_LOW_POWER_MODE_PROGRAM
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070037 select CPU_INTEL_COMMON_SMM
38 select SOC_INTEL_COMMON
39 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
40 select SOC_INTEL_COMMON_BLOCK
41 select SOC_INTEL_COMMON_BLOCK_ACPI
42 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
43 select SOC_INTEL_COMMON_BLOCK_CPU
44 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
45 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
46 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
47 select SOC_INTEL_COMMON_BLOCK_HDA
48 select SOC_INTEL_COMMON_BLOCK_SA
49 select SOC_INTEL_COMMON_BLOCK_SCS
50 select SOC_INTEL_COMMON_BLOCK_SMM
51 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
52 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
53 select SOC_INTEL_COMMON_PCH_BASE
54 select SOC_INTEL_COMMON_RESET
55 select SOC_INTEL_COMMON_BLOCK_CAR
56 select SSE2
57 select SUPPORT_CPU_UCODE_IN_CBFS
58 select TSC_MONOTONIC_TIMER
59 select UDELAY_TSC
60 select UDK_202005_BINDING
61 select DISPLAY_FSP_VERSION_INFO
62 select HECI_DISABLE_USING_SMM
63
64config DCACHE_RAM_BASE
65 default 0xfef00000
66
67config DCACHE_RAM_SIZE
68 default 0x80000
69 help
70 The size of the cache-as-ram region required during bootblock
71 and/or romstage.
72
73config DCACHE_BSP_STACK_SIZE
74 hex
75 default 0x30400
76 help
77 The amount of anticipated stack usage in CAR by bootblock and
78 other stages. In the case of FSP_USES_CB_STACK default value
79 will be sum of FSP-M stack requirement(192 KiB) and CB romstage
80 stack requirement(~1KiB).
81
82config FSP_TEMP_RAM_SIZE
83 hex
84 default 0x20000
85 help
86 The amount of anticipated heap usage in CAR by FSP.
87 Refer to Platform FSP integration guide document to know
88 the exact FSP requirement for Heap setup.
89
90config IFD_CHIPSET
91 string
92 default "ehl"
93
94config IED_REGION_SIZE
95 hex
96 default 0x400000
97
98config HEAP_SIZE
99 hex
100 default 0x8000
101
102config MAX_ROOT_PORTS
103 int
104 default 8
105
106config MAX_PCIE_CLOCKS
107 int
108 default 6
109
110config SMM_TSEG_SIZE
111 hex
112 default 0x800000
113
114config SMM_RESERVED_SIZE
115 hex
116 default 0x200000
117
118config PCR_BASE_ADDRESS
119 hex
120 default 0xfd000000
121 help
122 This option allows you to select MMIO Base Address of sideband bus.
123
124config MMCONF_BASE_ADDRESS
125 hex
126 default 0xc0000000
127
128config CPU_BCLK_MHZ
129 int
130 default 100
131
132config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
133 int
134 default 120
135
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200136config CPU_XTAL_HZ
137 default 38400000
138
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700139config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
140 int
141 default 133
142
143config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
144 int
145 default 3
146
147config SOC_INTEL_I2C_DEV_MAX
148 int
149 default 6
150
151config SOC_INTEL_UART_DEV_MAX
152 int
153 default 3
154
155config CONSOLE_UART_BASE_ADDRESS
156 hex
157 default 0xfe032000
158 depends on INTEL_LPSS_UART_FOR_CONSOLE
159
160# Clock divider parameters for 115200 baud rate
161# Baudrate = (UART source clcok * M) /(N *16)
162# EHL UART source clock: 100MHz
163config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
164 hex
165 default 0x30
166
167config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
168 hex
169 default 0xc35
170
171config CHROMEOS
172 select CHROMEOS_RAMOOPS_DYNAMIC
173
174config VBOOT
175 select VBOOT_SEPARATE_VERSTAGE
176 select VBOOT_MUST_REQUEST_DISPLAY
177 select VBOOT_STARTS_IN_BOOTBLOCK
178 select VBOOT_VBNV_CMOS
179 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
180
181config C_ENV_BOOTBLOCK_SIZE
182 hex
183 default 0xC000
184
185config CBFS_SIZE
186 hex
187 default 0x200000
188
189config FSP_HEADER_PATH
190 default "src/vendorcode/intel/fsp/fsp2_0/elkhartlake/"
191
192config FSP_FD_PATH
193 default "3rdparty/fsp/ElkhartLakeFspBinPkg/Fsp.fd"
194
195config SOC_INTEL_ELKHARTLAKE_DEBUG_CONSENT
196 int "Debug Consent for EHL"
197 # USB DBC is more common for developers so make this default to 3 if
198 # SOC_INTEL_DEBUG_CONSENT=y
199 default 3 if SOC_INTEL_DEBUG_CONSENT
200 default 0
201 help
202 This is to control debug interface on SOC.
203 Setting non-zero value will allow to use DBC or DCI to debug SOC.
204 PlatformDebugConsent in FspmUpd.h has the details.
205
206 Desired platform debug type are
207 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
208 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
209 6:Enable (2-wire DCI OOB), 7:Manual
210
211config PRERAM_CBMEM_CONSOLE_SIZE
212 hex
213 default 0x1400
214endif