blob: c2200286d05f79a8048f0ae791271b89c22348d2 [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 Pons8e035e32021-06-22 12:58:20 +020011 select ARCH_X86
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
Aamir Bohra30cca6c2021-02-04 20:57:51 +053028 select MP_SERVICES_PPI_V1
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070029 select MRC_SETTINGS_PROTECT
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070030 select PARALLEL_MP_AP_WORK
31 select MICROCODE_BLOB_UNDISCLOSED
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070032 select PLATFORM_USES_FSP2_1
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070033 select PMC_GLOBAL_RESET_ENABLE_LOCK
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070034 select SOC_INTEL_COMMON
35 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
36 select SOC_INTEL_COMMON_BLOCK
37 select SOC_INTEL_COMMON_BLOCK_ACPI
Angel Pons98f672a2021-02-19 19:42:10 +010038 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Michael Niewöhner8a6c34e2021-01-01 21:26:42 +010039 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
Tim Wawrzynczak46c5f8f2021-07-01 08:45:47 -060040 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
Subrata Banik21974ab2020-10-31 21:40:43 +053041 select SOC_INTEL_COMMON_BLOCK_CAR
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070042 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
43 select SOC_INTEL_COMMON_BLOCK_CPU
44 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010045 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070046 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
47 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
48 select SOC_INTEL_COMMON_BLOCK_HDA
Lean Sheng Tan75020002021-06-30 01:47:48 -070049 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
50 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070051 select SOC_INTEL_COMMON_BLOCK_SA
52 select SOC_INTEL_COMMON_BLOCK_SCS
53 select SOC_INTEL_COMMON_BLOCK_SMM
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070054 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
Lean Sheng Tan79fcadb2021-06-04 08:54:29 -070064 select HAVE_INTEL_FSP_REPO
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070065
66config MAX_CPUS
67 int
68 default 4
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070069
70config DCACHE_RAM_BASE
71 default 0xfef00000
72
73config DCACHE_RAM_SIZE
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070074 default 0xc0000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070075 help
76 The size of the cache-as-ram region required during bootblock
77 and/or romstage.
78
79config DCACHE_BSP_STACK_SIZE
80 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070081 default 0x30000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070082 help
83 The amount of anticipated stack usage in CAR by bootblock and
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070084 other stages. In the case of FSP_USES_CB_STACK default value will be
85 sum of FSP-M stack requirement (192KiB) and CB romstage stack requirement (~1KiB).
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070086
87config FSP_TEMP_RAM_SIZE
88 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070089 default 0x40000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070090 help
91 The amount of anticipated heap usage in CAR by FSP.
92 Refer to Platform FSP integration guide document to know
93 the exact FSP requirement for Heap setup.
94
95config IFD_CHIPSET
96 string
97 default "ehl"
98
99config IED_REGION_SIZE
100 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700101 default 0x0
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700102
103config HEAP_SIZE
104 hex
105 default 0x8000
106
107config MAX_ROOT_PORTS
108 int
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700109 default 7
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700110
Lean Sheng Tanc6c54432021-05-30 09:08:35 -0700111config MAX_SATA_PORTS
112 int
113 default 2
114
Rizwan Qureshia9794602021-04-08 20:31:47 +0530115config MAX_PCIE_CLOCK_SRC
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700116 int
117 default 6
118
119config SMM_TSEG_SIZE
120 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700121 default 0x1000000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700122
123config SMM_RESERVED_SIZE
124 hex
125 default 0x200000
126
127config PCR_BASE_ADDRESS
128 hex
129 default 0xfd000000
130 help
131 This option allows you to select MMIO Base Address of sideband bus.
132
Shelley Chen4e9bb332021-10-20 15:43:45 -0700133config ECAM_MMCONF_BASE_ADDRESS
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700134 default 0xc0000000
135
136config CPU_BCLK_MHZ
137 int
138 default 100
139
140config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
141 int
142 default 120
143
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200144config CPU_XTAL_HZ
145 default 38400000
146
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700147config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
148 int
149 default 133
150
151config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
152 int
153 default 3
154
155config SOC_INTEL_I2C_DEV_MAX
156 int
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700157 default 8
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700158
159config SOC_INTEL_UART_DEV_MAX
160 int
161 default 3
162
163config CONSOLE_UART_BASE_ADDRESS
164 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700165 default 0xfe042000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700166 depends on INTEL_LPSS_UART_FOR_CONSOLE
167
168# Clock divider parameters for 115200 baud rate
Lean Sheng Tan471dca72021-07-19 01:57:16 -0700169# Baudrate = (UART source clock * M) /(N *16)
170# EHL UART source clock: 120MHz
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700171config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
172 hex
Lean Sheng Tan471dca72021-07-19 01:57:16 -0700173 default 0x25a
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700174
175config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
176 hex
Lean Sheng Tan471dca72021-07-19 01:57:16 -0700177 default 0x7fff
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700178
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700179config VBOOT
180 select VBOOT_SEPARATE_VERSTAGE
181 select VBOOT_MUST_REQUEST_DISPLAY
182 select VBOOT_STARTS_IN_BOOTBLOCK
183 select VBOOT_VBNV_CMOS
184 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
185
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700186config CBFS_SIZE
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700187 default 0x200000
188
189config FSP_HEADER_PATH
Lean Sheng Tan79fcadb2021-06-04 08:54:29 -0700190 default "3rdparty/fsp/ElkhartLakeFspBinPkg/Include/"
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700191
192config FSP_FD_PATH
Lean Sheng Tan79fcadb2021-06-04 08:54:29 -0700193 string
194 depends on FSP_USE_REPO
195 default "3rdparty/fsp/ElkhartLakeFspBinPkg/FspBin/FSPRel.bin"
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700196
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