From b6392ef4d7ffe2dbef91c5f2c0d705c8d6acca17 Mon Sep 17 00:00:00 2001 From: Morris Hsu Date: Wed, 16 Aug 2023 14:18:40 +0800 Subject: mb/google/brask/var/constitution: Separate wifi sar table Separate constitution and intrepid wifi sar table in variant.c BUG=b:291859402 BRANCH=firmware-brya-14505.B TEST=emerge-constitution coreboot chromeos-bootimage Change-Id: I0f89b3d5f5252a2b55bad4d91ad4ab9ec7519c50 Signed-off-by: Morris Hsu Reviewed-on: https://review.coreboot.org/c/coreboot/+/77242 Reviewed-by: Kapil Porwal Reviewed-by: Martin L Roth Reviewed-by: Eric Lai Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/variants/constitution/variant.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/brya/variants/constitution/variant.c') diff --git a/src/mainboard/google/brya/variants/constitution/variant.c b/src/mainboard/google/brya/variants/constitution/variant.c index 6a79780f6e..289481c2ee 100644 --- a/src/mainboard/google/brya/variants/constitution/variant.c +++ b/src/mainboard/google/brya/variants/constitution/variant.c @@ -1,8 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include +#include #include const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar_0.hex"; + if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, ID_0))) { + return "wifi_sar_0.hex"; + } + return NULL; } -- cgit v1.2.3