diff options
author | Stanley Wu <stanley1.wu@lcfc.corp-partner.google.com> | 2021-12-27 17:44:01 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-01-07 15:30:25 +0000 |
commit | c921da3f0e369f2075ce0ccac03430e6568dc1fe (patch) | |
tree | 6cb4d55beecb50bc91fe063ef4d626e7ee02aae9 /src/mainboard/google/dedede/variants/boten | |
parent | d4c161ec55f3e003af753ef17ba2baff88670748 (diff) |
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>
Diffstat (limited to 'src/mainboard/google/dedede/variants/boten')
-rw-r--r-- | src/mainboard/google/dedede/variants/boten/variant.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/mainboard/google/dedede/variants/boten/variant.c b/src/mainboard/google/dedede/variants/boten/variant.c index 584ddb6d09..432c950190 100644 --- a/src/mainboard/google/dedede/variants/boten/variant.c +++ b/src/mainboard/google/dedede/variants/boten/variant.c @@ -7,7 +7,14 @@ #include <gpio.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) { @@ -30,8 +37,12 @@ const char *get_wifi_sar_cbfs_filename(void) { 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-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-boten.hex"; + return WIFI_SAR_CBFS_DEFAULT_FILENAME; } |