From 4c7ee500721f15130f7cb5c4355740dd7375b705 Mon Sep 17 00:00:00 2001 From: Shon Wang Date: Wed, 27 Jul 2022 13:14:32 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66176 Reviewed-by: Ivan Chen Tested-by: build bot (Jenkins) Reviewed-by: Karthik Ramasubramanian --- src/mainboard/google/dedede/variants/drawcia/variant.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/mainboard/google/dedede/variants/drawcia') 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 #include #include +#include + +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; } -- cgit v1.2.3