summaryrefslogtreecommitdiff
path: root/src/mainboard/google/volteer/variants/voxel/variant.c
diff options
context:
space:
mode:
authorSheng-Liang Pan <sheng-liang.pan@quanta.corp-partner.google.com>2021-05-11 17:33:52 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-05-14 08:57:18 +0000
commit834bddfe03b2da4daca01fdcf6392fae73473375 (patch)
tree314f14c6f6468d66416b1a7759d0fefab3c070d4 /src/mainboard/google/volteer/variants/voxel/variant.c
parent2a4e1f4b470c73411a46290989c55165cd7968c9 (diff)
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 <sheng-liang.pan@quanta.corp-partner.google.com> Change-Id: I000aefca63346c70556688f232ca54360b3badef Reviewed-on: https://review.coreboot.org/c/coreboot/+/54051 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: YH Lin <yueherngl@google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/volteer/variants/voxel/variant.c')
-rw-r--r--src/mainboard/google/volteer/variants/voxel/variant.c14
1 files changed, 14 insertions, 0 deletions
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 <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;
+}