blob: 7e693cb37333b1f446b4ee9a307297e8c6d6e10e [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
Subrata Banik2871e0e2020-09-27 11:30:58 +053017 select FSP_COMPRESS_FSP_S_LZ4
Subrata Banik292afef2020-09-09 13:34:18 +053018 select FSP_M_XIP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053019 select FSP_STATUS_GLOBAL_RESET_REQUIRED_3
Subrata Banik2871e0e2020-09-27 11:30:58 +053020 select GENERIC_GPIO_LIB
21 select HAVE_FSP_GOP
Subrata Banikb3ced6a2020-08-04 13:34:03 +053022 select INTEL_DESCRIPTOR_MODE_CAPABLE
Subrata Banik2871e0e2020-09-27 11:30:58 +053023 select HAVE_SMI_HANDLER
Subrata Banikb3ced6a2020-08-04 13:34:03 +053024 select IDT_IN_EVERY_STAGE
25 select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED
Subrata Banik2871e0e2020-09-27 11:30:58 +053026 select INTEL_GMA_ACPI
27 select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
28 select IOAPIC
Subrata Banik0aed4e52020-10-12 17:27:31 +053029 select INTEL_TME
Subrata Banik292afef2020-09-09 13:34:18 +053030 select MRC_SETTINGS_PROTECT
Subrata Banik2871e0e2020-09-27 11:30:58 +053031 select PARALLEL_MP
32 select PARALLEL_MP_AP_WORK
Subrata Banikb3ced6a2020-08-04 13:34:03 +053033 select MICROCODE_BLOB_UNDISCLOSED
Subrata Banikee735942020-09-07 17:52:23 +053034 select PLATFORM_USES_FSP2_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053035 select FSP_PEIM_TO_PEIM_INTERFACE
36 select REG_SCRIPT
37 select PMC_GLOBAL_RESET_ENABLE_LOCK
38 select PMC_LOW_POWER_MODE_PROGRAM
Subrata Banikb3ced6a2020-08-04 13:34:03 +053039 select SOC_INTEL_COMMON
Subrata Banik08089922020-10-03 13:02:06 +053040 select SOC_INTEL_COMMON_ACPI_WAKE_SOURCE
Subrata Banikb3ced6a2020-08-04 13:34:03 +053041 select SOC_INTEL_COMMON_BLOCK
Subrata Banik08089922020-10-03 13:02:06 +053042 select SOC_INTEL_COMMON_BLOCK_ACPI
Subrata Banik21974ab2020-10-31 21:40:43 +053043 select SOC_INTEL_COMMON_BLOCK_CAR
Subrata Banik292afef2020-09-09 13:34:18 +053044 select SOC_INTEL_COMMON_BLOCK_CHIP_CONFIG
Subrata Banikb3ced6a2020-08-04 13:34:03 +053045 select SOC_INTEL_COMMON_BLOCK_CPU
Subrata Banik2871e0e2020-09-27 11:30:58 +053046 select SOC_INTEL_COMMON_BLOCK_CPU_MPINIT
47 select SOC_INTEL_COMMON_BLOCK_DTT
48 select SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT
Subrata Banikb3ced6a2020-08-04 13:34:03 +053049 select SOC_INTEL_COMMON_BLOCK_GSPI_VERSION_2
Subrata Banik2871e0e2020-09-27 11:30:58 +053050 select SOC_INTEL_COMMON_BLOCK_HDA
Subrata Banikb3ced6a2020-08-04 13:34:03 +053051 select SOC_INTEL_COMMON_BLOCK_SA
Subrata Banik2871e0e2020-09-27 11:30:58 +053052 select SOC_INTEL_COMMON_BLOCK_SMM
53 select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
Subrata Banik4ed9f9a2020-10-31 22:01:55 +053054 select SOC_INTEL_COMMON_FSP_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053055 select SOC_INTEL_COMMON_PCH_BASE
56 select SOC_INTEL_COMMON_RESET
Subrata Banikb3ced6a2020-08-04 13:34:03 +053057 select SSE2
58 select SUPPORT_CPU_UCODE_IN_CBFS
59 select TSC_MONOTONIC_TIMER
60 select UDELAY_TSC
Subrata Banikee735942020-09-07 17:52:23 +053061 select UDK_202005_BINDING
Subrata Banik2871e0e2020-09-27 11:30:58 +053062 select DISPLAY_FSP_VERSION_INFO
63 select HECI_DISABLE_USING_SMM
64
65config MAX_CPUS
66 int
67 default 24
Subrata Banikb3ced6a2020-08-04 13:34:03 +053068
69config DCACHE_RAM_BASE
70 default 0xfef00000
71
72config DCACHE_RAM_SIZE
Subrata Banik191bd822020-11-21 19:30:57 +053073 default 0xc0000
Subrata Banikb3ced6a2020-08-04 13:34:03 +053074 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
Subrata Banik191bd822020-11-21 19:30:57 +053080 default 0x80400
Subrata Banikb3ced6a2020-08-04 13:34:03 +053081 help
82 The amount of anticipated stack usage in CAR by bootblock and
83 other stages. In the case of FSP_USES_CB_STACK default value will be
Subrata Banik191bd822020-11-21 19:30:57 +053084 sum of FSP-M stack requirement(512KiB) and CB romstage stack requirement
Subrata Banikb3ced6a2020-08-04 13:34:03 +053085 (~1KiB).
86
87config FSP_TEMP_RAM_SIZE
88 hex
89 default 0x20000
90 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
Tim Wawrzynczak092813a2020-11-24 13:48:56 -070095config CHIPSET_DEVICETREE
96 string
97 default "soc/intel/alderlake/chipset.cb"
98
Subrata Banikb3ced6a2020-08-04 13:34:03 +053099config IFD_CHIPSET
100 string
101 default "adl"
102
103config IED_REGION_SIZE
104 hex
105 default 0x400000
106
107config HEAP_SIZE
108 hex
109 default 0x10000
110
Subrata Banik2871e0e2020-09-27 11:30:58 +0530111config MAX_ROOT_PORTS
112 int
113 default 12
114
115config MAX_PCIE_CLOCKS
116 int
117 default 12
118
119config SMM_TSEG_SIZE
120 hex
121 default 0x800000
122
123config SMM_RESERVED_SIZE
124 hex
125 default 0x200000
126
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530127config PCR_BASE_ADDRESS
128 hex
129 default 0xfd000000
130 help
131 This option allows you to select MMIO Base Address of sideband bus.
132
133config MMCONF_BASE_ADDRESS
134 hex
135 default 0xc0000000
136
137config CPU_BCLK_MHZ
138 int
139 default 100
140
141config SOC_INTEL_COMMON_BLOCK_GSPI_CLOCK_MHZ
142 int
143 default 120
144
Michael Niewöhnerdadcbfb2020-10-04 14:48:05 +0200145config CPU_XTAL_HZ
146 default 38400000
147
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530148config DRIVERS_I2C_DESIGNWARE_CLOCK_MHZ
149 int
150 default 133
151
152config SOC_INTEL_COMMON_BLOCK_GSPI_MAX
153 int
154 default 7
155
156config SOC_INTEL_I2C_DEV_MAX
157 int
158 default 6
159
160config SOC_INTEL_UART_DEV_MAX
161 int
162 default 7
163
164config CONSOLE_UART_BASE_ADDRESS
165 hex
Bora Guvendik2a704192020-11-16 11:23:48 -0800166 default 0xfe03e000
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530167 depends on INTEL_LPSS_UART_FOR_CONSOLE
168
169# Clock divider parameters for 115200 baud rate
170# Baudrate = (UART source clcok * M) /(N *16)
171# ADL UART source clock: 120MHz
172config SOC_INTEL_COMMON_LPSS_UART_CLK_M_VAL
173 hex
174 default 0x25a
175
176config SOC_INTEL_COMMON_LPSS_UART_CLK_N_VAL
177 hex
178 default 0x7fff
179
180config CHROMEOS
181 select CHROMEOS_RAMOOPS_DYNAMIC
182
Subrata Banik292afef2020-09-09 13:34:18 +0530183config VBOOT
184 select VBOOT_SEPARATE_VERSTAGE
185 select VBOOT_MUST_REQUEST_DISPLAY
186 select VBOOT_STARTS_IN_BOOTBLOCK
187 select VBOOT_VBNV_CMOS
188 select VBOOT_VBNV_CMOS_BACKUP_TO_FLASH
189
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530190config C_ENV_BOOTBLOCK_SIZE
191 hex
192 default 0xC000
193
194config CBFS_SIZE
195 hex
196 default 0x200000
197
198config PRERAM_CBMEM_CONSOLE_SIZE
199 hex
200 default 0x1400
Subrata Banik2871e0e2020-09-27 11:30:58 +0530201
Subrata Banikee735942020-09-07 17:52:23 +0530202config FSP_HEADER_PATH
203 string "Location of FSP headers"
204 default "src/vendorcode/intel/fsp/fsp2_0/alderlake/"
205
206config FSP_FD_PATH
207 string
208 depends on FSP_USE_REPO
209 default "3rdparty/fsp/AlderLakeFspBinPkg/Fsp.fd"
Subrata Banik292afef2020-09-09 13:34:18 +0530210
211config SOC_INTEL_ALDERLAKE_DEBUG_CONSENT
212 int "Debug Consent for ADL"
213 # USB DBC is more common for developers so make this default to 3 if
214 # SOC_INTEL_DEBUG_CONSENT=y
215 default 3 if SOC_INTEL_DEBUG_CONSENT
216 default 0
217 help
218 This is to control debug interface on SOC.
219 Setting non-zero value will allow to use DBC or DCI to debug SOC.
220 PlatformDebugConsent in FspmUpd.h has the details.
221
222 Desired platform debug type are
223 0:Disabled, 1:Enabled (DCI OOB+[DbC]), 2:Enabled (DCI OOB),
224 3:Enabled (USB3 DbC), 4:Enabled (XDP/MIPI60), 5:Enabled (USB2 DbC),
225 6:Enable (2-wire DCI OOB), 7:Manual
Subrata Banikb3ced6a2020-08-04 13:34:03 +0530226endif