summaryrefslogtreecommitdiff
path: root/src/mainboard/google/oak/Kconfig
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2023-11-14 16:23:06 -0800
committerJulius Werner <jwerner@chromium.org>2023-11-22 01:50:24 +0000
commit0712851ca313e0b8ae70d06d7792e97c8e0c5c3b (patch)
tree227f277bd19783c209d0c2f272029b91064c33ba /src/mainboard/google/oak/Kconfig
parent53b79bef610d00c500d2acec7da6eb02e809fcf6 (diff)
google/*: Clean up Kconfg board selection for Google MTK boards
This patch tries to standardize and simplify the Kconfig option layout for Google boards with MediaTek SoCs and align them to the scheme used with other Arm-based Google boards. Change-Id: I40880e7609ba703d0053ad01da742871e54d4e7a Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79063 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yidi Lin <yidilin@google.com>
Diffstat (limited to 'src/mainboard/google/oak/Kconfig')
-rw-r--r--src/mainboard/google/oak/Kconfig20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/mainboard/google/oak/Kconfig b/src/mainboard/google/oak/Kconfig
index 900b04b719..3eba1f0285 100644
--- a/src/mainboard/google/oak/Kconfig
+++ b/src/mainboard/google/oak/Kconfig
@@ -1,7 +1,14 @@
## SPDX-License-Identifier: GPL-2.0-only
config BOARD_GOOGLE_OAK_COMMON
- def_bool n
+ def_bool BOARD_GOOGLE_ELM || \
+ BOARD_GOOGLE_HANA || \
+ BOARD_GOOGLE_OAK
+
+if BOARD_GOOGLE_OAK_COMMON
+
+config BOARD_SPECIFIC_OPTIONS
+ def_bool y
select SOC_MEDIATEK_MT8173
select BOARD_ROMSIZE_KB_4096
select COMMON_CBFS_SPI_WRAPPER
@@ -16,17 +23,6 @@ config BOARD_GOOGLE_OAK_COMMON
select MAINBOARD_HAS_CHROMEOS
select SPI_FLASH
-config BOARD_GOOGLE_OAK
- select BOARD_GOOGLE_OAK_COMMON
-
-config BOARD_GOOGLE_ELM
- select BOARD_GOOGLE_OAK_COMMON
-
-config BOARD_GOOGLE_HANA
- select BOARD_GOOGLE_OAK_COMMON
-
-if BOARD_GOOGLE_OAK_COMMON
-
config VBOOT
select EC_GOOGLE_CHROMEEC_SWITCHES
select VBOOT_VBNV_FLASH