Joey Peng has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63644 )
Change subject: mb/google/brya/var/taeko: Add WIFI SAR support for tarlo ......................................................................
mb/google/brya/var/taeko: Add WIFI SAR support for tarlo
Taeko/Tarlo uses the WIFI_SAR_ID field in FW_CONFIG to pick which SAR table to load.
BUG=b:226684990 TEST=emerge-brya coreboot
Signed-off-by: Joey Peng joey.peng@lcfc.corp-partner.google.com Change-Id: I9852553f5c91494db845d45a94e2566248538bba --- M src/mainboard/google/brya/variants/taeko/variant.c 1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/44/63644/1
diff --git a/src/mainboard/google/brya/variants/taeko/variant.c b/src/mainboard/google/brya/variants/taeko/variant.c index 6a79780..54fe242 100644 --- a/src/mainboard/google/brya/variants/taeko/variant.c +++ b/src/mainboard/google/brya/variants/taeko/variant.c @@ -1,8 +1,15 @@ /* 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_0.hex"; + const char *filename = NULL; + + if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_0))) + filename = "wifi_sar_0.hex"; + else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_1))) + filename = "wifi_sar_1.hex"; + return filename; }