1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_REX_COMMON
5 select BOARD_ROMSIZE_KB_32768
6 select DRIVERS_GFX_GENERIC
7 select DRIVERS_I2C_GENERIC
9 select DRIVERS_INTEL_DPTF
10 select DRIVERS_INTEL_MIPI_SUPPORTS_PRE_PRODUCTION_SOC if SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
11 select DRIVERS_INTEL_USB4_RETIMER
12 select DRIVERS_WIFI_GENERIC
13 select DRIVERS_INTEL_MIPI_CAMERA
14 select DRIVERS_SPI_ACPI
15 select EC_GOOGLE_CHROMEEC
16 select EC_GOOGLE_CHROMEEC_BOARDID
17 select EC_GOOGLE_CHROMEEC_ESPI
18 select EC_GOOGLE_CHROMEEC_SKUID
20 select FW_CONFIG_SOURCE_CHROMEEC_CBI
21 select GOOGLE_SMBIOS_MAINBOARD_VERSION
22 select HAVE_ACPI_TABLES
24 select INTEL_LPSS_UART_FOR_CONSOLE
25 select MAINBOARD_DISABLE_STAGE_CACHE
26 select MAINBOARD_HAS_TPM2
27 select MB_COMPRESS_RAMSTAGE_LZ4
28 select PMC_IPC_ACPI_INTERFACE
29 select SOC_INTEL_COMMON_BLOCK_VARIANT_POWER_LIMIT
31 config BOARD_GOOGLE_BASEBOARD_OVIS
33 select BOARD_GOOGLE_REX_COMMON
34 select DRIVERS_INTEL_PMC
35 select ENABLE_TCSS_DISPLAY_DETECTION if RUN_FSP_GOP
36 select HAVE_SLP_S0_GATE
37 select MAINBOARD_HAS_CHROMEOS
38 select MEMORY_SOLDERDOWN
39 select RT8168_GEN_ACPI_POWER_RESOURCE
40 select RT8168_GET_MAC_FROM_VPD
41 select RT8168_SET_LED_MODE
42 select SOC_INTEL_CSE_LITE_SKU
43 select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
44 select SOC_INTEL_CSE_SEND_EOP_ASYNC
45 select SOC_INTEL_IOE_DIE_SUPPORT
46 select SOC_INTEL_METEORLAKE_U_H
47 select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
48 select TPM_GOOGLE_TI50
50 config BOARD_GOOGLE_BASEBOARD_REX
52 select BOARD_GOOGLE_REX_COMMON
53 select CHROMEOS_WIFI_SAR if CHROMEOS
54 select DRIVERS_INTEL_PMC
55 select DRIVERS_GENERIC_GPIO_KEYS
56 select DRIVERS_WWAN_FM350GL
57 select HAVE_SLP_S0_GATE
58 select MAINBOARD_HAS_CHROMEOS
59 select MEMORY_SOLDERDOWN
60 select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
61 select SOC_INTEL_IOE_DIE_SUPPORT
62 select SOC_INTEL_METEORLAKE_U_H
63 select SYSTEM_TYPE_LAPTOP
64 select TPM_GOOGLE_TI50
66 config BOARD_GOOGLE_MODEL_DEKU
68 select BOARD_GOOGLE_BASEBOARD_OVIS
70 config BOARD_GOOGLE_MODEL_KANIX
72 select BOARD_GOOGLE_BASEBOARD_REX
73 select SOC_INTEL_CSE_LITE_SKU
74 select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
75 select SOC_INTEL_CSE_SEND_EOP_ASYNC
77 config BOARD_GOOGLE_MODEL_KARIS
79 select BOARD_GOOGLE_BASEBOARD_REX
80 select SOC_INTEL_CSE_LITE_SKU
81 select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
82 select SOC_INTEL_CSE_SEND_EOP_ASYNC
84 config BOARD_GOOGLE_MODEL_OVIS
86 select BOARD_GOOGLE_BASEBOARD_OVIS
88 config BOARD_GOOGLE_MODEL_REX
90 select BOARD_GOOGLE_BASEBOARD_REX
91 select DRIVERS_GENERIC_MAX98357A
92 select DRIVERS_GENESYSLOGIC_GL9755
93 select DRIVERS_I2C_SX9324
94 select DRIVERS_INTEL_ISH
95 select DRIVERS_INTEL_SOUNDWIRE
96 select DRIVERS_NXP_UWB_SR1XX
97 select DRIVERS_SOUNDWIRE_CS42L42
98 select DRIVERS_SOUNDWIRE_MAX98363
100 config BOARD_GOOGLE_MODEL_REX_EC_ISH
102 select BOARD_GOOGLE_MODEL_REX
103 select SOC_INTEL_CSE_LITE_SKU
104 select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
105 select SOC_INTEL_CSE_SEND_EOP_ASYNC
106 select SOC_INTEL_STORE_ISH_FW_VERSION
108 config BOARD_GOOGLE_MODEL_SCREEBO
110 select BOARD_GOOGLE_BASEBOARD_REX
111 select DRIVERS_GENERIC_ALC1015
112 select DRIVERS_GENESYSLOGIC_GL9750
113 select SOC_INTEL_CSE_LITE_SKU
114 select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
115 select SOC_INTEL_CSE_SEND_EOP_ASYNC
117 config BOARD_GOOGLE_DEKU
118 select BOARD_GOOGLE_MODEL_DEKU
120 config BOARD_GOOGLE_DEKU4ES
121 select BOARD_GOOGLE_MODEL_DEKU
123 config BOARD_GOOGLE_KANIX
124 select BOARD_GOOGLE_MODEL_KANIX
126 config BOARD_GOOGLE_KARIS
127 select BOARD_GOOGLE_MODEL_KARIS
129 config BOARD_GOOGLE_KARIS4ES
130 select BOARD_GOOGLE_MODEL_KARIS
131 select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
133 config BOARD_GOOGLE_OVIS
134 select BOARD_GOOGLE_MODEL_OVIS
136 config BOARD_GOOGLE_OVIS4ES
137 select BOARD_GOOGLE_MODEL_OVIS
138 select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
140 config BOARD_GOOGLE_REX0
141 select BOARD_GOOGLE_MODEL_REX
142 select SOC_INTEL_CSE_LITE_SKU
143 select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
144 select SOC_INTEL_CSE_SEND_EOP_ASYNC
146 config BOARD_GOOGLE_REX64
147 select BOARD_GOOGLE_MODEL_REX
148 select HAVE_X86_64_SUPPORT
149 select SOC_INTEL_CSE_LITE_SYNC_BY_PAYLOAD
150 select SOC_INTEL_CSE_SEND_EOP_BY_PAYLOAD
151 select USE_X86_64_SUPPORT
153 config BOARD_GOOGLE_REX_EC_ISH
154 select BOARD_GOOGLE_MODEL_REX_EC_ISH
156 config BOARD_GOOGLE_REX4ES
157 select BOARD_GOOGLE_MODEL_REX
158 select SOC_INTEL_CSE_LITE_SKU
159 select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2
160 select SOC_INTEL_CSE_SEND_EOP_ASYNC
161 select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
163 config BOARD_GOOGLE_REX4ES_EC_ISH
164 select BOARD_GOOGLE_MODEL_REX_EC_ISH
165 select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
167 config BOARD_GOOGLE_SCREEBO
168 select BOARD_GOOGLE_MODEL_SCREEBO
170 config BOARD_GOOGLE_SCREEBO4ES
171 select BOARD_GOOGLE_MODEL_SCREEBO
172 select SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
174 if BOARD_GOOGLE_REX_COMMON
178 default "rex" if BOARD_GOOGLE_BASEBOARD_REX
179 default "ovis" if BOARD_GOOGLE_BASEBOARD_OVIS
182 select EC_GOOGLE_CHROMEEC_SWITCHES
183 select GBB_FLAG_FORCE_DEV_SWITCH_ON
184 select GBB_FLAG_FORCE_DEV_BOOT_USB
185 select GBB_FLAG_FORCE_MANUAL_RECOVERY
186 select HAS_RECOVERY_MRC_CACHE
188 config CHROMEOS_WIFI_SAR
189 bool "Enable SAR options for ChromeOS build"
192 select GEO_SAR_ENABLE
197 default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree_pre_prod.cb" if SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
198 default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb"
201 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos4es-debug-fsp.fmd" if CHROMEOS && BUILDING_WITH_DEBUG_FSP && SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
202 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos4es.fmd" if CHROMEOS && SOC_INTEL_METEORLAKE_PRE_PRODUCTION_SILICON
203 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-debug-fsp.fmd" if CHROMEOS && BUILDING_WITH_DEBUG_FSP
204 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" if CHROMEOS
209 config MAINBOARD_FAMILY
211 default "Google_Rex" if BOARD_GOOGLE_BASEBOARD_REX
212 default "Google_Ovis" if BOARD_GOOGLE_BASEBOARD_OVIS
214 config MAINBOARD_PART_NUMBER
215 default "Rex" if BOARD_GOOGLE_REX0
216 default "Rex64" if BOARD_GOOGLE_REX64
217 default "Rex_Ec_Ish" if BOARD_GOOGLE_REX_EC_ISH
218 default "Rex4ES" if BOARD_GOOGLE_REX4ES
219 default "Rex4ES_Ec_Ish" if BOARD_GOOGLE_REX4ES_EC_ISH
220 default "Screebo" if BOARD_GOOGLE_SCREEBO
221 default "Screebo4ES" if BOARD_GOOGLE_SCREEBO4ES
222 default "Karis" if BOARD_GOOGLE_KARIS
223 default "Karis4ES" if BOARD_GOOGLE_KARIS4ES
224 default "Ovis" if BOARD_GOOGLE_OVIS
225 default "Ovis4ES" if BOARD_GOOGLE_OVIS4ES
226 default "Deku" if BOARD_GOOGLE_DEKU
227 default "Deku4ES" if BOARD_GOOGLE_DEKU4ES
228 default "Kanix" if BOARD_GOOGLE_KANIX
232 default "rex0" if BOARD_GOOGLE_MODEL_REX
233 default "screebo" if BOARD_GOOGLE_MODEL_SCREEBO
234 default "karis" if BOARD_GOOGLE_MODEL_KARIS
235 default "ovis" if BOARD_GOOGLE_MODEL_OVIS
236 default "deku" if BOARD_GOOGLE_MODEL_DEKU
237 default "kanix" if BOARD_GOOGLE_MODEL_KANIX
242 config MEMORY_SOLDERDOWN
244 select CHROMEOS_DRAM_PART_NUMBER_IN_CBI if CHROMEOS
245 select HAVE_SPD_IN_CBFS
248 select VBOOT_LID_SWITCH if BOARD_GOOGLE_BASEBOARD_REX
250 config UART_FOR_CONSOLE
254 config OVERRIDE_DEVICETREE
255 default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
257 config DRIVER_TPM_I2C_BUS
259 default 0x4 if BOARD_GOOGLE_MODEL_REX || BOARD_GOOGLE_MODEL_SCREEBO || BOARD_GOOGLE_MODEL_OVIS || BOARD_GOOGLE_MODEL_KARIS || BOARD_GOOGLE_MODEL_DEKU || BOARD_GOOGLE_MODEL_KANIX
261 config DRIVER_TPM_I2C_ADDR
265 config TPM_TIS_ACPI_INTERRUPT
267 default 35 # GPE0_DW1_03 (GPP_E03)
269 config USE_PM_ACPI_TIMER
272 config HAVE_SLP_S0_GATE
275 endif # BOARD_GOOGLE_REX_COMMON