blob: 3031769873727acdc587f6bea39c186d2196018f [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
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070033 select PLATFORM_USES_FSP2_1
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070034 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
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070064
65config MAX_CPUS
66 int
67 default 4
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070068
69config DCACHE_RAM_BASE
70 default 0xfef00000
71
72config DCACHE_RAM_SIZE
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070073 default 0xc0000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070074 help
75 The size of the cache-as-ram region required during bootblock
76 and/or romstage.
77
78config DCACHE_BSP_STACK_SIZE
79 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070080 default 0x30000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070081 help
82 The amount of anticipated stack usage in CAR by bootblock and
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070083 other stages. In the case of FSP_USES_CB_STACK default value will be
84 sum of FSP-M stack requirement (192KiB) and CB romstage stack requirement (~1KiB).
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070085
86config FSP_TEMP_RAM_SIZE
87 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070088 default 0x40000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070089 help
90 The amount of anticipated heap usage in CAR by FSP.
91 Refer to Platform FSP integration guide document to know
92 the exact FSP requirement for Heap setup.
93
94config IFD_CHIPSET
95 string
96 default "ehl"
97
98config IED_REGION_SIZE
99 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700100 default 0x0
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700101
102config HEAP_SIZE
103 hex
104 default 0x8000
105
106config MAX_ROOT_PORTS
107 int
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700108 default 7
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700109
110config MAX_PCIE_CLOCKS
111 int
112 default 6
113
114config SMM_TSEG_SIZE
115 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700116 default 0x1000000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700117
118config SMM_RESERVED_SIZE
119 hex
120 default 0x200000
121
122config PCR_BASE_ADDRESS
123 hex
124 default 0xfd000000
125 help
126 This option allows you to select MMIO Base Address of sideband bus.
127
128config MMCONF_BASE_ADDRESS
129 hex
130 default 0xc0000000
131
132config CPU_BCLK_MHZ
133 int
134 default 100
135
136config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
137 int
138 default 120
139
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200140config CPU_XTAL_HZ
141 default 38400000
142
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700143config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
144 int
145 default 133
146
147config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
148 int
149 default 3
150
151config SOC_INTEL_I2C_DEV_MAX
152 int
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700153 default 8
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700154
155config SOC_INTEL_UART_DEV_MAX
156 int
157 default 3
158
159config CONSOLE_UART_BASE_ADDRESS
160 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700161 default 0xfe042000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700162 depends on INTEL_LPSS_UART_FOR_CONSOLE
163
164# Clock divider parameters for 115200 baud rate
165# Baudrate = (UART source clcok * M) /(N *16)
166# EHL UART source clock: 100MHz
167config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
168 hex
169 default 0x30
170
171config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
172 hex
173 default 0xc35
174
175config CHROMEOS
176 select CHROMEOS_RAMOOPS_DYNAMIC
177
178config VBOOT
179 select VBOOT_SEPARATE_VERSTAGE
180 select VBOOT_MUST_REQUEST_DISPLAY
181 select VBOOT_STARTS_IN_BOOTBLOCK
182 select VBOOT_VBNV_CMOS
183 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
184
185config C_ENV_BOOTBLOCK_SIZE
186 hex
187 default 0xC000
188
189config CBFS_SIZE
190 hex
191 default 0x200000
192
193config FSP_HEADER_PATH
194 default "src/vendorcode/intel/fsp/fsp2_0/elkhartlake/"
195
196config FSP_FD_PATH
197 default "3rdparty/fsp/ElkhartLakeFspBinPkg/Fsp.fd"
198
199config SOC_INTEL_ELKHARTLAKE_DEBUG_CONSENT
200 int "Debug Consent for EHL"
201 # USB DBC is more common for developers so make this default to 3 if
202 # SOC_INTEL_DEBUG_CONSENT=y
203 default 3 if SOC_INTEL_DEBUG_CONSENT
204 default 0
205 help
206 This is to control debug interface on SOC.
207 Setting non-zero value will allow to use DBC or DCI to debug SOC.
208 PlatformDebugConsent in FspmUpd.h has the details.
209
210 Desired platform debug type are
211 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
212 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
213 6:Enable (2-wire DCI OOB), 7:Manual
214
215config PRERAM_CBMEM_CONSOLE_SIZE
216 hex
217 default 0x1400
218endif