summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/volteer/variants/lindar/Makefile.inc2
-rw-r--r--src/mainboard/google/volteer/variants/lindar/variant.c16
2 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/google/volteer/variants/lindar/Makefile.inc b/src/mainboard/google/volteer/variants/lindar/Makefile.inc
index b0bfc567ff..22bcbd7727 100644
--- a/src/mainboard/google/volteer/variants/lindar/Makefile.inc
+++ b/src/mainboard/google/volteer/variants/lindar/Makefile.inc
@@ -5,3 +5,5 @@ bootblock-y += gpio.c
romstage-y += memory.c
ramstage-y += gpio.c
+
+ramstage-$(CONFIG_FW_CONFIG) += variant.c
diff --git a/src/mainboard/google/volteer/variants/lindar/variant.c b/src/mainboard/google/volteer/variants/lindar/variant.c
new file mode 100644
index 0000000000..b8d7165be3
--- /dev/null
+++ b/src/mainboard/google/volteer/variants/lindar/variant.c
@@ -0,0 +1,16 @@
+/* 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(WIFI_SAR_ID, WIFI_SAR_ID_0)))
+ filename = "wifi_sar_0.hex";
+ else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_1)))
+ filename = "wifi_sar_1.hex";
+
+ return filename;
+}