1 ## SPDX-License-Identifier: GPL-2.0-only
3 config ACPI_FNKEY_GEN_SCANCODE
4 default 94 if BOARD_GOOGLE_AWASUKI
6 config BOARD_GOOGLE_BASEBOARD_DEDEDE
8 select BOARD_ROMSIZE_KB_16384 if !BOARD_ROMSIZE_KB_32768
9 select DRIVERS_AUDIO_SOF
10 select DRIVERS_GENERIC_ALC1015
11 select DRIVERS_GENERIC_GPIO_KEYS
12 select DRIVERS_GENERIC_MAX98357A
13 select DRIVERS_I2C_CS42L42
14 select DRIVERS_I2C_GENERIC
15 select DRIVERS_I2C_GPIO_MUX
16 select DRIVERS_I2C_HID
17 select DRIVERS_I2C_RT5645
18 select DRIVERS_INTEL_DPTF
19 select DRIVERS_INTEL_MIPI_CAMERA
20 select DRIVERS_SPI_ACPI
21 select DRIVERS_USB_ACPI
22 select EC_GOOGLE_CHROMEEC
23 select EC_GOOGLE_CHROMEEC_BOARDID
24 select EC_GOOGLE_CHROMEEC_ESPI
25 select EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG
26 select EC_GOOGLE_CHROMEEC_SKUID
28 select FW_CONFIG_SOURCE_CHROMEEC_CBI
29 select GOOGLE_SMBIOS_MAINBOARD_VERSION
30 select HAVE_ACPI_RESUME
31 select HAVE_ACPI_TABLES
32 select HAVE_SPD_IN_CBFS if !BOARD_GOOGLE_DEDEDE
33 select INTEL_LPSS_UART_FOR_CONSOLE
34 select MAINBOARD_HAS_CHROMEOS
35 select MAINBOARD_HAS_TPM2
36 select SOC_INTEL_COMMON_BLOCK_IPU
37 select SOC_INTEL_CSE_LITE_SKU
38 select SOC_INTEL_JASPERLAKE
39 select SOC_INTEL_CRASHLOG
42 config BOARD_GOOGLE_AWASUKI
43 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
44 select BASEBOARD_DEDEDE_LAPTOP
45 select SOC_INTEL_COMMON_BLOCK_IPU
46 select INTEL_GMA_HAVE_VBT
48 config BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
50 select BOARD_GOOGLE_BASEBOARD_DEDEDE
51 select CR50_USE_LONG_INTERRUPT_PULSES
53 select TPM_GOOGLE_CR50
55 config BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
57 select BOARD_GOOGLE_BASEBOARD_DEDEDE
58 select MEMORY_MAPPED_TPM
60 config BOARD_GOOGLE_BEADRIX
61 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
62 select BASEBOARD_DEDEDE_LAPTOP
63 select DRIVERS_GENERIC_MAX98357A
64 select DRIVERS_I2C_SX9324
65 select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
66 select INTEL_GMA_HAVE_VBT
68 config BOARD_GOOGLE_BLIPPER
69 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
70 select BASEBOARD_DEDEDE_LAPTOP
71 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
72 select INTEL_GMA_HAVE_VBT
74 config BOARD_GOOGLE_BOTEN
75 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
76 select BASEBOARD_DEDEDE_LAPTOP
77 select DRIVERS_I2C_SX9324
78 select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
79 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
80 select INTEL_GMA_HAVE_VBT
82 config BOARD_GOOGLE_BOXY
83 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
84 select INTEL_GMA_HAVE_VBT
85 select RT8168_GEN_ACPI_POWER_RESOURCE
86 select RT8168_GET_MAC_FROM_VPD
87 select RT8168_SET_LED_MODE
89 config BOARD_GOOGLE_BUGZZY
90 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
91 select BASEBOARD_DEDEDE_LAPTOP
92 select DRIVERS_GENERIC_MAX98357A
93 select DRIVERS_I2C_DA7219
94 select DRIVERS_I2C_SX9360
95 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
96 select INTEL_GMA_HAVE_VBT
98 config BOARD_GOOGLE_CAPPY2
99 select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
100 select BASEBOARD_DEDEDE_LAPTOP
102 config BOARD_GOOGLE_CORORI
103 select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
104 select BASEBOARD_DEDEDE_LAPTOP
105 select DRIVERS_GENERIC_MAX98357A
107 config BOARD_GOOGLE_CRET
108 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
109 select BASEBOARD_DEDEDE_LAPTOP
110 select DRIVERS_GENERIC_MAX98357A
111 select DRIVERS_I2C_DA7219
112 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
113 select INTEL_GMA_HAVE_VBT
115 config BOARD_GOOGLE_DEDEDE
116 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
117 select BASEBOARD_DEDEDE_LAPTOP
118 select BOARD_ROMSIZE_KB_32768
120 config BOARD_GOOGLE_DEXI
121 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
122 select RT8168_GEN_ACPI_POWER_RESOURCE
123 select RT8168_GET_MAC_FROM_VPD
124 select RT8168_SET_LED_MODE
125 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
127 config BOARD_GOOGLE_DIBBI
128 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
129 select INTEL_GMA_HAVE_VBT
130 select RT8168_GEN_ACPI_POWER_RESOURCE
131 select RT8168_GET_MAC_FROM_VPD
132 select RT8168_SET_LED_MODE
134 config BOARD_GOOGLE_DITA
135 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
136 select RT8168_GEN_ACPI_POWER_RESOURCE
137 select RT8168_GET_MAC_FROM_VPD
138 select RT8168_SET_LED_MODE
139 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
141 config BOARD_GOOGLE_DRAWCIA
142 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
143 select BASEBOARD_DEDEDE_LAPTOP
144 select DRIVERS_GENERIC_MAX98357A
145 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
146 select DRIVERS_INTEL_MIPI_CAMERA
147 select INTEL_GMA_HAVE_VBT
148 select SOC_INTEL_COMMON_BLOCK_IPU
150 config BOARD_GOOGLE_DRIBLEE
151 select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
152 select BASEBOARD_DEDEDE_LAPTOP
153 select DRIVERS_GENERIC_MAX98357A
155 config BOARD_GOOGLE_GALTIC
156 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
157 select BASEBOARD_DEDEDE_LAPTOP
158 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
159 select INTEL_GMA_HAVE_VBT
161 config BOARD_GOOGLE_GOOEY
162 select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
163 select BASEBOARD_DEDEDE_LAPTOP
164 select DRIVERS_I2C_SX9324
165 select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
166 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
168 config BOARD_GOOGLE_HABOKI
169 select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
170 select BASEBOARD_DEDEDE_LAPTOP
171 select DRIVERS_GENERIC_MAX98357A
172 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
173 select DRIVERS_INTEL_MIPI_CAMERA
174 select SOC_INTEL_COMMON_BLOCK_IPU
176 config BOARD_GOOGLE_KRACKO
177 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
178 select BASEBOARD_DEDEDE_LAPTOP
179 select DRIVERS_GENERIC_MAX98357A
180 select DRIVERS_I2C_SX9324
181 select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
182 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
183 select INTEL_GMA_HAVE_VBT
185 config BOARD_GOOGLE_LALALA
186 select BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
187 select BASEBOARD_DEDEDE_LAPTOP
188 select DRIVERS_INTEL_MIPI_CAMERA
189 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
190 select SOC_INTEL_COMMON_BLOCK_IPU
192 config BOARD_GOOGLE_LANTIS
193 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
194 select BASEBOARD_DEDEDE_LAPTOP
195 select DRIVERS_GENERIC_MAX98357A
196 select INTEL_GMA_HAVE_VBT
198 config BOARD_GOOGLE_MADOO
199 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
200 select BASEBOARD_DEDEDE_LAPTOP
201 select DRIVERS_GENERIC_MAX98357A
202 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
203 select INTEL_GMA_HAVE_VBT
205 config BOARD_GOOGLE_MAGOLOR
206 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
207 select BASEBOARD_DEDEDE_LAPTOP
208 select DRIVERS_I2C_DA7219
209 select DRIVERS_INTEL_MIPI_CAMERA
210 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
211 select INTEL_GMA_HAVE_VBT
212 select SOC_INTEL_COMMON_BLOCK_IPU
214 config BOARD_GOOGLE_METAKNIGHT
215 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
216 select BASEBOARD_DEDEDE_LAPTOP
217 select INTEL_GMA_HAVE_VBT
219 config BOARD_GOOGLE_PIRIKA
220 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
221 select BASEBOARD_DEDEDE_LAPTOP
222 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
223 select INTEL_GMA_HAVE_VBT
225 config BOARD_GOOGLE_SASUKE
226 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
227 select BASEBOARD_DEDEDE_LAPTOP
228 select DRIVERS_GENERIC_MAX98357A
229 select DRIVERS_I2C_DA7219
230 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
231 select INTEL_GMA_HAVE_VBT
233 config BOARD_GOOGLE_SASUKETTE
234 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
235 select BASEBOARD_DEDEDE_LAPTOP
236 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
237 select INTEL_GMA_HAVE_VBT
239 config BOARD_GOOGLE_SHOTZO
240 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
242 config BOARD_GOOGLE_STORO
243 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
244 select BASEBOARD_DEDEDE_LAPTOP
245 select DRIVERS_I2C_SX9324
246 select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER
247 select DRIVERS_INTEL_MIPI_CAMERA
248 select SOC_INTEL_COMMON_BLOCK_IPU
249 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
250 select INTEL_GMA_HAVE_VBT
252 config BOARD_GOOGLE_TARANZA
253 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
254 select RT8168_GEN_ACPI_POWER_RESOURCE
255 select RT8168_GET_MAC_FROM_VPD
256 select RT8168_SET_LED_MODE
257 select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
258 select INTEL_GMA_HAVE_VBT
260 config BOARD_GOOGLE_WADDLEDEE
261 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
262 select BASEBOARD_DEDEDE_LAPTOP
263 select BOARD_ROMSIZE_KB_32768
264 select INTEL_GMA_HAVE_VBT
266 config BOARD_GOOGLE_WADDLEDOO
267 select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
268 select BASEBOARD_DEDEDE_LAPTOP
269 select BOARD_ROMSIZE_KB_32768
270 select DRIVERS_GENERIC_MAX98357A
271 select DRIVERS_I2C_DA7219
272 select DRIVERS_INTEL_MIPI_CAMERA
273 select INTEL_GMA_HAVE_VBT
274 select SOC_INTEL_COMMON_BLOCK_IPU
276 if BOARD_GOOGLE_BASEBOARD_DEDEDE
278 config BASEBOARD_DEDEDE_LAPTOP
280 select SYSTEM_TYPE_LAPTOP
283 select CHROMEOS_CSE_BOARD_RESET_OVERRIDE if BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
284 select CHROMEOS_DRAM_PART_NUMBER_IN_CBI
285 select EC_GOOGLE_CHROMEEC_SWITCHES
286 select GBB_FLAG_FORCE_DEV_SWITCH_ON
287 select GBB_FLAG_FORCE_DEV_BOOT_USB
288 select GBB_FLAG_FORCE_DEV_BOOT_ALTFW
289 select GBB_FLAG_FORCE_MANUAL_RECOVERY
290 select HAS_RECOVERY_MRC_CACHE
291 select VBOOT_EARLY_EC_SYNC
292 select VBOOT_LID_SWITCH
294 config CHROMEOS_WIFI_SAR
295 bool "Enable SAR options for ChromeOS build"
302 default "variants/baseboard/devicetree.cb"
308 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-dedede-16MiB.fmd" if CHROMEOS && BOARD_ROMSIZE_KB_16384
309 default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos-dedede-32MiB.fmd" if CHROMEOS && BOARD_ROMSIZE_KB_32768
312 default "google/dedede"
314 config MAINBOARD_FAMILY
316 default "Google_Dedede" if BOARD_GOOGLE_DEDEDE
318 config MAINBOARD_PART_NUMBER
319 default "Beadrix" if BOARD_GOOGLE_BEADRIX
320 default "Blipper" if BOARD_GOOGLE_BLIPPER
321 default "Boten" if BOARD_GOOGLE_BOTEN
322 default "Boxy" if BOARD_GOOGLE_BOXY
323 default "Bugzzy" if BOARD_GOOGLE_BUGZZY
324 default "Cappy2" if BOARD_GOOGLE_CAPPY2
325 default "Corori" if BOARD_GOOGLE_CORORI
326 default "Cret" if BOARD_GOOGLE_CRET
327 default "Dedede" if BOARD_GOOGLE_DEDEDE
328 default "Dexi" if BOARD_GOOGLE_DEXI
329 default "Dibbi" if BOARD_GOOGLE_DIBBI
330 default "Dita" if BOARD_GOOGLE_DITA
331 default "Drawcia" if BOARD_GOOGLE_DRAWCIA
332 default "Driblee" if BOARD_GOOGLE_DRIBLEE
333 default "Galtic" if BOARD_GOOGLE_GALTIC
334 default "Gooey" if BOARD_GOOGLE_GOOEY
335 default "Haboki" if BOARD_GOOGLE_HABOKI
336 default "Kracko" if BOARD_GOOGLE_KRACKO
337 default "Lalala" if BOARD_GOOGLE_LALALA
338 default "Lantis" if BOARD_GOOGLE_LANTIS
339 default "Madoo" if BOARD_GOOGLE_MADOO
340 default "Magolor" if BOARD_GOOGLE_MAGOLOR
341 default "Metaknight" if BOARD_GOOGLE_METAKNIGHT
342 default "Pirika" if BOARD_GOOGLE_PIRIKA
343 default "Sasuke" if BOARD_GOOGLE_SASUKE
344 default "Sasukette" if BOARD_GOOGLE_SASUKETTE
345 default "Shotzo" if BOARD_GOOGLE_SHOTZO
346 default "Storo" if BOARD_GOOGLE_STORO
347 default "Taranza" if BOARD_GOOGLE_TARANZA
348 default "Waddledee" if BOARD_GOOGLE_WADDLEDEE
349 default "Waddledoo" if BOARD_GOOGLE_WADDLEDOO
350 default "Awasuki" if BOARD_GOOGLE_AWASUKI
356 config OVERRIDE_DEVICETREE
357 default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" if !BOARD_GOOGLE_DEDEDE
359 config UART_FOR_CONSOLE
364 default "beadrix" if BOARD_GOOGLE_BEADRIX
365 default "blipper" if BOARD_GOOGLE_BLIPPER
366 default "boten" if BOARD_GOOGLE_BOTEN
367 default "boxy" if BOARD_GOOGLE_BOXY
368 default "bugzzy" if BOARD_GOOGLE_BUGZZY
369 default "cappy2" if BOARD_GOOGLE_CAPPY2
370 default "corori" if BOARD_GOOGLE_CORORI
371 default "cret" if BOARD_GOOGLE_CRET
372 default "dedede" if BOARD_GOOGLE_DEDEDE
373 default "dexi" if BOARD_GOOGLE_DEXI
374 default "dibbi" if BOARD_GOOGLE_DIBBI
375 default "dita" if BOARD_GOOGLE_DITA
376 default "drawcia" if BOARD_GOOGLE_DRAWCIA
377 default "driblee" if BOARD_GOOGLE_DRIBLEE
378 default "galtic" if BOARD_GOOGLE_GALTIC
379 default "gooey" if BOARD_GOOGLE_GOOEY
380 default "haboki" if BOARD_GOOGLE_HABOKI
381 default "kracko" if BOARD_GOOGLE_KRACKO
382 default "lalala" if BOARD_GOOGLE_LALALA
383 default "lantis" if BOARD_GOOGLE_LANTIS
384 default "madoo" if BOARD_GOOGLE_MADOO
385 default "magolor" if BOARD_GOOGLE_MAGOLOR
386 default "metaknight" if BOARD_GOOGLE_METAKNIGHT
387 default "pirika" if BOARD_GOOGLE_PIRIKA
388 default "sasuke" if BOARD_GOOGLE_SASUKE
389 default "sasukette" if BOARD_GOOGLE_SASUKETTE
390 default "shotzo" if BOARD_GOOGLE_SHOTZO
391 default "storo" if BOARD_GOOGLE_STORO
392 default "taranza" if BOARD_GOOGLE_TARANZA
393 default "waddledee" if BOARD_GOOGLE_WADDLEDEE
394 default "waddledoo" if BOARD_GOOGLE_WADDLEDOO
395 default "awasuki" if BOARD_GOOGLE_AWASUKI
397 endif #BOARD_GOOGLE_BASEBOARD_DEDEDE
399 if BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
401 config DRIVER_TPM_SPI_BUS
404 config TPM_TIS_ACPI_INTERRUPT
406 default 4 # GPE0_DW0_4 (GPP_B4)
408 endif #BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50
410 if BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2
414 default 0x24 # GPP_B4_IRQ
416 endif #BOARD_GOOGLE_BASEBOARD_DEDEDE_TPM2