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