From 834bddfe03b2da4daca01fdcf6392fae73473375 Mon Sep 17 00:00:00 2001 From: Sheng-Liang Pan Date: Tue, 11 May 2021 17:33:52 +0800 Subject: mb/google/volteer/var/volteer: add specific wifi SAR for volta volta will use different wifi SAR from voxel. Using clamshell mode of fw config to decide to load volta wifi sar. BUG=b:184820057 TEST=build and verify wifi power as expect. Cq-Depend: chrome-internal:3824093 Signed-off-by: Sheng-Liang Pan Change-Id: I000aefca63346c70556688f232ca54360b3badef Reviewed-on: https://review.coreboot.org/c/coreboot/+/54051 Reviewed-by: Paul Fagerburg Reviewed-by: YH Lin Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) --- src/mainboard/google/volteer/Kconfig.name | 1 + src/mainboard/google/volteer/variants/voxel/Makefile.inc | 1 + src/mainboard/google/volteer/variants/voxel/variant.c | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 src/mainboard/google/volteer/variants/voxel/variant.c (limited to 'src') diff --git a/src/mainboard/google/volteer/Kconfig.name b/src/mainboard/google/volteer/Kconfig.name index f445b46f65..c483cc9d12 100644 --- a/src/mainboard/google/volteer/Kconfig.name +++ b/src/mainboard/google/volteer/Kconfig.name @@ -65,6 +65,7 @@ config BOARD_GOOGLE_VOLTEER2_TI50 config BOARD_GOOGLE_VOXEL bool "-> Voxel" select BOARD_GOOGLE_BASEBOARD_VOLTEER + select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR config BOARD_GOOGLE_ELEMI bool "-> Elemi" diff --git a/src/mainboard/google/volteer/variants/voxel/Makefile.inc b/src/mainboard/google/volteer/variants/voxel/Makefile.inc index 3488dc6cc2..310a99c0ed 100644 --- a/src/mainboard/google/volteer/variants/voxel/Makefile.inc +++ b/src/mainboard/google/volteer/variants/voxel/Makefile.inc @@ -6,3 +6,4 @@ romstage-y += memory.c ramstage-y += gpio.c ramstage-y += ramstage.c +ramstage-y += variant.c diff --git a/src/mainboard/google/volteer/variants/voxel/variant.c b/src/mainboard/google/volteer/variants/voxel/variant.c new file mode 100644 index 0000000000..70fa3a061a --- /dev/null +++ b/src/mainboard/google/volteer/variants/voxel/variant.c @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include + +const char *get_wifi_sar_cbfs_filename(void) +{ + const char *filename = NULL; + + if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_DISABLED))) + filename = "wifi_sar-volta.hex"; + + return filename; +} -- cgit v1.2.3