From 58a706af96f1285ec2501dc6da2776645b88e082 Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Wed, 23 Sep 2020 12:33:17 +0800 Subject: mb/google/octopus/var/fleex: Use Wifi SAR table for non-LTE sku only Use Wifi SAR table for non-LTE sku only. BUG=b:169115341 BRANCH=octopus TEST=Check no SAR table can be loaded with sku id 4. Signed-off-by: Eric Lai Change-Id: I086fa14a9f23e4a0fc0ef8085040219c932dbf17 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45640 Reviewed-by: Marco Chen Reviewed-by: Angel Pons Reviewed-by: Ivy Jian Tested-by: build bot (Jenkins) --- src/mainboard/google/octopus/variants/fleex/variant.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/octopus') diff --git a/src/mainboard/google/octopus/variants/fleex/variant.c b/src/mainboard/google/octopus/variants/fleex/variant.c index 52f822a6c4..1b0784c030 100644 --- a/src/mainboard/google/octopus/variants/fleex/variant.c +++ b/src/mainboard/google/octopus/variants/fleex/variant.c @@ -1,10 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include #include +#include #include +#include void variant_smi_sleep(u8 slp_typ) { @@ -15,3 +16,14 @@ void variant_smi_sleep(u8 slp_typ) power_off_lte_module(); } + +const char *get_wifi_sar_cbfs_filename(void) +{ + const char *filename = NULL; + uint32_t sku_id = google_chromeec_get_board_sku(); + + if (sku_id != 4) + filename = "wifi_sar-fleex.hex"; + + return filename; +} -- cgit v1.2.3