Jianeng Ceng has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79858?usp=email )
Change subject: mb/google/nissa/var/anraggar: add FW config to apply the wifi sar ......................................................................
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
BRANCH=firmware-nissa-15217.B BUG=b:315418153 TEST=emerge-nissa coreboot
Change-Id: I37e8adc3de02707b2df541cc5e6f88083554eeb4 Signed-off-by: cengjianeng cengjianeng@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, 17 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/79858/1
diff --git a/src/mainboard/google/brya/variants/anraggar/overridetree.cb b/src/mainboard/google/brya/variants/anraggar/overridetree.cb index a95c763..1685e64 100644 --- a/src/mainboard/google/brya/variants/anraggar/overridetree.cb +++ b/src/mainboard/google/brya/variants/anraggar/overridetree.cb @@ -1,3 +1,11 @@ +fw_config + field WIFI 10 11 + option UNKNOWN 0 + option WIFI_6 1 + option WIFI_6E 2 + end +end + chip soc/intel/alderlake register "sagv" = "SaGv_Enabled"
diff --git a/src/mainboard/google/brya/variants/anraggar/variant.c b/src/mainboard/google/brya/variants/anraggar/variant.c index 4f44c38..5924085 100644 --- a/src/mainboard/google/brya/variants/anraggar/variant.c +++ b/src/mainboard/google/brya/variants/anraggar/variant.c @@ -1,8 +1,16 @@ /* 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_2.hex"; + if (fw_config_probe(FW_CONFIG(WIFI, WIFI_6E))) { + printk(BIOS_INFO, "Use wifi_sar_2.hex for Intel WiFi module AX211.\n"); + return "wifi_sar_2.hex"; + } + + printk(BIOS_INFO, "Intel WiFi module AX211 not used, return NULL!\n"); + return NULL; }