mb/google/dedede/var/magolor: Add custom Wifi SAR for magma
Add wifi sar for magma.
Due to fw-config cannot distinguish between magolor and magma.
Using sku_id to decide to load magma custom wifi sar.
BUG=b:192423859
TEST= emerge-dedede coreboot
Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com>
Change-Id: Iac15e958e61be6e3c136fb9be18b4695823ad1c9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57690
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: David Wu <david_wu@quanta.corp-partner.google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
diff --git a/src/mainboard/google/dedede/variants/magolor/variant.c b/src/mainboard/google/dedede/variants/magolor/variant.c
index ccea873..39a197a 100644
--- a/src/mainboard/google/dedede/variants/magolor/variant.c
+++ b/src/mainboard/google/dedede/variants/magolor/variant.c
@@ -12,6 +12,8 @@
MAGLIA_SKU_END = 0x8ffff,
MAGISTER_SKU_START = 0xc0000,
MAGISTER_SKU_END = 0xcffff,
+ MAGMA_SKU_START = 0xd0000,
+ MAGMA_SKU_END = 0xdffff,
};
const char *get_wifi_sar_cbfs_filename(void)
@@ -22,6 +24,8 @@
return "wifi_sar-magolor.hex";
if (sku_id >= MAGISTER_SKU_START && sku_id <= MAGISTER_SKU_END)
return "wifi_sar-magister.hex";
+ if (sku_id >= MAGMA_SKU_START && sku_id <= MAGMA_SKU_END)
+ return "wifi_sar-magma.hex";
return WIFI_SAR_CBFS_DEFAULT_FILENAME;
}