blob: 8009a42ae1ee24b71fef5b12e48012e11734596a [file] [log] [blame]
Subrata Banikb3ced6a2020-08-04 13:34:03 +05301config SOC_INTEL_ALDERLAKE
2 bool
3 help
4 Intel Alderlake support
5
6if SOC_INTEL_ALDERLAKE
7
8config CPU_SPECIFIC_OPTIONS
9 def_bool y
Angel Ponsa25eaff2020-09-23 15:37:15 +020010 select ACPI_INTEL_HARDWARE_SLEEP_VALUES
Subrata Banik2871e0e2020-09-27 11:30:58 +053011 select ARCH_ALL_STAGES_X86_32
Subrata Banikb3ced6a2020-08-04 13:34:03 +053012 select BOOT_DEVICE_SUPPORTS_WRITES
Subrata Banik292afef2020-09-09 13:34:18 +053013 select CACHE_MRC_SETTINGS
14 select CPU_INTEL_COMMON
Subrata Banik2871e0e2020-09-27 11:30:58 +053015 select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
Michael Niewöhnerfe6070f2020-10-04 15:16:04 +020016 select CPU_SUPPORTS_PM_TIMER_EMULATION
Eric Lai4ea47c32020-12-21 16:57:49 +080017 select DRIVERS_USB_ACPI
Subrata Banik2871e0e2020-09-27 11:30:58 +053018 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik683c95e2020-12-19 19:36:45 +053019 select FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW
Subrata Banik292afef2020-09-09 13:34:18 +053020 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053021 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banik2871e0e2020-09-27 11:30:58 +053022 select GENERIC_GPIO_LIB
23 select HAVE_FSP_GOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053024 select INTEL_DESCRIPTOR_MODE_CAPABLE
Subrata Banik2871e0e2020-09-27 11:30:58 +053025 select HAVE_SMI_HANDLER
Subrata Banikb3ced6a2020-08-04 13:34:03 +053026 select IDT_IN_EVERY_STAGE
27 select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED
Subrata Banik2871e0e2020-09-27 11:30:58 +053028 select INTEL_GMA_ACPI
29 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
30 select IOAPIC
Subrata Banik0aed4e52020-10-12 17:27:31 +053031 select INTEL_TME
Subrata Banik292afef2020-09-09 13:34:18 +053032 select MRC_SETTINGS_PROTECT
Subrata Banik2871e0e2020-09-27 11:30:58 +053033 select PARALLEL_MP
34 select PARALLEL_MP_AP_WORK
Subrata Banikb3ced6a2020-08-04 13:34:03 +053035 select MICROCODE_BLOB_UNDISCLOSED
Subrata Banikee735942020-09-07 17:52:23 +053036 select PLATFORM_USES_FSP2_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053037 select FSP_PEIM_TO_PEIM_INTERFACE
38 select REG_SCRIPT
39 select PMC_GLOBAL_RESET_ENABLE_LOCK
40 select PMC_LOW_POWER_MODE_PROGRAM
Subrata Banikb3ced6a2020-08-04 13:34:03 +053041 select SOC_INTEL_COMMON
Subrata Banik08089922020-10-03 13:02:06 +053042 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Subrata Banikb3ced6a2020-08-04 13:34:03 +053043 select SOC_INTEL_COMMON_BLOCK
Subrata Banik08089922020-10-03 13:02:06 +053044 select SOC_INTEL_COMMON_BLOCK_ACPI
Subrata Banik21974ab2020-10-31 21:40:43 +053045 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik292afef2020-09-09 13:34:18 +053046 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Subrata Banikb3ced6a2020-08-04 13:34:03 +053047 select SOC_INTEL_COMMON_BLOCK_CPU
Subrata Banik2871e0e2020-09-27 11:30:58 +053048 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
49 select SOC_INTEL_COMMON_BLOCK_DTT
50 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053051 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053052 select SOC_INTEL_COMMON_BLOCK_HDA
Subrata Banikb3ced6a2020-08-04 13:34:03 +053053 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +053054 select SOC_INTEL_COMMON_BLOCK_SMM
55 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Eric Lai4ea47c32020-12-21 16:57:49 +080056 select SOC_INTEL_COMMON_BLOCK_USB4
57 select SOC_INTEL_COMMON_BLOCK_USB4_PCIE
58 select SOC_INTEL_COMMON_BLOCK_USB4_XHCI
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053059 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053060 select SOC_INTEL_COMMON_PCH_BASE
61 select SOC_INTEL_COMMON_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053062 select SSE2
63 select SUPPORT_CPU_UCODE_IN_CBFS
64 select TSC_MONOTONIC_TIMER
65 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +053066 select UDK_202005_BINDING
Subrata Banik2871e0e2020-09-27 11:30:58 +053067 select DISPLAY_FSP_VERSION_INFO
68 select HECI_DISABLE_USING_SMM
69
70config MAX_CPUS
71 int
72 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +053073
74config DCACHE_RAM_BASE
75 default 0xfef00000
76
77config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +053078 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +053079 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
Subrata Banik191bd822020-11-21 19:30:57 +053085 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +053086 help
87 The amount of anticipated stack usage in CAR by bootblock and
88 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +053089 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +053090 (~1KiB).
91
92config FSP_TEMP_RAM_SIZE
93 hex
94 default 0x20000
95 help
96 The amount of anticipated heap usage in CAR by FSP.
97 Refer to Platform FSP integration guide document to know
98 the exact FSP requirement for Heap setup.
99
Tim Wawrzynczak092813a2020-11-24 13:48:56 -0700100config CHIPSET_DEVICETREE
101 string
102 default "soc/intel/alderlake/chipset.cb"
103
Subrata Banik683c95e2020-12-19 19:36:45 +0530104config EXT_BIOS_WIN_BASE
105 default 0xf8000000
106
107config EXT_BIOS_WIN_SIZE
108 default 0x2000000
109
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530110config IFD_CHIPSET
111 string
112 default "adl"
113
114config IED_REGION_SIZE
115 hex
116 default 0x400000
117
118config HEAP_SIZE
119 hex
120 default 0x10000
121
Subrata Banik85144d92021-01-09 16:17:45 +0530122config MAX_PCH_ROOT_PORTS
Subrata Banik2871e0e2020-09-27 11:30:58 +0530123 int
124 default 12
125
Subrata Banik85144d92021-01-09 16:17:45 +0530126config MAX_CPU_ROOT_PORTS
127 int
128 default 3
129
130config MAX_ROOT_PORTS
131 int
132 default MAX_PCH_ROOT_PORTS
133
Subrata Banik2871e0e2020-09-27 11:30:58 +0530134config MAX_PCIE_CLOCKS
135 int
136 default 12
137
138config SMM_TSEG_SIZE
139 hex
140 default 0x800000
141
142config SMM_RESERVED_SIZE
143 hex
144 default 0x200000
145
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530146config PCR_BASE_ADDRESS
147 hex
148 default 0xfd000000
149 help
150 This option allows you to select MMIO Base Address of sideband bus.
151
152config MMCONF_BASE_ADDRESS
153 hex
154 default 0xc0000000
155
156config CPU_BCLK_MHZ
157 int
158 default 100
159
160config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
161 int
162 default 120
163
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200164config CPU_XTAL_HZ
165 default 38400000
166
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530167config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
168 int
169 default 133
170
171config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
172 int
173 default 7
174
175config SOC_INTEL_I2C_DEV_MAX
176 int
177 default 6
178
179config SOC_INTEL_UART_DEV_MAX
180 int
181 default 7
182
183config CONSOLE_UART_BASE_ADDRESS
184 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800185 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530186 depends on INTEL_LPSS_UART_FOR_CONSOLE
187
188# Clock divider parameters for 115200 baud rate
189# Baudrate = (UART source clcok * M) /(N *16)
190# ADL UART source clock: 120MHz
191config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
192 hex
193 default 0x25a
194
195config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
196 hex
197 default 0x7fff
198
199config CHROMEOS
200 select CHROMEOS_RAMOOPS_DYNAMIC
201
Subrata Banik292afef2020-09-09 13:34:18 +0530202config VBOOT
203 select VBOOT_SEPARATE_VERSTAGE
204 select VBOOT_MUST_REQUEST_DISPLAY
205 select VBOOT_STARTS_IN_BOOTBLOCK
206 select VBOOT_VBNV_CMOS
207 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
208
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530209config C_ENV_BOOTBLOCK_SIZE
210 hex
211 default 0xC000
212
213config CBFS_SIZE
214 hex
215 default 0x200000
216
217config PRERAM_CBMEM_CONSOLE_SIZE
218 hex
219 default 0x1400
Subrata Banik2871e0e2020-09-27 11:30:58 +0530220
Subrata Banikee735942020-09-07 17:52:23 +0530221config FSP_HEADER_PATH
222 string "Location of FSP headers"
223 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
224
225config FSP_FD_PATH
226 string
227 depends on FSP_USE_REPO
228 default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd"
Subrata Banik292afef2020-09-09 13:34:18 +0530229
230config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
231 int "Debug Consent for ADL"
232 # USB DBC is more common for developers so make this default to 3 if
233 # SOC_INTEL_DEBUG_CONSENT=y
234 default 3 if SOC_INTEL_DEBUG_CONSENT
235 default 0
236 help
237 This is to control debug interface on SOC.
238 Setting non-zero value will allow to use DBC or DCI to debug SOC.
239 PlatformDebugConsent in FspmUpd.h has the details.
240
241 Desired platform debug type are
242 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
243 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
244 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530245endif