mb/google/dedede/var/boten: Add custom Wifi SAR for botenflex

Add wifi sar for botenflex.
Due to fw-config cannot distinguish between boten and botenflex.
Using sku_id to decide to load botenflex custom wifi sar.
Detail reason for using sku_id in b:182433707.

BUG=b:182433707
TEST=build and test on boten/botenflex

Cq-Depend: chrome-internal:3686313
Change-Id: Id3f2529a7ad56ff306df98f77cda556656da52a5
Signed-off-by: Stanley Wu <stanley1.wu@lcfc.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51501
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
Stanley Wu 2021-03-15 22:48:25 +08:00 committed by Karthik Ramasubramanian
parent 79a72c4c4b
commit 51f3b32255
2 changed files with 16 additions and 0 deletions

View File

@ -3,3 +3,5 @@
ramstage-y += gpio.c
smm-y += variant.c
ramstage-y += variant.c

View File

@ -3,7 +3,11 @@
#include <acpi/acpi.h>
#include <baseboard/variants.h>
#include <delay.h>
#include <ec/google/chromeec/ec.h>
#include <gpio.h>
#include <sar.h>
#define SKU_ID_BOTENFLEX 0x90000
static void power_off_lte_module(void)
{
@ -21,3 +25,13 @@ void variant_smi_sleep(u8 slp_typ)
if (slp_typ == ACPI_S5)
power_off_lte_module();
}
const char *get_wifi_sar_cbfs_filename(void)
{
uint32_t sku_id = google_chromeec_get_board_sku();
if (sku_id == SKU_ID_BOTENFLEX)
return "wifi_sar-botenflex.hex";
return "wifi_sar-boten.hex";
}