Stanley Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60399 )
Change subject: mb/google/dedede/var/boten: Add Wifi SAR for bookem ......................................................................
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 --- M src/mainboard/google/dedede/variants/boten/variant.c 1 file changed, 14 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/60399/1
diff --git a/src/mainboard/google/dedede/variants/boten/variant.c b/src/mainboard/google/dedede/variants/boten/variant.c index 584ddb6d..432c950 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 @@ { 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; }