From 37d93dc4883b738ed54804d0e030b05cec8ab8d5 Mon Sep 17 00:00:00 2001 From: Joey Peng Date: Fri, 15 Apr 2022 14:27:20 +0800 Subject: 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 Cq-Depend: chrome-internal:4676926, chrome-internal:4686953 Signed-off-by: Joey Peng Change-Id: I9852553f5c91494db845d45a94e2566248538bba Reviewed-on: https://review.coreboot.org/c/coreboot/+/63644 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/mainboard/google/brya/variants/taeko/variant.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/brya') diff --git a/src/mainboard/google/brya/variants/taeko/variant.c b/src/mainboard/google/brya/variants/taeko/variant.c index 6a79780f6e..7d993a4129 100644 --- a/src/mainboard/google/brya/variants/taeko/variant.c +++ b/src/mainboard/google/brya/variants/taeko/variant.c @@ -1,8 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include #include const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar_0.hex"; + if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_0))) + return "wifi_sar_0.hex"; + else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_ID_1))) + return "wifi_sar_1.hex"; + return WIFI_SAR_CBFS_DEFAULT_FILENAME; } -- cgit v1.2.3