From ad60b7fb563f644b425f3b22d8d3bf443bc1e905 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sun, 16 Oct 2022 13:55:33 -0500 Subject: mb/google/reef: Fix WiFi SAR options SAR-related Kconfigs are only used by ChromeOS, and should be guarded properly as such (as most other boards do). TEST=build reef w/o CONFIG_CHROMEOS, verify SAR-related Kconfigs not selected. Change-Id: I4fe3092e620bcbc33b0411ea69e55154fc118aa4 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/68457 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/mainboard/google/reef/Kconfig | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/reef/Kconfig b/src/mainboard/google/reef/Kconfig index 47d111431d..fb02631650 100644 --- a/src/mainboard/google/reef/Kconfig +++ b/src/mainboard/google/reef/Kconfig @@ -5,7 +5,6 @@ config BOARD_GOOGLE_BASEBOARD_REEF select DRIVERS_I2C_DA7219 select DRIVERS_I2C_GENERIC select DRIVERS_I2C_HID - select DSAR_ENABLE select EC_GOOGLE_CHROMEEC select EC_GOOGLE_CHROMEEC_BOARDID select EC_GOOGLE_CHROMEEC_LPC @@ -17,11 +16,9 @@ config BOARD_GOOGLE_BASEBOARD_REEF select INTEL_LPSS_UART_FOR_CONSOLE select MAINBOARD_HAS_CHROMEOS select MAINBOARD_HAS_TPM2 - select SAR_ENABLE select SOC_INTEL_APOLLOLAKE select SYSTEM_TYPE_LAPTOP select TPM_GOOGLE_CR50 - select USE_SAR config BOARD_GOOGLE_REEF select BOARD_GOOGLE_BASEBOARD_REEF @@ -40,6 +37,14 @@ config BOARD_GOOGLE_CORAL if BOARD_GOOGLE_BASEBOARD_REEF +config CHROMEOS_WIFI_SAR + bool "Enable SAR options for ChromeOS build" + depends on CHROMEOS + default y if CHROMEOS + select DSAR_ENABLE + select SAR_ENABLE + select USE_SAR + config DRIVER_TPM_I2C_BUS hex default 0x2 -- cgit v1.2.3