summaryrefslogtreecommitdiff
path: root/src/mainboard/google/gru/Kconfig
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2023-11-14 15:41:03 -0800
committerJulius Werner <jwerner@chromium.org>2023-11-22 01:49:57 +0000
commit53b79bef610d00c500d2acec7da6eb02e809fcf6 (patch)
treeb0f3805a7af21e9852170d689529c22aadde424b /src/mainboard/google/gru/Kconfig
parent6f74bc60281c26cc5c92c1b6f4bc3a27d76b9331 (diff)
google/*: Clean up Kconfig board selection for non-MTK Google Arm boards
This patch unifies and simplifies the Kconfig selection model for the Gru, Herobrine, Trogdor and Veyron boards according to the model discussed in CB:78972. Also add missing license headers to two Kconfig files while I'm here. Change-Id: If679a05afd10869afba9c2a33b54862e102b5f40 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79022 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/gru/Kconfig')
-rw-r--r--src/mainboard/google/gru/Kconfig47
1 files changed, 16 insertions, 31 deletions
diff --git a/src/mainboard/google/gru/Kconfig b/src/mainboard/google/gru/Kconfig
index 837b06d403..2d7e12c972 100644
--- a/src/mainboard/google/gru/Kconfig
+++ b/src/mainboard/google/gru/Kconfig
@@ -1,25 +1,12 @@
## SPDX-License-Identifier: GPL-2.0-only
-config BOARD_GOOGLE_GRU_COMMON # Umbrella option to be selected by variant boards.
- def_bool n
-
-config BOARD_GOOGLE_KEVIN
- select BOARD_GOOGLE_GRU_COMMON
-
-config BOARD_GOOGLE_GRU
- select BOARD_GOOGLE_GRU_COMMON
-
-config BOARD_GOOGLE_BOB
- select BOARD_GOOGLE_GRU_COMMON
-
-config BOARD_GOOGLE_SCARLET
- select BOARD_GOOGLE_GRU_COMMON
-
-config BOARD_GOOGLE_NEFARIO
- select BOARD_GOOGLE_GRU_COMMON
-
-config BOARD_GOOGLE_RAINIER
- select BOARD_GOOGLE_GRU_COMMON
+config BOARD_GOOGLE_GRU_COMMON
+ def_bool BOARD_GOOGLE_BOB || \
+ BOARD_GOOGLE_GRU || \
+ BOARD_GOOGLE_KEVIN || \
+ BOARD_GOOGLE_NEFARIO || \
+ BOARD_GOOGLE_RAINIER || \
+ BOARD_GOOGLE_SCARLET
if BOARD_GOOGLE_GRU_COMMON
@@ -27,23 +14,21 @@ if BOARD_GOOGLE_GRU_COMMON
# 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
+ default !BOARD_GOOGLE_KEVIN
config GRU_HAS_CENTERLOG_PWM
- bool
- default y if BOARD_GOOGLE_GRU || BOARD_GOOGLE_KEVIN || BOARD_GOOGLE_BOB
- default n
+ def_bool BOARD_GOOGLE_GRU || \
+ BOARD_GOOGLE_KEVIN || \
+ BOARD_GOOGLE_BOB
config GRU_HAS_WLAN_RESET
- bool
- default y if BOARD_GOOGLE_GRU || BOARD_GOOGLE_KEVIN || BOARD_GOOGLE_BOB
- default n
+ def_bool BOARD_GOOGLE_GRU || \
+ BOARD_GOOGLE_KEVIN || \
+ BOARD_GOOGLE_BOB
config GRU_BASEBOARD_SCARLET
- bool
- default y if BOARD_GOOGLE_SCARLET || BOARD_GOOGLE_RAINIER
- default n
+ def_bool BOARD_GOOGLE_SCARLET || \
+ BOARD_GOOGLE_RAINIER
config BOARD_SPECIFIC_OPTIONS
def_bool y