summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorIan Feng <ian_feng@compal.corp-partner.google.com>2021-08-13 15:34:02 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-08-31 15:56:22 +0000
commitc33dbc3a40842a0f77c85ee24336d0c0206d9332 (patch)
tree359ac627dfe93ebea4a925928506cb514d805cda /src/mainboard
parent50528281fb1a2e501cf074fa4503df4845d979ab (diff)
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 <ian_feng@compal.corp-partner.google.com> Change-Id: Ie94c2a07ad43fe1cb426e543dd97ed0434c42f2d Reviewed-on: https://review.coreboot.org/c/coreboot/+/56968 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/dedede/variants/cret/variant.c7
1 files changed, 6 insertions, 1 deletions
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)