blob: 9d043f926e7cf50cde68c5f24927edcf04ed89ee [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
Aamir Bohra30cca6c2021-02-04 20:57:51 +053029 select MP_SERVICES_PPI_V1
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070030 select MRC_SETTINGS_PROTECT
31 select PARALLEL_MP
32 select PARALLEL_MP_AP_WORK
33 select MICROCODE_BLOB_UNDISCLOSED
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070034 select PLATFORM_USES_FSP2_1
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070035 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 SOC_INTEL_COMMON
39 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
40 select SOC_INTEL_COMMON_BLOCK
41 select SOC_INTEL_COMMON_BLOCK_ACPI
Angel Pons98f672a2021-02-19 19:42:10 +010042 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Michael Niewöhner8a6c34e2021-01-01 21:26:42 +010043 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
Subrata Banik21974ab2020-10-31 21:40:43 +053044 select SOC_INTEL_COMMON_BLOCK_CAR
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070045 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
46 select SOC_INTEL_COMMON_BLOCK_CPU
47 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010048 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070049 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
50 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
51 select SOC_INTEL_COMMON_BLOCK_HDA
52 select SOC_INTEL_COMMON_BLOCK_SA
53 select SOC_INTEL_COMMON_BLOCK_SCS
54 select SOC_INTEL_COMMON_BLOCK_SMM
55 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
56 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053057 select SOC_INTEL_COMMON_FSP_RESET
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070058 select SOC_INTEL_COMMON_PCH_BASE
59 select SOC_INTEL_COMMON_RESET
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070060 select SSE2
61 select SUPPORT_CPU_UCODE_IN_CBFS
62 select TSC_MONOTONIC_TIMER
63 select UDELAY_TSC
64 select UDK_202005_BINDING
65 select DISPLAY_FSP_VERSION_INFO
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070066
67config MAX_CPUS
68 int
69 default 4
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070070
71config DCACHE_RAM_BASE
72 default 0xfef00000
73
74config DCACHE_RAM_SIZE
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070075 default 0xc0000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070076 help
77 The size of the cache-as-ram region required during bootblock
78 and/or romstage.
79
80config DCACHE_BSP_STACK_SIZE
81 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070082 default 0x30000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070083 help
84 The amount of anticipated stack usage in CAR by bootblock and
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070085 other stages. In the case of FSP_USES_CB_STACK default value will be
86 sum of FSP-M stack requirement (192KiB) and CB romstage stack requirement (~1KiB).
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070087
88config FSP_TEMP_RAM_SIZE
89 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070090 default 0x40000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070091 help
92 The amount of anticipated heap usage in CAR by FSP.
93 Refer to Platform FSP integration guide document to know
94 the exact FSP requirement for Heap setup.
95
96config IFD_CHIPSET
97 string
98 default "ehl"
99
100config IED_REGION_SIZE
101 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700102 default 0x0
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700103
104config HEAP_SIZE
105 hex
106 default 0x8000
107
108config MAX_ROOT_PORTS
109 int
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700110 default 7
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700111
112config MAX_PCIE_CLOCKS
113 int
114 default 6
115
116config SMM_TSEG_SIZE
117 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700118 default 0x1000000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700119
120config SMM_RESERVED_SIZE
121 hex
122 default 0x200000
123
124config PCR_BASE_ADDRESS
125 hex
126 default 0xfd000000
127 help
128 This option allows you to select MMIO Base Address of sideband bus.
129
130config MMCONF_BASE_ADDRESS
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700131 default 0xc0000000
132
133config CPU_BCLK_MHZ
134 int
135 default 100
136
137config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
138 int
139 default 120
140
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200141config CPU_XTAL_HZ
142 default 38400000
143
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700144config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
145 int
146 default 133
147
148config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
149 int
150 default 3
151
152config SOC_INTEL_I2C_DEV_MAX
153 int
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700154 default 8
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700155
156config SOC_INTEL_UART_DEV_MAX
157 int
158 default 3
159
160config CONSOLE_UART_BASE_ADDRESS
161 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700162 default 0xfe042000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700163 depends on INTEL_LPSS_UART_FOR_CONSOLE
164
165# Clock divider parameters for 115200 baud rate
166# Baudrate = (UART source clcok * M) /(N *16)
167# EHL UART source clock: 100MHz
168config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
169 hex
170 default 0x30
171
172config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
173 hex
174 default 0xc35
175
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700176config 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
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700183config CBFS_SIZE
184 hex
185 default 0x200000
186
187config FSP_HEADER_PATH
188 default "src/vendorcode/intel/fsp/fsp2_0/elkhartlake/"
189
190config FSP_FD_PATH
191 default "3rdparty/fsp/ElkhartLakeFspBinPkg/Fsp.fd"
192
193config SOC_INTEL_ELKHARTLAKE_DEBUG_CONSENT
194 int "Debug Consent for EHL"
195 # USB DBC is more common for developers so make this default to 3 if
196 # SOC_INTEL_DEBUG_CONSENT=y
197 default 3 if SOC_INTEL_DEBUG_CONSENT
198 default 0
199 help
200 This is to control debug interface on SOC.
201 Setting non-zero value will allow to use DBC or DCI to debug SOC.
202 PlatformDebugConsent in FspmUpd.h has the details.
203
204 Desired platform debug type are
205 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
206 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
207 6:Enable (2-wire DCI OOB), 7:Manual
208
209config PRERAM_CBMEM_CONSOLE_SIZE
210 hex
211 default 0x1400
212endif