blob: 3361c0ddb9fc2de53bbde15dbbe6a97bd0c74adb [file] [log] [blame]
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -07001config SOC_INTEL_ELKHARTLAKE
2 bool
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -07003 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Angel Pons8e035e32021-06-22 12:58:20 +02004 select ARCH_X86
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -07005 select BOOT_DEVICE_SUPPORTS_WRITES
6 select CACHE_MRC_SETTINGS
7 select CPU_INTEL_COMMON
8 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +02009 select CPU_SUPPORTS_PM_TIMER_EMULATION
Subrata Banik34f26b22022-02-10 12:38:02 +053010 select DISPLAY_FSP_VERSION_INFO
Sean Rhodes7bbc9a52022-07-18 11:31:00 +010011 select EDK2_CPU_TIMER_LIB if PAYLOAD_EDK2
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070012 select FSP_COMPRESS_FSP_S_LZ4
13 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053014 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070015 select GENERIC_GPIO_LIB
16 select HAVE_FSP_GOP
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070017 select HAVE_SMI_HANDLER
18 select IDT_IN_EVERY_STAGE
Subrata Banike9d06532022-01-28 23:06:58 +053019 select INTEL_CAR_NEM
Subrata Banik34f26b22022-02-10 12:38:02 +053020 select INTEL_DESCRIPTOR_MODE_CAPABLE
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070021 select INTEL_GMA_ACPI
22 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
Aamir Bohra30cca6c2021-02-04 20:57:51 +053023 select MP_SERVICES_PPI_V1
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070024 select MRC_SETTINGS_PROTECT
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070025 select PARALLEL_MP_AP_WORK
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070026 select PLATFORM_USES_FSP2_1
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070027 select PMC_GLOBAL_RESET_ENABLE_LOCK
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070028 select SOC_INTEL_COMMON
29 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
30 select SOC_INTEL_COMMON_BLOCK
31 select SOC_INTEL_COMMON_BLOCK_ACPI
Michael Niewöhner02275be2020-11-12 23:50:37 +010032 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
Angel Pons98f672a2021-02-19 19:42:10 +010033 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Michael Niewöhner8a6c34e2021-01-01 21:26:42 +010034 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
Tim Wawrzynczak46c5f8f2021-07-01 08:45:47 -060035 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
Subrata Banik21974ab2020-10-31 21:40:43 +053036 select SOC_INTEL_COMMON_BLOCK_CAR
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070037 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
38 select SOC_INTEL_COMMON_BLOCK_CPU
39 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010040 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070041 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
42 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
43 select SOC_INTEL_COMMON_BLOCK_HDA
Subrata Banik34f26b22022-02-10 12:38:02 +053044 select HAVE_INTEL_FSP_REPO
Subrata Banike49a6152022-01-28 23:03:55 +053045 select HECI_DISABLE_USING_SMM if DISABLE_HECI1_AT_PRE_BOOT
Dinesh Gehlot90723332023-02-24 05:13:42 +000046 select SOC_INTEL_COMMON_BLOCK_ME_SPEC_15
Lean Sheng Tan75020002021-06-30 01:47:48 -070047 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
48 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070049 select SOC_INTEL_COMMON_BLOCK_SA
50 select SOC_INTEL_COMMON_BLOCK_SCS
51 select SOC_INTEL_COMMON_BLOCK_SMM
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070052 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053053 select SOC_INTEL_COMMON_FSP_RESET
Angel Ponseb90c512022-07-18 14:41:24 +020054 select SOC_INTEL_COMMON_PCH_CLIENT
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070055 select SOC_INTEL_COMMON_RESET
Subrata Banikaf27ac22022-02-18 00:44:15 +053056 select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070057 select SSE2
58 select SUPPORT_CPU_UCODE_IN_CBFS
59 select TSC_MONOTONIC_TIMER
60 select UDELAY_TSC
61 select UDK_202005_BINDING
Subrata Banik34f26b22022-02-10 12:38:02 +053062 select USE_FSP_NOTIFY_PHASE_POST_PCI_ENUM
Uwe Poeche954af522022-05-24 08:45:13 +020063 select SOC_INTEL_RAPL_DISABLE_VIA_MCHBAR
Lean Sheng Tan41546a52023-03-13 14:56:31 +010064 select X86_CLFLUSH_CAR
Elyes Haouas75750912023-08-21 20:39:25 +020065 help
66 Intel Elkhartlake support
67
68if SOC_INTEL_ELKHARTLAKE
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070069
70config MAX_CPUS
71 int
72 default 4
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070073
74config DCACHE_RAM_BASE
75 default 0xfef00000
76
77config DCACHE_RAM_SIZE
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070078 default 0xc0000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070079 help
80 The size of the cache-as-ram region required during bootblock
81 and/or romstage.
82
83config DCACHE_BSP_STACK_SIZE
84 hex
Michał Żygowskia5abcf22023-03-20 11:19:50 +010085 default 0x30400
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070086 help
87 The amount of anticipated stack usage in CAR by bootblock and
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070088 other stages. In the case of FSP_USES_CB_STACK default value will be
89 sum of FSP-M stack requirement (192KiB) and CB romstage stack requirement (~1KiB).
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070090
91config FSP_TEMP_RAM_SIZE
92 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -070093 default 0x40000
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070094 help
95 The amount of anticipated heap usage in CAR by FSP.
96 Refer to Platform FSP integration guide document to know
97 the exact FSP requirement for Heap setup.
98
99config IFD_CHIPSET
100 string
101 default "ehl"
102
103config IED_REGION_SIZE
104 hex
Tan, Lean Shengece0fe32020-09-03 07:32:48 -0700105 default 0x0
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700106
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700107config 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
Werner Zeh14612f62022-11-07 07:50:51 +0100149 default 100
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700150
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)
Wonkyu Kim60d9b892022-10-10 23:01:38 -0700170# EHL UART source clock: 100MHz
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
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700180 select VBOOT_MUST_REQUEST_DISPLAY
181 select VBOOT_STARTS_IN_BOOTBLOCK
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700182
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700183config CBFS_SIZE
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700184 default 0x200000
185
186config FSP_HEADER_PATH
Lean Sheng Tan79fcadb2021-06-04 08:54:29 -0700187 default "3rdparty/fsp/ElkhartLakeFspBinPkg/Include/"
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700188
189config FSP_FD_PATH
Lean Sheng Tan79fcadb2021-06-04 08:54:29 -0700190 string
191 depends on FSP_USE_REPO
192 default "3rdparty/fsp/ElkhartLakeFspBinPkg/FspBin/FSPRel.bin"
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700193
Lean Sheng Tan5cd75792021-06-09 13:58:12 -0700194config PSE_ENABLE
195 bool "Enable PSE ARM controller"
196 help
197 Enable PSE IP. The PSE describes the integrated programmable
198 service engine that is designed together with x86 Atom cores
199 as an Asymmetric Multi-Processing (AMP) system.
200
201config ADD_PSE_IMAGE_TO_CBFS
202 bool "Add PSE Firmware to CBFS"
203 depends on PSE_ENABLE
204 default n
205 help
206 PSE FW binary is required to use PSE dedicated peripherals from
207 x86 subsystem. Once PSE is enabled, the FW will be loaded from
208 CBFS by FSP and executed.
209
210config PSE_IMAGE_FILE
211 string "PSE binary path and filename"
212 depends on ADD_PSE_IMAGE_TO_CBFS
213 help
214 The path and filename of the PSE binary.
215
216config PSE_FW_FILE_SIZE_KIB
217 hex "Memory buffer (KiB) for PSE FW image"
218 depends on ADD_PSE_IMAGE_TO_CBFS
219 default 0x200
220 help
221 It is recommended to allocate at least 512 KiB for PSE FW.
222
223config PSE_CONFIG_BUFFER_SIZE_KIB
224 hex "Memory buffer (KiB) for PSE config data"
225 depends on ADD_PSE_IMAGE_TO_CBFS
226 default 0x100
227 help
228 It is recommended to allocate at least 256 KiB for PSE config
229 data (FSP will append PSE config data to memory region right
230 after PSE FW memory region).
231
Mario Scheithauereda66c32022-04-26 13:50:52 +0200232config EHL_TSN_DRIVER
233 bool
234 default n
235 help
236 Enable TSN GbE driver to provide board specific settings in the GBE MAC.
237 As an example of a possible change, the MAC address could be adjusted.
238
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700239config SOC_INTEL_ELKHARTLAKE_DEBUG_CONSENT
240 int "Debug Consent for EHL"
241 # USB DBC is more common for developers so make this default to 3 if
242 # SOC_INTEL_DEBUG_CONSENT=y
243 default 3 if SOC_INTEL_DEBUG_CONSENT
244 default 0
245 help
246 This is to control debug interface on SOC.
247 Setting non-zero value will allow to use DBC or DCI to debug SOC.
248 PlatformDebugConsent in FspmUpd.h has the details.
249
250 Desired platform debug type are
251 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
252 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
253 6:Enable (2-wire DCI OOB), 7:Manual
254
255config PRERAM_CBMEM_CONSOLE_SIZE
256 hex
257 default 0x1400
Werner Zeh00998322022-01-18 12:31:08 +0100258
259config SOC_INTEL_ELKHARTLAKE_TCO_NO_REBOOT_EN
260 bool "Disable reset on second TCO expiration"
261 depends on SOC_INTEL_COMMON_BLOCK_TCO
262 default n
263 help
264 Setting this option will prevent a host reset if the TCO timer expires
265 for the second time. Since this feature is not exposed to the OS in the
266 standard TCO interface, this setting can be enabled on firmware level.
267 This might be useful depending on the TCO policy.
Michał Żygowski14701a42023-03-22 11:07:22 +0100268
269config DIMM_SPD_SIZE
270 default 512
271
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -0700272endif