Felix Held has submitted this change. ( 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
Cq-Depend: chrome-internal:4676926, chrome-internal:4686953 Signed-off-by: Joey Peng joey.peng@lcfc.corp-partner.google.com Change-Id: I9852553f5c91494db845d45a94e2566248538bba Reviewed-on: https://review.coreboot.org/c/coreboot/+/63644 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Eric Lai eric_lai@quanta.corp-partner.google.com --- M src/mainboard/google/brya/variants/taeko/variant.c 1 file changed, 6 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Eric Lai: Looks good to me, approved
diff --git a/src/mainboard/google/brya/variants/taeko/variant.c b/src/mainboard/google/brya/variants/taeko/variant.c index 6a79780..7d993a4 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 <fw_config.h> #include <sar.h>
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; }