Sheng-Liang Pan has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/54051 )
Change subject: mb/google/volteer/var/volteer: add specific wifi SAR for volta ......................................................................
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.
Signed-off-by: Sheng-Liang Pan sheng-liang.pan@quanta.corp-partner.google.com Change-Id: I000aefca63346c70556688f232ca54360b3badef --- M src/mainboard/google/volteer/Kconfig.name M src/mainboard/google/volteer/variants/voxel/Makefile.inc A src/mainboard/google/volteer/variants/voxel/variant.c 3 files changed, 16 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/54051/1
diff --git a/src/mainboard/google/volteer/Kconfig.name b/src/mainboard/google/volteer/Kconfig.name index 8777994..c666f30 100644 --- a/src/mainboard/google/volteer/Kconfig.name +++ b/src/mainboard/google/volteer/Kconfig.name @@ -75,6 +75,7 @@ config BOARD_GOOGLE_VOXEL bool "-> Voxel" select BOARD_GOOGLE_BASEBOARD_VOLTEER + select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR select SOC_INTEL_CSE_LITE_SKU
config BOARD_GOOGLE_BOLDAR diff --git a/src/mainboard/google/volteer/variants/voxel/Makefile.inc b/src/mainboard/google/volteer/variants/voxel/Makefile.inc index b0bfc56..e34a40b 100644 --- a/src/mainboard/google/volteer/variants/voxel/Makefile.inc +++ b/src/mainboard/google/volteer/variants/voxel/Makefile.inc @@ -5,3 +5,4 @@ romstage-y += memory.c
ramstage-y += gpio.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 0000000..70fa3a0 --- /dev/null +++ b/src/mainboard/google/volteer/variants/voxel/variant.c @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <fw_config.h> +#include <sar.h> + +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; +}