1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_GRU_COMMON
4 def_bool BOARD_GOOGLE_BOB || \
6 BOARD_GOOGLE_KEVIN || \
7 BOARD_GOOGLE_NEFARIO || \
8 BOARD_GOOGLE_RAINIER || \
11 if BOARD_GOOGLE_GRU_COMMON
13 # Most Grus have TPM2 but later Kevins don't... decide this in one place for
14 # convenience. Explicitly override it when building for earlier Kevins.
16 bool "Build for a board revision with a SPI TPM 2.0"
17 default !BOARD_GOOGLE_KEVIN
19 config GRU_HAS_CENTERLOG_PWM
20 def_bool BOARD_GOOGLE_GRU || \
21 BOARD_GOOGLE_KEVIN || \
24 config GRU_HAS_WLAN_RESET
25 def_bool BOARD_GOOGLE_GRU || \
26 BOARD_GOOGLE_KEVIN || \
29 config GRU_BASEBOARD_SCARLET
30 def_bool BOARD_GOOGLE_SCARLET || \
33 config BOARD_SPECIFIC_OPTIONS
35 select BOARD_ROMSIZE_KB_8192
36 select COMMON_CBFS_SPI_WRAPPER
37 select EC_GOOGLE_CHROMEEC
38 select EC_GOOGLE_CHROMEEC_RTC
39 select EC_GOOGLE_CHROMEEC_SPI
40 select MAINBOARD_FORCE_NATIVE_VGA_INIT
41 select MAINBOARD_HAS_CHROMEOS
42 select MAINBOARD_HAS_NATIVE_VGA_INIT
43 select RK3399_SPREAD_SPECTRUM_DDR if BOARD_GOOGLE_BOB
45 select SOC_ROCKCHIP_RK3399
47 select SPI_FLASH_GIGADEVICE
48 select SPI_FLASH_WINBOND
49 select I2C_TPM if !GRU_HAS_TPM2
50 select TPM_GOOGLE_CR50 if GRU_HAS_TPM2
51 select SPI_TPM if GRU_HAS_TPM2
52 select MAINBOARD_HAS_TPM1 if !GRU_HAS_TPM2
53 select MAINBOARD_HAS_TPM2 if GRU_HAS_TPM2
56 select EC_GOOGLE_CHROMEEC_SWITCHES
57 select VBOOT_VBNV_FLASH
62 config EC_GOOGLE_CHROMEEC_SPI_BUS
66 config BOOT_DEVICE_SPI_FLASH_BUS
70 config DRIVER_TPM_I2C_BUS
74 config DRIVER_TPM_I2C_ADDR
78 config DRIVER_TPM_SPI_BUS
80 default 0x2 if GRU_BASEBOARD_SCARLET
83 config CONSOLE_SERIAL_UART_ADDRESS
85 depends on DRIVERS_UART
88 ##########################################################
89 #### Update below when adding a new derivative board. ####
90 ##########################################################
92 default "devicetree.scarlet.cb" if BOARD_GOOGLE_SCARLET
94 config MAINBOARD_PART_NUMBER
95 default "Scarlet" if BOARD_GOOGLE_SCARLET
96 default "Bob" if BOARD_GOOGLE_BOB
97 default "Gru" if BOARD_GOOGLE_GRU
98 default "Kevin" if BOARD_GOOGLE_KEVIN
99 default "Nefario" if BOARD_GOOGLE_NEFARIO
100 default "Rainier" if BOARD_GOOGLE_RAINIER
102 endif # BOARD_GOOGLE_GRU_COMMON