summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/dedede/Kconfig.name1
-rw-r--r--src/mainboard/google/dedede/variants/magolor/Makefile.inc3
-rw-r--r--src/mainboard/google/dedede/variants/magolor/variant.c14
3 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name
index 6aeb9edec1..334865529b 100644
--- a/src/mainboard/google/dedede/Kconfig.name
+++ b/src/mainboard/google/dedede/Kconfig.name
@@ -66,6 +66,7 @@ config BOARD_GOOGLE_MAGOLOR
select BOARD_GOOGLE_BASEBOARD_DEDEDE
select BASEBOARD_DEDEDE_LAPTOP
select DRIVERS_INTEL_MIPI_CAMERA
+ select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
select SOC_INTEL_COMMON_BLOCK_IPU
config BOARD_GOOGLE_METAKNIGHT
diff --git a/src/mainboard/google/dedede/variants/magolor/Makefile.inc b/src/mainboard/google/dedede/variants/magolor/Makefile.inc
new file mode 100644
index 0000000000..24c75d1d9a
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/magolor/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/magolor/variant.c b/src/mainboard/google/dedede/variants/magolor/variant.c
new file mode 100644
index 0000000000..e3b9599a91
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/magolor/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_ENABLED)))
+ filename = "wifi_sar-magolor.hex";
+
+ return filename;
+}