From 0712851ca313e0b8ae70d06d7792e97c8e0c5c3b Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Tue, 14 Nov 2023 16:23:06 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79063 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin --- src/mainboard/google/cherry/Kconfig | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'src/mainboard/google/cherry') diff --git a/src/mainboard/google/cherry/Kconfig b/src/mainboard/google/cherry/Kconfig index a99d7a5f28..e3011859b4 100644 --- a/src/mainboard/google/cherry/Kconfig +++ b/src/mainboard/google/cherry/Kconfig @@ -1,8 +1,14 @@ ## SPDX-License-Identifier: GPL-2.0-only -# Umbrella option to be selected by variant boards. config BOARD_GOOGLE_CHERRY_COMMON - def_bool n + def_bool BOARD_GOOGLE_CHERRY || \ + BOARD_GOOGLE_DOJO || \ + BOARD_GOOGLE_TOMATO + +if BOARD_GOOGLE_CHERRY_COMMON + +config BOARD_SPECIFIC_OPTIONS + def_bool y select RTC select SOC_MEDIATEK_MT8195 select BOARD_ROMSIZE_KB_8192 @@ -23,17 +29,6 @@ config BOARD_GOOGLE_CHERRY_COMMON select COMMONLIB_STORAGE select COMMONLIB_STORAGE_MMC -config BOARD_GOOGLE_CHERRY - select BOARD_GOOGLE_CHERRY_COMMON - -config BOARD_GOOGLE_DOJO - select BOARD_GOOGLE_CHERRY_COMMON - -config BOARD_GOOGLE_TOMATO - select BOARD_GOOGLE_CHERRY_COMMON - -if BOARD_GOOGLE_CHERRY_COMMON - config VBOOT select EC_GOOGLE_CHROMEEC_SWITCHES select VBOOT_VBNV_FLASH -- cgit v1.2.3