drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / src / mainboard / google / cherry / Kconfig
blobe3011859b45f98551945cdd93dcbaf7ea4253611
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_CHERRY_COMMON
4         def_bool BOARD_GOOGLE_CHERRY || \
5                  BOARD_GOOGLE_DOJO || \
6                  BOARD_GOOGLE_TOMATO
8 if BOARD_GOOGLE_CHERRY_COMMON
10 config BOARD_SPECIFIC_OPTIONS
11         def_bool y
12         select RTC
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
18         select SPI_FLASH
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
32 config VBOOT
33         select EC_GOOGLE_CHROMEEC_SWITCHES
34         select VBOOT_VBNV_FLASH
36 config MAINBOARD_DIR
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
45         hex
46         default 0x3
48 config DRIVER_TPM_I2C_ADDR
49         hex
50         default 0x50
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
55         int
56         default 7
58 config EC_GOOGLE_CHROMEEC_SPI_BUS
59         hex
60         default 0x0
62 choice
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
68         bool "RT1011"
69 config CHERRY_USE_RT1019
70         bool "RT1019"
71 config CHERRY_USE_MAX98390
72         bool "MAX98390"
74 endchoice
76 config OVERRIDE_DEVICETREE
77         default "variants/dojo/overridetree.cb" if BOARD_GOOGLE_DOJO
79 endif