From c33dbc3a40842a0f77c85ee24336d0c0206d9332 Mon Sep 17 00:00:00 2001 From: Ian Feng Date: Fri, 13 Aug 2021 15:34:02 +0800 Subject: [PATCH] mb/google/dedede/var/cret: Modify Wifi SAR condition Using tablet mode of fw config to decide to load custom wifi sar or not. BUG=b:194163604 TEST=build and test on cret and cret360 Signed-off-by: Ian Feng Change-Id: Ie94c2a07ad43fe1cb426e543dd97ed0434c42f2d Reviewed-on: https://review.coreboot.org/c/coreboot/+/56968 Tested-by: build bot (Jenkins) Reviewed-by: Henry Sun Reviewed-by: Karthik Ramasubramanian --- src/mainboard/google/dedede/variants/cret/variant.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/dedede/variants/cret/variant.c b/src/mainboard/google/dedede/variants/cret/variant.c index d9fb28ce2b..bd4bce1561 100644 --- a/src/mainboard/google/dedede/variants/cret/variant.c +++ b/src/mainboard/google/dedede/variants/cret/variant.c @@ -9,7 +9,12 @@ const char *get_wifi_sar_cbfs_filename(void) { - return "wifi_sar-cret.hex"; + const char *filename = NULL; + + if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED))) + filename = "wifi_sar-cret.hex"; + + return filename; } static void power_off_lte_module(void)