Stanley Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/51501 )
Change subject: mb/google/dedede/var/boten: Add custom Wifi SAR for botenflex ......................................................................
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.
BUG=b:182433707 TEST=build and test no boten/botenflex
Change-Id: Id3f2529a7ad56ff306df98f77cda556656da52a5 Signed-off-by: Stanley Wu stanley1.wu@lcfc.corp-partner.google.com --- M src/mainboard/google/dedede/variants/boten/variant.c 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/01/51501/1
diff --git a/src/mainboard/google/dedede/variants/boten/variant.c b/src/mainboard/google/dedede/variants/boten/variant.c index 2540fc7..1a7f675 100644 --- a/src/mainboard/google/dedede/variants/boten/variant.c +++ b/src/mainboard/google/dedede/variants/boten/variant.c @@ -4,6 +4,8 @@ #include <baseboard/variants.h> #include <delay.h> #include <gpio.h> +#include <ec/google/chromeec/ec.h> +#include <sar.h>
static void power_off_lte_module(void) { @@ -21,3 +23,14 @@ if (slp_typ == ACPI_S5) 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 == 0x90000) + filename = "wifi_sar-botenflex.hex"; + return filename; +}