summaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede/variants
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/dedede/variants')
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/Makefile.inc3
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/variant.c17
2 files changed, 20 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/drawcia/Makefile.inc b/src/mainboard/google/dedede/variants/drawcia/Makefile.inc
new file mode 100644
index 0000000000..24c75d1d9a
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/drawcia/Makefile.inc
@@ -0,0 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-or-later
+
+ramstage-$(CONFIG_FW_CONFIG) += variant.c
diff --git a/src/mainboard/google/dedede/variants/drawcia/variant.c b/src/mainboard/google/dedede/variants/drawcia/variant.c
new file mode 100644
index 0000000000..5c969a6576
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/drawcia/variant.c
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <bootstate.h>
+#include <console/console.h>
+#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_ENABLED)))
+ filename = "wifi_sar-drawcia.hex";
+
+ printk(BIOS_INFO, "SAR file name: %s\n", filename);
+ return filename;
+}