From fdcbb25bf698142e9e6233f8b0b4327ec20c44b7 Mon Sep 17 00:00:00 2001 From: Jianeng Ceng Date: Thu, 11 Jan 2024 10:05:54 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79858 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Weimin Wu --- src/mainboard/google/brya/variants/anraggar/overridetree.cb | 5 +++++ src/mainboard/google/brya/variants/anraggar/variant.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/brya/variants/anraggar/overridetree.cb b/src/mainboard/google/brya/variants/anraggar/overridetree.cb index 8fe4316933..2c4cecc6b8 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 4f44c3831c..4221a5bf8e 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 #include const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar_2.hex"; + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI)); } -- cgit v1.2.3