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 <ericr_lai@compal.corp-partner.google.com>
Change-Id: I086fa14a9f23e4a0fc0ef8085040219c932dbf17
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45640
Reviewed-by: Marco Chen <marcochen@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Ivy Jian <ivy_jian@compal.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Eric Lai 2020-09-23 12:33:17 +08:00 committed by Patrick Georgi
parent 0348bbe971
commit 58a706af96
1 changed files with 13 additions and 1 deletions

View File

@ -1,10 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h>
#include <ec/google/chromeec/ec.h>
#include <baseboard/variants.h>
#include <delay.h>
#include <ec/google/chromeec/ec.h>
#include <gpio.h>
#include <sar.h>
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;
}