summaryrefslogtreecommitdiff
path: root/src/mainboard/google/gru/Kconfig
blob: 98eaa02deee85b229e404a43a000a56248f51be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
##
## This file is part of the coreboot project.
##
##
## SPDX-License-Identifier: GPL-2.0-only

config BOARD_GOOGLE_GRU_COMMON  # Umbrella option to be selected by variant boards.
	def_bool n

if BOARD_GOOGLE_GRU_COMMON

# Most Grus have TPM2 but later Kevins don't... decide this in one place for
# convenience. Explicitly override it when building for earlier Kevins.
config GRU_HAS_TPM2
	bool "Build for a board revision with a SPI TPM 2.0"
	default n if BOARD_GOOGLE_KEVIN
	default y

config GRU_HAS_CENTERLOG_PWM
	bool
	default y if BOARD_GOOGLE_GRU || BOARD_GOOGLE_KEVIN || BOARD_GOOGLE_BOB
	default n

config GRU_HAS_WLAN_RESET
	bool
	default y if BOARD_GOOGLE_GRU || BOARD_GOOGLE_KEVIN || BOARD_GOOGLE_BOB
	default n

config GRU_BASEBOARD_SCARLET
	bool
	default y if BOARD_GOOGLE_SCARLET || BOARD_GOOGLE_RAINIER
	default n

config BOARD_SPECIFIC_OPTIONS
	def_bool y
	select BOARD_ROMSIZE_KB_8192
	select COMMON_CBFS_SPI_WRAPPER
	select EC_GOOGLE_CHROMEEC
	select EC_GOOGLE_CHROMEEC_RTC
	select EC_GOOGLE_CHROMEEC_SPI
	select MAINBOARD_FORCE_NATIVE_VGA_INIT
	select MAINBOARD_HAS_CHROMEOS
	select MAINBOARD_HAS_NATIVE_VGA_INIT
	select RK3399_SPREAD_SPECTRUM_DDR if BOARD_GOOGLE_BOB
	select RTC
	select SOC_ROCKCHIP_RK3399
	select SPI_FLASH
	select SPI_FLASH_GIGADEVICE
	select SPI_FLASH_WINBOND
	select MAINBOARD_HAS_SPI_TPM_CR50 if GRU_HAS_TPM2
	select MAINBOARD_HAS_I2C_TPM_GENERIC if !GRU_HAS_TPM2
	select MAINBOARD_HAS_TPM1 if !GRU_HAS_TPM2
	select MAINBOARD_HAS_TPM2 if GRU_HAS_TPM2

config VBOOT
	select EC_GOOGLE_CHROMEEC_SWITCHES
	select VBOOT_VBNV_FLASH

config MAINBOARD_DIR
	string
	default "google/gru"

config EC_GOOGLE_CHROMEEC_SPI_BUS
	hex
	default 0x5

config BOOT_DEVICE_SPI_FLASH_BUS
	int
	default 1

config DRIVER_TPM_I2C_BUS
	hex
	default 0x0

config DRIVER_TPM_I2C_ADDR
	hex
	default 0x20

config DRIVER_TPM_SPI_BUS
	hex
	default 0x2 if GRU_BASEBOARD_SCARLET
	default 0x0

config CONSOLE_SERIAL_UART_ADDRESS
	hex
	depends on DRIVERS_UART
	default 0xFF1A0000

##########################################################
#### Update below when adding a new derivative board. ####
##########################################################
config DEVICETREE
	string
	default "devicetree.scarlet.cb" if BOARD_GOOGLE_SCARLET

config MAINBOARD_PART_NUMBER
	string
	default "Scarlet" if BOARD_GOOGLE_SCARLET
	default "Bob" if BOARD_GOOGLE_BOB
	default "Gru" if BOARD_GOOGLE_GRU
	default "Kevin" if BOARD_GOOGLE_KEVIN
	default "Nefario" if BOARD_GOOGLE_NEFARIO
	default "Rainier" if BOARD_GOOGLE_RAINIER

endif # BOARD_GOOGLE_GRU_COMMON