mb/google/dedede/var/boten: Add Wifi SAR for bookem

Add new sku id apply for bookem wifi sar table.

BUG=b:211705077
TEST=emerge-dedede coreboot-private-files-baseboard-dedede coreboot chromeos-bootimage

Signed-off-by: Stanley Wu <stanley1.wu@lcfc.corp-partner.google.com>
Change-Id: I1e5bac662fb44cf631ae1453068dec898b6e2607
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60399
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shou-Chieh Hsu <shouchieh@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
Stanley Wu 2021-12-27 17:44:01 +08:00 committed by Felix Held
parent d4c161ec55
commit c921da3f0e
1 changed files with 14 additions and 3 deletions

View File

@ -7,7 +7,14 @@
#include <gpio.h> #include <gpio.h>
#include <sar.h> #include <sar.h>
#define SKU_ID_BOTENFLEX 0x90000 enum {
SKU_ID_BOTEN_MIN = 0x60000,
SKU_ID_BOTEN_MAX = 0x6ffff,
SKU_ID_BOTENFLEX_MIN = 0x90000,
SKU_ID_BOTENFLEX_MAX = 0x9ffff,
SKU_ID_BOOKEM_MIN = 0x290000,
SKU_ID_BOOKEM_MAX = 0x29ffff,
};
static void power_off_lte_module(void) static void power_off_lte_module(void)
{ {
@ -30,8 +37,12 @@ const char *get_wifi_sar_cbfs_filename(void)
{ {
uint32_t sku_id = google_chromeec_get_board_sku(); uint32_t sku_id = google_chromeec_get_board_sku();
if (sku_id >= SKU_ID_BOTENFLEX) if (sku_id >= SKU_ID_BOTEN_MIN && sku_id <= SKU_ID_BOTEN_MAX)
return "wifi_sar-botenflex.hex";
return "wifi_sar-boten.hex"; return "wifi_sar-boten.hex";
if (sku_id >= SKU_ID_BOTENFLEX_MIN && sku_id <= SKU_ID_BOTENFLEX_MAX)
return "wifi_sar-botenflex.hex";
if (sku_id >= SKU_ID_BOOKEM_MIN && sku_id <= SKU_ID_BOOKEM_MAX)
return "wifi_sar-bookem.hex";
return WIFI_SAR_CBFS_DEFAULT_FILENAME;
} }