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>
This commit is contained in:
Shon Wang 2022-07-27 13:14:32 +08:00 committed by Karthik Ramasubramanian
parent ef29befb09
commit 4c7ee50072
1 changed files with 15 additions and 2 deletions

View File

@ -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;
}