diff options
Diffstat (limited to 'src/mainboard/google/dedede')
-rw-r--r-- | src/mainboard/google/dedede/variants/drawcia/variant.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/mainboard/google/dedede/variants/drawcia/variant.c b/src/mainboard/google/dedede/variants/drawcia/variant.c index 35874579bc..9077baec13 100644 --- a/src/mainboard/google/dedede/variants/drawcia/variant.c +++ b/src/mainboard/google/dedede/variants/drawcia/variant.c @@ -7,11 +7,24 @@ #include <fw_config.h> #include <gpio.h> #include <sar.h> +#include <ec/google/chromeec/ec.h> + +enum { + OSCINO_SKU_START = 0x40004, + OSCINO_SKU_END = 0x40005, +}; const char *get_wifi_sar_cbfs_filename(void) { - if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED))) - return "wifi_sar-drawcia.hex"; + uint32_t sku_id = google_chromeec_get_board_sku(); + + if (fw_config_probe(FW_CONFIG(TABLETMODE, TABLETMODE_ENABLED))) { + + if (sku_id >= OSCINO_SKU_START && sku_id <= OSCINO_SKU_END) + return "wifi_sar-oscino.hex"; + else + return "wifi_sar-drawcia.hex"; + } return WIFI_SAR_CBFS_DEFAULT_FILENAME; } |