summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/variants/craask
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/brya/variants/craask')
-rw-r--r--src/mainboard/google/brya/variants/craask/Makefile.inc1
-rw-r--r--src/mainboard/google/brya/variants/craask/overridetree.cb4
-rw-r--r--src/mainboard/google/brya/variants/craask/variant.c19
3 files changed, 24 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/craask/Makefile.inc b/src/mainboard/google/brya/variants/craask/Makefile.inc
index 8ae0e3b61c..86ba20d3c3 100644
--- a/src/mainboard/google/brya/variants/craask/Makefile.inc
+++ b/src/mainboard/google/brya/variants/craask/Makefile.inc
@@ -4,4 +4,5 @@ bootblock-y += gpio.c
romstage-y += gpio.c
ramstage-$(CONFIG_FW_CONFIG) += fw_config.c
+ramstage-$(CONFIG_FW_CONFIG) += variant.c
ramstage-y += gpio.c
diff --git a/src/mainboard/google/brya/variants/craask/overridetree.cb b/src/mainboard/google/brya/variants/craask/overridetree.cb
index ebf8c30d70..fa79d8b569 100644
--- a/src/mainboard/google/brya/variants/craask/overridetree.cb
+++ b/src/mainboard/google/brya/variants/craask/overridetree.cb
@@ -20,6 +20,10 @@ fw_config
field AMP 6 7
option AMP_MX98360A 0
end
+ field WIFI_SAR_ID 13 15
+ option ID_0 0
+ option UNUSED 7
+ end
field CODEC 32 33
option CODEC_ALC5682I_VS 0
option CODEC_NAU8825 1
diff --git a/src/mainboard/google/brya/variants/craask/variant.c b/src/mainboard/google/brya/variants/craask/variant.c
new file mode 100644
index 0000000000..689a59a8a6
--- /dev/null
+++ b/src/mainboard/google/brya/variants/craask/variant.c
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <console/console.h>
+#include <fw_config.h>
+#include <sar.h>
+
+const char *get_wifi_sar_cbfs_filename(void)
+{
+ if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, ID_0))) {
+ printk(BIOS_INFO, "Use wifi_sar_0.hex.\n");
+ return "wifi_sar_0.hex";
+ }
+
+ else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, UNUSED))) {
+ printk(BIOS_INFO, "Wi-Fi SAR not used, return NULL!\n");
+ }
+
+ return NULL;
+}