summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorjamie_chen <jamie_chen@compal.corp-partner.google.com>2024-01-24 11:46:21 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-01-27 14:15:50 +0000
commit6aa0da7b7398ea050f571ada3848b74e424bbbb2 (patch)
tree91d5b21f88c981cc59a42a1151bdef0d59ebf8b9 /src/mainboard/google
parent2820d2a327b0eef6bce16119cb683f4db75107a0 (diff)
mb/google/brya/var/omniknight: Add WIFI SAR table
Add WIFI SAR table for omniknight. BUG=b:320172979 TEST=FW_NAME=omnigul emerge-brya coreboot Change-Id: I70e79577612b3d5c4dc0f92211f87cbea0532d5d Signed-off-by: jamie_chen <jamie_chen@compal.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80152 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com> Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/brya/variants/omnigul/overridetree.cb4
-rw-r--r--src/mainboard/google/brya/variants/omnigul/variant.c8
2 files changed, 11 insertions, 1 deletions
diff --git a/src/mainboard/google/brya/variants/omnigul/overridetree.cb b/src/mainboard/google/brya/variants/omnigul/overridetree.cb
index 4a3d368163..1801672a1e 100644
--- a/src/mainboard/google/brya/variants/omnigul/overridetree.cb
+++ b/src/mainboard/google/brya/variants/omnigul/overridetree.cb
@@ -4,6 +4,10 @@ fw_config
option STORAGE_UFS 1
option STORAGE_NVME 2
end
+ field WIFI_SAR_TABLE 5
+ option OMNIGUL_WIFI_SAR_0 0
+ option OMNIKNIGHT_WIFI_SAR_1 1
+ end
field FINGERPRINT 9
option DISABLE_FP 0
option ENABLE_FP 1
diff --git a/src/mainboard/google/brya/variants/omnigul/variant.c b/src/mainboard/google/brya/variants/omnigul/variant.c
index 6a79780f6e..67cef1f733 100644
--- a/src/mainboard/google/brya/variants/omnigul/variant.c
+++ b/src/mainboard/google/brya/variants/omnigul/variant.c
@@ -1,8 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <sar.h>
+#include <fw_config.h>
const char *get_wifi_sar_cbfs_filename(void)
{
- return "wifi_sar_0.hex";
+ if (fw_config_probe(FW_CONFIG(WIFI_SAR_TABLE, OMNIGUL_WIFI_SAR_0)))
+ return "wifi_sar_0.hex";
+ if (fw_config_probe(FW_CONFIG(WIFI_SAR_TABLE, OMNIKNIGHT_WIFI_SAR_1)))
+ return "wifi_sar_1.hex";
+
+ return NULL;
}