soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / mainboard / google / gru / Kconfig
blob2d7e12c9722e6eeb3de0e0e52158241aac1a55fb
1 ## SPDX-License-Identifier: GPL-2.0-only
3 config BOARD_GOOGLE_GRU_COMMON
4         def_bool BOARD_GOOGLE_BOB || \
5                  BOARD_GOOGLE_GRU || \
6                  BOARD_GOOGLE_KEVIN || \
7                  BOARD_GOOGLE_NEFARIO || \
8                  BOARD_GOOGLE_RAINIER || \
9                  BOARD_GOOGLE_SCARLET
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.
15 config GRU_HAS_TPM2
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 || \
22                  BOARD_GOOGLE_BOB
24 config GRU_HAS_WLAN_RESET
25         def_bool BOARD_GOOGLE_GRU || \
26                  BOARD_GOOGLE_KEVIN || \
27                  BOARD_GOOGLE_BOB
29 config GRU_BASEBOARD_SCARLET
30         def_bool BOARD_GOOGLE_SCARLET || \
31                  BOARD_GOOGLE_RAINIER
33 config BOARD_SPECIFIC_OPTIONS
34         def_bool y
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
44         select RTC
45         select SOC_ROCKCHIP_RK3399
46         select SPI_FLASH
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
55 config VBOOT
56         select EC_GOOGLE_CHROMEEC_SWITCHES
57         select VBOOT_VBNV_FLASH
59 config MAINBOARD_DIR
60         default "google/gru"
62 config EC_GOOGLE_CHROMEEC_SPI_BUS
63         hex
64         default 0x5
66 config BOOT_DEVICE_SPI_FLASH_BUS
67         int
68         default 1
70 config DRIVER_TPM_I2C_BUS
71         hex
72         default 0x0
74 config DRIVER_TPM_I2C_ADDR
75         hex
76         default 0x20
78 config DRIVER_TPM_SPI_BUS
79         hex
80         default 0x2 if GRU_BASEBOARD_SCARLET
81         default 0x0
83 config CONSOLE_SERIAL_UART_ADDRESS
84         hex
85         depends on DRIVERS_UART
86         default 0xFF1A0000
88 ##########################################################
89 #### Update below when adding a new derivative board. ####
90 ##########################################################
91 config DEVICETREE
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