Felix Held submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Eric Lai: Looks good to me, approved Weimin Wu: Looks good to me, but someone else must approve
mb/google/nissa/var/anraggar: add FW config to apply the wifi sar

1.In contrast to the MediaTek Wi-Fi module, the Intel Wi-Fi module needs
to load a SAR table.

2.Describe the FW_CONFIG probe for the settings.
- WIFI_6 for MTK Wi-Fi module MT7921L
- WIFI_6E for Intel Wi-Fi module AX211NGW

BUG=b:315418153
TEST=emerge-nissa coreboot

Change-Id: I37e8adc3de02707b2df541cc5e6f88083554eeb4
Signed-off-by: Jianeng Ceng <cengjianeng@huaqin.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79858
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <ericllai@google.com>
Reviewed-by: Weimin Wu <wuweimin@huaqin.corp-partner.google.com>
---
M src/mainboard/google/brya/variants/anraggar/overridetree.cb
M src/mainboard/google/brya/variants/anraggar/variant.c
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/google/brya/variants/anraggar/overridetree.cb b/src/mainboard/google/brya/variants/anraggar/overridetree.cb
index 8fe4316..2c4cecc 100644
--- a/src/mainboard/google/brya/variants/anraggar/overridetree.cb
+++ b/src/mainboard/google/brya/variants/anraggar/overridetree.cb
@@ -1,4 +1,9 @@
fw_config
+ field WIFI 10 11
+ option UNKNOWN 0
+ option WIFI_6 1
+ option WIFI_6E 2
+ end
field CAMERA 12 13
option UF_720P_WF 0
option UF_1080P 1
diff --git a/src/mainboard/google/brya/variants/anraggar/variant.c b/src/mainboard/google/brya/variants/anraggar/variant.c
index 4f44c38..4221a5b 100644
--- a/src/mainboard/google/brya/variants/anraggar/variant.c
+++ b/src/mainboard/google/brya/variants/anraggar/variant.c
@@ -1,8 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */

+#include <fw_config.h>
#include <sar.h>

const char *get_wifi_sar_cbfs_filename(void)
{
- return "wifi_sar_2.hex";
+ return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI));
}

To view, visit change 79858. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I37e8adc3de02707b2df541cc5e6f88083554eeb4
Gerrit-Change-Number: 79858
Gerrit-PatchSet: 6
Gerrit-Owner: Jianeng Ceng <cengjianeng@huaqin.corp-partner.google.com>
Gerrit-Reviewer: Eric Lai <ericllai@google.com>
Gerrit-Reviewer: Felix Held <felix-coreboot@felixheld.de>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro@chromium.org>
Gerrit-Reviewer: Subrata Banik <subratabanik@google.com>
Gerrit-Reviewer: Weimin Wu <wuweimin@huaqin.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Dolan Liu <liuyong5@huaqin.corp-partner.google.com>
Gerrit-CC: Ginger Zhang <zhangqingchun@huaqin.corp-partner.google.com>
Gerrit-MessageType: merged