summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/brya/variants/constitution/overridetree.cb7
-rw-r--r--src/mainboard/google/brya/variants/constitution/variant.c7
2 files changed, 13 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/constitution/overridetree.cb b/src/mainboard/google/brya/variants/constitution/overridetree.cb
index da540c36ab..c6083f1387 100644
--- a/src/mainboard/google/brya/variants/constitution/overridetree.cb
+++ b/src/mainboard/google/brya/variants/constitution/overridetree.cb
@@ -1,3 +1,10 @@
+fw_config
+ field WIFI_SAR_ID 30 31
+ option ID_0 0
+ option UNUSED 3
+ end
+end
+
chip soc/intel/alderlake
register "domain_vr_config[VR_DOMAIN_IA]" = "{
.enable_fast_vmode = 1,
diff --git a/src/mainboard/google/brya/variants/constitution/variant.c b/src/mainboard/google/brya/variants/constitution/variant.c
index 6a79780f6e..289481c2ee 100644
--- a/src/mainboard/google/brya/variants/constitution/variant.c
+++ b/src/mainboard/google/brya/variants/constitution/variant.c
@@ -1,8 +1,13 @@
/* 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)
{
- return "wifi_sar_0.hex";
+ if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, ID_0))) {
+ return "wifi_sar_0.hex";
+ }
+ return NULL;
}