From 19fc004e9a107d841696626721ed89e8943a6920 Mon Sep 17 00:00:00 2001 From: Mark Hsieh Date: Wed, 28 Jun 2023 16:36:28 +0800 Subject: mb/google/nissa/var/joxer: support for different WiFi SAR tables Set the WIFI_SAR_ID field in FW_CONFIG to selcet the correct SAR table. BUG=b:285477026 TEST=emerge-nissa coreboot and check the SAR value Signed-off-by: Mark Hsieh Change-Id: Ibea62c77ecad9b2c475452b706779e4cfc6b06d4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76144 Reviewed-by: Eric Lai Reviewed-by: Derek Huang Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/variants/joxer/overridetree.cb | 7 +++++++ src/mainboard/google/brya/variants/joxer/variant.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/brya/variants/joxer/overridetree.cb b/src/mainboard/google/brya/variants/joxer/overridetree.cb index dbfeb6d208..8ec3b21047 100644 --- a/src/mainboard/google/brya/variants/joxer/overridetree.cb +++ b/src/mainboard/google/brya/variants/joxer/overridetree.cb @@ -1,3 +1,10 @@ +fw_config + field WIFI_SAR_ID 6 6 + option WIFI_GFP2_SAR_ID_0 0 + option WIFI_GFP2_SAR_ID_1 1 + end +end + chip soc/intel/alderlake register "sagv" = "SaGv_Enabled" diff --git a/src/mainboard/google/brya/variants/joxer/variant.c b/src/mainboard/google/brya/variants/joxer/variant.c index 7db0617d8a..3c23dd1ab6 100644 --- a/src/mainboard/google/brya/variants/joxer/variant.c +++ b/src/mainboard/google/brya/variants/joxer/variant.c @@ -9,7 +9,7 @@ const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar_0.hex"; + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID)); } void variant_devtree_update(void) -- cgit v1.2.3