blob: 3b17a0ed889075b74516ae494c23b545277fcc6a [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
Michael Niewöhner8a6c34e2021-01-01 21:26:42 +010042 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
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
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700129 default 0xc0000000
130
131config CPU_BCLK_MHZ
132 int
133 default 100
134
135config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
136 int
137 default 120
138
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200139config CPU_XTAL_HZ
140 default 38400000
141
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700142config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
143 int
144 default 133
145
146config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
147 int
148 default 3
149
150config SOC_INTEL_I2C_DEV_MAX
151 int
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700152 default 8
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700153
154config SOC_INTEL_UART_DEV_MAX
155 int
156 default 3
157
158config CONSOLE_UART_BASE_ADDRESS
159 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700160 default 0xfe042000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700161 depends on INTEL_LPSS_UART_FOR_CONSOLE
162
163# Clock divider parameters for 115200 baud rate
164# Baudrate = (UART source clcok * M) /(N *16)
165# EHL UART source clock: 100MHz
166config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
167 hex
168 default 0x30
169
170config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
171 hex
172 default 0xc35
173
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700174config 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
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700181config CBFS_SIZE
182 hex
183 default 0x200000
184
185config FSP_HEADER_PATH
186 default "src/vendorcode/intel/fsp/fsp2_0/elkhartlake/"
187
188config FSP_FD_PATH
189 default "3rdparty/fsp/ElkhartLakeFspBinPkg/Fsp.fd"
190
191config SOC_INTEL_ELKHARTLAKE_DEBUG_CONSENT
192 int "Debug Consent for EHL"
193 # USB DBC is more common for developers so make this default to 3 if
194 # SOC_INTEL_DEBUG_CONSENT=y
195 default 3 if SOC_INTEL_DEBUG_CONSENT
196 default 0
197 help
198 This is to control debug interface on SOC.
199 Setting non-zero value will allow to use DBC or DCI to debug SOC.
200 PlatformDebugConsent in FspmUpd.h has the details.
201
202 Desired platform debug type are
203 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
204 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
205 6:Enable (2-wire DCI OOB), 7:Manual
206
207config PRERAM_CBMEM_CONSOLE_SIZE
208 hex
209 default 0x1400
210endif