diff options
author | Shon Wang <shon.wang@quanta.corp-partner.google.com> | 2022-07-27 13:14:32 +0800 |
---|---|---|
committer | Karthik Ramasubramanian <kramasub@google.com> | 2022-08-03 14:00:27 +0000 |
commit | 4c7ee500721f15130f7cb5c4355740dd7375b705 (patch) | |
tree | 1cdfd14469c310ee5e38b41e42a4cb952431f482 /src/mainboard/google/dedede/variants/drawcia/variant.c | |
parent | ef29befb09278eb4ed74d97a3808d21d0a691fbb (diff) |
mb/google/dedede/var/drawcia: Add Wifi SAR for oscino
Add wifi sar for oscino
BUG=b:240373077
BRANCH=dedede
TEST=enable CHROMEOS_WIFI_SAR in config of coreboot,
emerge-dedede
coreboot-private-files-baseboard-dedede
coreboot
chromeos-bootimage.
Cq-Depend: chrome-internal:4893022
Change-Id: I44cbe8ee08d6136ed116623046893c9749795e50
Signed-off-by: Shon Wang <shon.wang@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66176
Reviewed-by: Ivan Chen <yulunchen@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/dedede/variants/drawcia/variant.c')
-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; } |