blob: 1f0f2feeef597353ded65ec1bb00a3fcea01904d [file] [log] [blame]
Subrata Banikb3ced6a2020-08-04 13:34:03 +05301config SOC_INTEL_ALDERLAKE
2 bool
3 help
Angel Ponsdb925aa2021-12-01 11:44:09 +01004 Intel Alderlake support. Mainboards should specify the PCH
5 type using the `SOC_INTEL_ALDERLAKE_PCH_*` options instead
6 of selecting this option directly.
Subrata Banikb3ced6a2020-08-04 13:34:03 +05307
Bora Guvendik2c805b92022-06-08 15:55:52 -07008config SOC_INTEL_RAPTORLAKE
9 bool
Subrata Banik6526e782022-10-26 20:06:42 +053010 select X86_INIT_NEED_1_SIPI
Bora Guvendik2c805b92022-06-08 15:55:52 -070011 help
12 Intel Raptorlake support. Mainboards using RPL should select
13 SOC_INTEL_RAPTORLAKE and SOC_INTEL_ALDERLAKE_PCH_* together.
14
Varshit Pandyab5df56f2021-01-18 09:44:35 +053015config SOC_INTEL_ALDERLAKE_PCH_M
16 bool
Angel Ponsdb925aa2021-12-01 11:44:09 +010017 select SOC_INTEL_ALDERLAKE
Varshit Pandyab5df56f2021-01-18 09:44:35 +053018 help
Angel Ponsdb925aa2021-12-01 11:44:09 +010019 Choose this option if your mainboard has a PCH-M chipset.
20
Usha P78c9b672021-11-30 11:27:38 +053021config SOC_INTEL_ALDERLAKE_PCH_N
22 bool
23 select SOC_INTEL_ALDERLAKE
Michał Żygowski6297df82022-06-30 16:22:35 +020024 select MICROCODE_BLOB_UNDISCLOSED
Usha P78c9b672021-11-30 11:27:38 +053025 help
26 Choose this option if your mainboard has a PCH-N chipset.
27
Angel Ponsdb925aa2021-12-01 11:44:09 +010028config SOC_INTEL_ALDERLAKE_PCH_P
29 bool
30 select SOC_INTEL_ALDERLAKE
Michał Żygowski073779b2022-06-29 11:32:01 +020031 select HAVE_INTEL_FSP_REPO
32 select PLATFORM_USES_FSP2_3
Angel Ponsdb925aa2021-12-01 11:44:09 +010033 help
34 Choose this option if your mainboard has a PCH-P chipset.
Varshit Pandyab5df56f2021-01-18 09:44:35 +053035
Michał Żygowskia1636d72022-04-07 14:56:10 +020036config SOC_INTEL_ALDERLAKE_PCH_S
37 bool
38 select SOC_INTEL_ALDERLAKE
Michał Żygowski073779b2022-06-29 11:32:01 +020039 select HAVE_INTEL_FSP_REPO
40 select PLATFORM_USES_FSP2_3
Michał Żygowskia1636d72022-04-07 14:56:10 +020041 help
42 Choose this option if your mainboard has a PCH-S chipset.
43
Subrata Banikb3ced6a2020-08-04 13:34:03 +053044if SOC_INTEL_ALDERLAKE
45
46config CPU_SPECIFIC_OPTIONS
47 def_bool y
Angel Ponsa25eaff2020-09-23 15:37:15 +020048 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Sugnan Prabhu Sdcf04592021-12-03 19:07:04 +053049 select ACPI_ADL_IPU_ES_SUPPORT
Angel Pons8e035e32021-06-22 12:58:20 +020050 select ARCH_X86
Subrata Banikb3ced6a2020-08-04 13:34:03 +053051 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik292afef2020-09-09 13:34:18 +053052 select CACHE_MRC_SETTINGS
53 select CPU_INTEL_COMMON
Subrata Banik2871e0e2020-09-27 11:30:58 +053054 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhner5307f122021-09-19 00:32:37 +020055 select CPU_SUPPORTS_INTEL_TME
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020056 select CPU_SUPPORTS_PM_TIMER_EMULATION
Matt DeVillierdecbf7b2023-01-18 18:58:38 -060057 select DEFAULT_SOFTWARE_CONNECTION_MANAGER if MAINBOARD_HAS_CHROMEOS
Subrata Banik34f26b22022-02-10 12:38:02 +053058 select DISPLAY_FSP_VERSION_INFO
Eric Lai4ea47c32020-12-21 16:57:49 +080059 select DRIVERS_USB_ACPI
Sean Rhodes7bbc9a52022-07-18 11:31:00 +010060 select EDK2_CPU_TIMER_LIB if PAYLOAD_EDK2
Subrata Banik2871e0e2020-09-27 11:30:58 +053061 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik683c95e2020-12-19 19:36:45 +053062 select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
Subrata Banik292afef2020-09-09 13:34:18 +053063 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053064 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banike4cf3fa2022-03-23 01:41:36 +053065 select FSP_USES_CB_DEBUG_EVENT_HANDLER
Subrata Banik298b3592021-09-14 12:38:08 +053066 select FSPS_HAS_ARCH_UPD
Subrata Banik2871e0e2020-09-27 11:30:58 +053067 select GENERIC_GPIO_LIB
Subrata Banikb4a169a2021-12-29 18:36:23 +000068 select HAVE_DEBUG_RAM_SETUP
Subrata Banik2871e0e2020-09-27 11:30:58 +053069 select HAVE_FSP_GOP
Felix Singera182fae2021-12-31 00:30:55 +010070 select HAVE_HYPERTHREADING
Subrata Banikb3ced6a2020-08-04 13:34:03 +053071 select INTEL_DESCRIPTOR_MODE_CAPABLE
Subrata Banik2871e0e2020-09-27 11:30:58 +053072 select HAVE_SMI_HANDLER
Subrata Banikb3ced6a2020-08-04 13:34:03 +053073 select IDT_IN_EVERY_STAGE
Subrata Banik2871e0e2020-09-27 11:30:58 +053074 select INTEL_GMA_ACPI
75 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
Meera Ravindranath81d367f2021-07-08 09:39:11 +053076 select INTEL_GMA_OPREGION_2_1
Subrata Banikc8b840f2022-12-31 14:47:55 +053077 select INTEL_TXT_LIB
Subrata Banik292afef2020-09-09 13:34:18 +053078 select MRC_SETTINGS_PROTECT
Subrata Banik2871e0e2020-09-27 11:30:58 +053079 select PARALLEL_MP_AP_WORK
Michał Żygowski073779b2022-06-29 11:32:01 +020080 select PLATFORM_USES_FSP2_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053081 select PMC_GLOBAL_RESET_ENABLE_LOCK
Subrata Banikb3ced6a2020-08-04 13:34:03 +053082 select SOC_INTEL_COMMON
Zhixing Ma30e8fc12022-09-30 14:18:13 -070083 select CPU_INTEL_COMMON_VOLTAGE
Subrata Banik08089922020-10-03 13:02:06 +053084 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Subrata Banikb3ced6a2020-08-04 13:34:03 +053085 select SOC_INTEL_COMMON_BLOCK
Subrata Banik08089922020-10-03 13:02:06 +053086 select SOC_INTEL_COMMON_BLOCK_ACPI
ravindr174596572021-03-29 19:41:25 +053087 select SOC_INTEL_COMMON_BLOCK_ACPI_CPPC
Sridahr Siricilla73b90c62021-11-11 01:10:16 +053088 select SOC_INTEL_COMMON_BLOCK_ACPI_CPU_HYBRID
Angel Pons98f672a2021-02-19 19:42:10 +010089 select SOC_INTEL_COMMON_BLOCK_ACPI_GPIO
Jeremy Soller5219ee12022-05-26 09:02:13 -060090 select SOC_INTEL_COMMON_BLOCK_ACPI_LPIT
Tim Wawrzynczak5faee2e2021-07-01 08:24:18 -060091 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP
92 select SOC_INTEL_COMMON_BLOCK_ACPI_PEP_LPM_REQ
Subrata Banik21974ab2020-10-31 21:40:43 +053093 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik292afef2020-09-09 13:34:18 +053094 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Varshit B Pandya2938c462022-02-16 20:38:10 +053095 select SOC_INTEL_COMMON_BLOCK_CNVI
Subrata Banikb3ced6a2020-08-04 13:34:03 +053096 select SOC_INTEL_COMMON_BLOCK_CPU
Subrata Banik2871e0e2020-09-27 11:30:58 +053097 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
Angel Ponsa4cd9112021-02-19 19:23:38 +010098 select SOC_INTEL_COMMON_BLOCK_CPU_SMMRELOCATE
Subrata Banik2871e0e2020-09-27 11:30:58 +053099 select SOC_INTEL_COMMON_BLOCK_DTT
100 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banikaf2f8b92022-01-10 10:26:52 +0000101 select SOC_INTEL_COMMON_BLOCK_GPIO_LOCK_USING_SBI
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530102 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Krishna Prasad Bhat01e426d2022-01-16 22:37:21 +0530103 select SOC_INTEL_COMMON_BLOCK_SCS if SOC_INTEL_ALDERLAKE_PCH_N
Subrata Banik2871e0e2020-09-27 11:30:58 +0530104 select SOC_INTEL_COMMON_BLOCK_HDA
Subrata Banikc176fc22022-04-25 16:59:35 +0530105 select SOC_INTEL_COMMON_BLOCK_HECI1_DISABLE_USING_PMC_IPC
Michał Żygowski3d1e5622022-04-08 17:09:49 +0200106 select SOC_INTEL_COMMON_BLOCK_IPU if !SOC_INTEL_ALDERLAKE_PCH_S
Tim Wawrzynczak43607e42021-05-18 09:04:42 -0600107 select SOC_INTEL_COMMON_BLOCK_IRQ
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800108 select SOC_INTEL_COMMON_BLOCK_MEMINIT
Rizwan Qureshi307be992021-04-08 20:35:29 +0530109 select SOC_INTEL_COMMON_BLOCK_PCIE_RTD3
Lean Sheng Tan75020002021-06-30 01:47:48 -0700110 select SOC_INTEL_COMMON_BLOCK_PMC_EPOC
Sumeet R Pawnikar77298c62021-03-10 21:09:37 +0530111 select SOC_INTEL_COMMON_BLOCK_POWER_LIMIT
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530112 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +0530113 select SOC_INTEL_COMMON_BLOCK_SMM
114 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banikb2e8bd82021-11-17 15:35:05 +0530115 select SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC
Tim Wawrzynczak242da792020-11-10 10:13:54 -0700116 select SOC_INTEL_COMMON_BLOCK_XHCI
117 select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
Sridhar Siricillaf5e94b62022-03-08 23:39:20 +0530118 select SOC_INTEL_COMMON_BASECODE
Subrata Banik4ed9f9a2020-10-31 22:01:55 +0530119 select SOC_INTEL_COMMON_FSP_RESET
Angel Ponseb90c512022-07-18 14:41:24 +0200120 select SOC_INTEL_COMMON_PCH_CLIENT
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530121 select SOC_INTEL_COMMON_RESET
Tracy Wu387ec912022-12-22 16:28:15 +0800122 select SOC_INTEL_CSE_SEND_EOP_LATE
Tim Wawrzynczakc0e82e72021-06-17 12:42:35 -0600123 select SOC_INTEL_CSE_SET_EOP
Subrata Banikaf27ac22022-02-18 00:44:15 +0530124 select SOC_INTEL_MEM_MAPPED_PM_CONFIGURATION
Sridahr Siricilla096ce142021-09-17 22:25:17 +0530125 select HAVE_INTEL_COMPLIANCE_TEST_MODE
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530126 select SSE2
127 select SUPPORT_CPU_UCODE_IN_CBFS
128 select TSC_MONOTONIC_TIMER
129 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +0530130 select UDK_202005_BINDING
Michał Żygowski9b0f1692022-05-05 13:21:01 +0200131 select VBOOT_LIB
Subrata Banik2871e0e2020-09-27 11:30:58 +0530132
Michał Żygowski9df95d92022-04-08 17:02:35 +0200133config SOC_INTEL_ALDERLAKE_TCSS_USB4_SUPPORT
134 bool
135 default y if !SOC_INTEL_ALDERLAKE_PCH_S
136 default n if SOC_INTEL_ALDERLAKE_PCH_S
137 select SOC_INTEL_COMMON_BLOCK_TCSS
138 select SOC_INTEL_COMMON_BLOCK_USB4
139 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
140 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
141
Reka Normane790f922022-04-06 20:33:54 +1000142config ALDERLAKE_CONFIGURE_DESCRIPTOR
143 bool
144 help
145 Select this if the descriptor needs to be updated at runtime. This
146 can only be done if the descriptor region is writable, and should only
147 be used as a temporary workaround.
148
Subrata Banik095e2a72021-07-05 20:56:15 +0530149config ALDERLAKE_CAR_ENHANCED_NEM
150 bool
151 default y if !INTEL_CAR_NEM
152 select INTEL_CAR_NEM_ENHANCED
153 select CAR_HAS_SF_MASKS
154 select COS_MAPPED_TO_MSB
155 select CAR_HAS_L3_PROTECTED_WAYS
156
Subrata Banik2871e0e2020-09-27 11:30:58 +0530157config MAX_CPUS
158 int
159 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530160
161config DCACHE_RAM_BASE
162 default 0xfef00000
163
164config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +0530165 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530166 help
167 The size of the cache-as-ram region required during bootblock
168 and/or romstage.
169
170config DCACHE_BSP_STACK_SIZE
171 hex
Subrata Banik191bd822020-11-21 19:30:57 +0530172 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530173 help
174 The amount of anticipated stack usage in CAR by bootblock and
175 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +0530176 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530177 (~1KiB).
178
179config FSP_TEMP_RAM_SIZE
180 hex
181 default 0x20000
182 help
183 The amount of anticipated heap usage in CAR by FSP.
184 Refer to Platform FSP integration guide document to know
185 the exact FSP requirement for Heap setup.
186
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700187config CHIPSET_DEVICETREE
188 string
Michał Kopeć75a49fe2022-04-08 11:28:45 +0200189 default "soc/intel/alderlake/chipset_pch_s.cb" if SOC_INTEL_ALDERLAKE_PCH_S
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700190 default "soc/intel/alderlake/chipset.cb"
191
Subrata Banik683c95e2020-12-19 19:36:45 +0530192config EXT_BIOS_WIN_BASE
193 default 0xf8000000
194
195config EXT_BIOS_WIN_SIZE
196 default 0x2000000
197
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530198config IFD_CHIPSET
199 string
200 default "adl"
201
202config IED_REGION_SIZE
203 hex
204 default 0x400000
205
206config HEAP_SIZE
207 hex
208 default 0x10000
209
Jeremy Compostella9df11972022-12-02 10:59:49 -0700210config GFX_GMA_DEFAULT_MMIO
211 default 0xfa000000 if MAINBOARD_HAS_EARLY_LIBGFXINIT
212
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700213# Intel recommends reserving the following resources per PCIe TBT root port,
214# from ADL BIOS Spec (doc #627270) Revision 0.6.0 Section 7.2.5.1.5
215# - 42 buses
216# - 194 MiB Non-prefetchable memory
217# - 448 MiB Prefetchable memory
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700218if SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700219
220config PCIEXP_HOTPLUG_BUSES
221 int
222 default 42
223
224config PCIEXP_HOTPLUG_MEM
225 hex
226 default 0xc200000
227
228config PCIEXP_HOTPLUG_PREFETCH_MEM
229 hex
230 default 0x1c000000
231
Furquan Shaikhd9f5d902021-08-24 13:53:43 -0700232endif # SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
Tim Wawrzynczak8d11cdc2021-03-12 12:46:02 -0700233
Subrata Banik85144d92021-01-09 16:17:45 +0530234config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530235 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530236 default 10 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530237 default 12 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100238 default 12 if SOC_INTEL_ALDERLAKE_PCH_P
Michał Żygowski27fdfc62022-04-07 15:03:09 +0200239 default 28 if SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banik2871e0e2020-09-27 11:30:58 +0530240
Subrata Banik85144d92021-01-09 16:17:45 +0530241config MAX_CPU_ROOT_PORTS
242 int
Varshit Pandyab5df56f2021-01-18 09:44:35 +0530243 default 1 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530244 default 0 if SOC_INTEL_ALDERLAKE_PCH_N
Michał Żygowski27fdfc62022-04-07 15:03:09 +0200245 default 3 if SOC_INTEL_ALDERLAKE_PCH_P || SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banik85144d92021-01-09 16:17:45 +0530246
MAULIK V VAGHELA3e4f28f2022-01-21 14:17:53 +0530247config MAX_TBT_ROOT_PORTS
248 int
Michał Żygowski27fdfc62022-04-07 15:03:09 +0200249 default 0 if SOC_INTEL_ALDERLAKE_PCH_N || SOC_INTEL_ALDERLAKE_PCH_S
MAULIK V VAGHELA3e4f28f2022-01-21 14:17:53 +0530250 default 2 if SOC_INTEL_ALDERLAKE_PCH_M
251 default 4 if SOC_INTEL_ALDERLAKE_PCH_P
252
Subrata Banik85144d92021-01-09 16:17:45 +0530253config MAX_ROOT_PORTS
254 int
255 default MAX_PCH_ROOT_PORTS
256
Subrata Banikcffc9382021-01-29 18:41:35 +0530257config MAX_PCIE_CLOCK_SRC
Subrata Banik2871e0e2020-09-27 11:30:58 +0530258 int
Subrata Banikcffc9382021-01-29 18:41:35 +0530259 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530260 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Cliff Huang0d590b72022-04-28 18:20:27 -0700261 default 10 if SOC_INTEL_ALDERLAKE_PCH_P
Angel Pons122e1df2022-12-09 12:32:12 +0100262 default 18 if SOC_INTEL_ALDERLAKE_PCH_S
Cliff Huang0d590b72022-04-28 18:20:27 -0700263 help
264 With external clock buffer, Alderlake-P can support up to three additional source clocks.
265 This is done by setting the corresponding GPIO pin(s) to native function to use as
266 SRCCLK_OE[6..9]. In addition, SRCCLK6 does not need to be set to free running clock.
267 If any of SRCCLKReq 6..9 is asserted, SRCCLK6 will be turned on.
Subrata Banikcffc9382021-01-29 18:41:35 +0530268
269config MAX_PCIE_CLOCK_REQ
270 int
Angel Ponsdb925aa2021-12-01 11:44:09 +0100271 default 6 if SOC_INTEL_ALDERLAKE_PCH_M
Usha P78c9b672021-11-30 11:27:38 +0530272 default 5 if SOC_INTEL_ALDERLAKE_PCH_N
Angel Ponsdb925aa2021-12-01 11:44:09 +0100273 default 10 if SOC_INTEL_ALDERLAKE_PCH_P
Michał Żygowski27fdfc62022-04-07 15:03:09 +0200274 default 18 if SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banik2871e0e2020-09-27 11:30:58 +0530275
276config SMM_TSEG_SIZE
277 hex
278 default 0x800000
279
280config SMM_RESERVED_SIZE
281 hex
282 default 0x200000
283
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530284config PCR_BASE_ADDRESS
285 hex
Michał Żygowskidccfb8a2022-04-07 15:09:19 +0200286 default 0xe0000000 if SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530287 default 0xfd000000
288 help
289 This option allows you to select MMIO Base Address of sideband bus.
290
Shelley Chen4e9bb332021-10-20 15:43:45 -0700291config ECAM_MMCONF_BASE_ADDRESS
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530292 default 0xc0000000
293
294config CPU_BCLK_MHZ
295 int
296 default 100
297
Sridhar Siricillad9c82692023-01-05 17:08:17 +0530298config SOC_INTEL_PERFORMANCE_CORE_SCALE_FACTOR
299 int
300 default 127
301
302config SOC_INTEL_EFFICIENT_CORE_SCALE_FACTOR
303 int
304 default 100
305
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530306config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
307 int
308 default 120
309
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200310config CPU_XTAL_HZ
311 default 38400000
312
Meera Ravindranathd307d0d2022-07-21 20:45:32 +0530313config SOC_INTEL_UFS_CLK_FREQ_HZ
314 int
315 default 19200000
316
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530317config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
318 int
319 default 133
320
321config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
322 int
323 default 7
324
325config SOC_INTEL_I2C_DEV_MAX
326 int
Varshit B Pandya339f0e72021-07-14 11:08:23 +0530327 default 8
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530328
Sean Rhodes0a162912022-05-21 10:38:09 +0100329config SOC_INTEL_ALDERLAKE_S3
330 bool
331 default n
332 help
333 Select if using S3 instead of S0ix to disable D3Cold.
334
Lean Sheng Tan1ec8f972022-09-07 16:07:33 +0200335config ENABLE_SATA_TEST_MODE
336 bool "Enable test mode for SATA margining"
337 default n
338 help
339 Enable SATA test mode in FSP-S.
340
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530341config SOC_INTEL_UART_DEV_MAX
342 int
343 default 7
344
345config CONSOLE_UART_BASE_ADDRESS
346 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800347 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530348 depends on INTEL_LPSS_UART_FOR_CONSOLE
349
Maulik V Vaghela996bab42021-02-05 12:03:19 +0530350config VBT_DATA_SIZE_KB
351 int
352 default 9
353
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530354# Clock divider parameters for 115200 baud rate
Angel Pons054ff5e2022-06-26 10:19:53 +0200355# Baudrate = (UART source clock * M) /(N *16)
Wonkyu Kim60d9b892022-10-10 23:01:38 -0700356# ADL UART source clock: 100MHz
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530357config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
358 hex
359 default 0x25a
360
361config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
362 hex
363 default 0x7fff
364
Subrata Banik292afef2020-09-09 13:34:18 +0530365config VBOOT
Subrata Banik292afef2020-09-09 13:34:18 +0530366 select VBOOT_MUST_REQUEST_DISPLAY
367 select VBOOT_STARTS_IN_BOOTBLOCK
368 select VBOOT_VBNV_CMOS
369 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
Subrata Banik34237862021-06-17 23:36:02 +0530370 select VBOOT_X86_SHA256_ACCELERATION
Subrata Banik292afef2020-09-09 13:34:18 +0530371
MAULIK V VAGHELA84532da2021-08-25 16:41:23 +0530372# Default hash block size is 1KiB. Increasing it to 4KiB to improve
373# hashing time as well as read time. This helps in improving
374# boot time for Alder Lake.
375config VBOOT_HASH_BLOCK_SIZE
376 hex
377 default 0x1000
378
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530379config CBFS_SIZE
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530380 default 0x200000
381
382config PRERAM_CBMEM_CONSOLE_SIZE
383 hex
Tarun Tulid2447902023-01-24 13:31:10 +0000384 default 0x16000 if CONSOLE_SERIAL
Tarun Tuli2b038942023-01-24 13:50:17 +0000385 default 0x4000
Subrata Banik2871e0e2020-09-27 11:30:58 +0530386
Tarun Tulidf74d9b2023-01-24 13:28:06 +0000387config CONSOLE_CBMEM_BUFFER_SIZE
388 hex
Tarun Tulid2447902023-01-24 13:31:10 +0000389 default 0x100000 if CONSOLE_SERIAL
Tarun Tulidf74d9b2023-01-24 13:28:06 +0000390 default 0x40000
391
Lean Sheng Tanbbd72d22022-08-02 12:29:42 +0200392config FSP_TYPE_IOT
393 bool
394 default n
395 help
396 This option allows to select FSP IOT type from 3rdparty/fsp repo
397
Subrata Banikee735942020-09-07 17:52:23 +0530398config FSP_HEADER_PATH
399 string "Location of FSP headers"
Ronak Kanabarecdc7142022-02-02 16:12:00 +0530400 default "src/vendorcode/intel/fsp/fsp2_0/alderlake_n/" if SOC_INTEL_ALDERLAKE_PCH_N
Bora Guvendik2c805b92022-06-08 15:55:52 -0700401 default "src/vendorcode/intel/fsp/fsp2_0/raptorlake/" if SOC_INTEL_RAPTORLAKE
Lean Sheng Tanbbd72d22022-08-02 12:29:42 +0200402 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeP/Include/" if SOC_INTEL_ALDERLAKE_PCH_P && FSP_TYPE_IOT
403 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeS/Include/" if SOC_INTEL_ALDERLAKE_PCH_S && FSP_TYPE_IOT
Michał Żygowski073779b2022-06-29 11:32:01 +0200404 default "3rdparty/fsp/AlderLakeFspBinPkg/Client/AlderLakeP/Include/" if SOC_INTEL_ALDERLAKE_PCH_P
405 default "3rdparty/fsp/AlderLakeFspBinPkg/Client/AlderLakeS/Include/" if SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banikee735942020-09-07 17:52:23 +0530406 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
407
408config FSP_FD_PATH
409 string
410 depends on FSP_USE_REPO
Lean Sheng Tanbbd72d22022-08-02 12:29:42 +0200411 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeP/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_P && FSP_TYPE_IOT
412 default "3rdparty/fsp/AlderLakeFspBinPkg/IoT/AlderLakeS/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_S && FSP_TYPE_IOT
Michał Żygowski073779b2022-06-29 11:32:01 +0200413 default "3rdparty/fsp/AlderLakeFspBinPkg/Client/AlderLakeP/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_P
414 default "3rdparty/fsp/AlderLakeFspBinPkg/Client/AlderLakeS/Fsp.fd" if SOC_INTEL_ALDERLAKE_PCH_S
Subrata Banik292afef2020-09-09 13:34:18 +0530415
416config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
417 int "Debug Consent for ADL"
Subrata Banik0cd553b2021-12-29 08:09:37 +0000418 # USB DBC is more common for developers so make this default to 2 if
Subrata Banik292afef2020-09-09 13:34:18 +0530419 # SOC_INTEL_DEBUG_CONSENT=y
Kane Chen0e9a6162021-11-23 14:42:48 +0800420 default 2 if SOC_INTEL_DEBUG_CONSENT
Subrata Banik292afef2020-09-09 13:34:18 +0530421 default 0
422 help
423 This is to control debug interface on SOC.
424 Setting non-zero value will allow to use DBC or DCI to debug SOC.
425 PlatformDebugConsent in FspmUpd.h has the details.
426
427 Desired platform debug type are
Kane Chen0e9a6162021-11-23 14:42:48 +0800428 0:Disabled, 2:Enabled (All Probes+TraceHub), 6:Enable (Low Power),
429 7:Manual
Furquan Shaikha1c247b2020-12-31 22:50:14 -0800430
431config DATA_BUS_WIDTH
432 int
433 default 128
434
435config DIMMS_PER_CHANNEL
436 int
437 default 2
438
439config MRC_CHANNEL_WIDTH
440 int
441 default 16
442
Sugnan Prabhu Sdcf04592021-12-03 19:07:04 +0530443config ACPI_ADL_IPU_ES_SUPPORT
444 def_bool n
445 help
446 Enables ACPI entry to provide silicon type information to IPU kernel driver.
447
Subrata Banika00db942022-10-12 14:24:41 +0530448config ALDERLAKE_ENABLE_SOC_WORKAROUND
449 bool
450 default y
Meera Ravindranath9e4488a2022-10-10 10:48:18 +0530451 select SOC_INTEL_UFS_LTR_DISQUALIFY
Subrata Banika00db942022-10-12 14:24:41 +0530452 select SOC_INTEL_UFS_OCP_TIMER_DISABLE
453 help
454 Selects the workarounds applicable for Alder Lake SoC.
455
Subrata Banik76d49a72023-01-16 16:33:18 +0530456config USE_UNIFIED_AP_FIRMWARE_FOR_UFS_AND_NON_UFS
457 bool
458 help
459 Alder Lake SoC based OEM board design with UFS and non-UFS planned to use an
460 unified AP firmware which demanded to have a unified descriptor. It means UFS
461 controller needs to default fuse enabled to let UFS SKU to boot.
462
463 On such design with non-UFS SKU is exhibiting S0ix failure due to UFS remain
464 enabled in the strap although FSP-S is making the UFS controller function
465 disabled. The potential root cause of this behaviour is although the UFS
466 controller is function disabled but MPHY clock is still in active state.
467
468 A possible solution to this problem is to issue a warm reboot (if boot path is
469 S5->S0 or G3->S0) after disabling the UFS and let PMC to read the function
470 disable state of the UFS for disabling the MPHY clock.
471
472 Mainboard users with such board design where OEM would like to use an unified AP
473 firmware to support both UFS and non-UFS sku booting might need to choose this
474 config to allow disabling UFS while booting on the non-UFS SKU.
475 Note: selection of this config would introduce an additional warm reset in
476 cold-reset scenarios due to function disabling of the UFS controller.
477
Subrata Banikceaf9d12022-06-05 19:33:33 +0530478choice
479 prompt "Multiprocessor (MP) Initialization configuration to use"
480 default USE_FSP_MP_INIT
481
482config USE_FSP_MP_INIT
483 bool "Use FSP MP init"
484 select MP_SERVICES_PPI_V2
485 help
486 Upon selection, coreboot brings APs from reset and the FSP runs feature programming.
487
488config USE_COREBOOT_MP_INIT
489 bool "Use coreboot MP init"
Subrata Banik8409f152022-08-15 17:08:13 +0530490 # FSP assumes ownership of the APs (Application Processors)
491 # upon passing `NULL` pointer to the CpuMpPpi FSP-S UPD.
492 # Hence, select `MP_SERVICES_PPI_V2_NOOP` config to pass a valid
493 # pointer to the CpuMpPpi UPD with FSP_UNSUPPORTED type APIs.
494 # This will protect APs from getting hijacked by FSP while coreboot
495 # decides to set SkipMpInit UPD.
496 select MP_SERVICES_PPI_V2_NOOP
Subrata Banikceaf9d12022-06-05 19:33:33 +0530497 select RELOAD_MICROCODE_PATCH
498 help
499 Upon selection, coreboot performs MP Init.
500
501endchoice
502
Furquan Shaikhf888c682021-10-05 21:37:33 -0700503if STITCH_ME_BIN
504
505config CSE_BPDT_VERSION
506 default "1.7"
507
508endif
509
Sridhar Siricillab24c5282022-02-23 12:19:04 +0530510config SI_DESC_REGION
511 string "Descriptor Region name"
512 default "SI_DESC"
513 help
514 Name of Descriptor Region in the FMAP
515
516config SI_DESC_REGION_SZ
517 int
518 default 4096
519 help
520 Size of Descriptor Region in the FMAP
521
Kangheui Won96787222022-06-28 15:52:43 +1000522config BUILDING_WITH_DEBUG_FSP
523 bool "Debug FSP is used for the build"
524 default n
525 help
526 Set this option if debug build of FSP is used.
527
Tim Crawfordc6529c72022-11-01 11:42:28 -0600528config INTEL_GMA_BCLV_OFFSET
529 default 0xc8258
530
531config INTEL_GMA_BCLV_WIDTH
532 default 32
533
534config INTEL_GMA_BCLM_OFFSET
535 default 0xc8254
536
537config INTEL_GMA_BCLM_WIDTH
538 default 32
539
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530540endif