1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_CHERRY_COMMON
4 def_bool BOARD_GOOGLE_CHERRY || \
8 if BOARD_GOOGLE_CHERRY_COMMON
10 config BOARD_SPECIFIC_OPTIONS
13 select SOC_MEDIATEK_MT8195
14 select BOARD_ROMSIZE_KB_8192
15 select MAINBOARD_HAS_CHROMEOS
16 select CHROMEOS_USE_EC_WATCHDOG_FLAG if CHROMEOS
17 select COMMON_CBFS_SPI_WRAPPER
19 select SPI_FLASH_INCLUDE_ALL_DRIVERS
20 select EC_GOOGLE_CHROMEEC
21 select EC_GOOGLE_CHROMEEC_BOARDID
22 select EC_GOOGLE_CHROMEEC_SKUID
23 select EC_GOOGLE_CHROMEEC_SPI
24 select I2C_TPM if VBOOT
25 select TPM_GOOGLE_CR50 if VBOOT
26 select MAINBOARD_HAS_TPM2 if VBOOT
27 select MAINBOARD_HAS_NATIVE_VGA_INIT
28 select HAVE_LINEAR_FRAMEBUFFER
29 select COMMONLIB_STORAGE
30 select COMMONLIB_STORAGE_MMC
33 select EC_GOOGLE_CHROMEEC_SWITCHES
34 select VBOOT_VBNV_FLASH
37 default "google/cherry"
39 config MAINBOARD_PART_NUMBER
40 default "Cherry" if BOARD_GOOGLE_CHERRY
41 default "Dojo" if BOARD_GOOGLE_DOJO
42 default "Tomato" if BOARD_GOOGLE_TOMATO
44 config DRIVER_TPM_I2C_BUS
48 config DRIVER_TPM_I2C_ADDR
52 # On MT8195 the SPI flash is actually using a SPI-NOR controller with its own bus.
53 # The number here should be a virtual value as (SPI_BUS_NUMBER + 1).
54 config BOOT_DEVICE_SPI_FLASH_BUS
58 config EC_GOOGLE_CHROMEEC_SPI_BUS
63 prompt "Speaker AMP for Cherry"
64 default CHERRY_USE_RT1019 if BOARD_GOOGLE_CHERRY || BOARD_GOOGLE_TOMATO
65 default CHERRY_USE_MAX98390 if BOARD_GOOGLE_DOJO
67 config CHERRY_USE_RT1011
69 config CHERRY_USE_RT1019
71 config CHERRY_USE_MAX98390
76 config OVERRIDE_DEVICETREE
77 default "variants/dojo/overridetree.cb" if BOARD_GOOGLE_DOJO