summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Wang <tyler.wang@quanta.corp-partner.google.com>2021-09-14 11:39:23 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-09-28 19:05:15 +0000
commit245a194efc189369e34a28b995296597183eda6c (patch)
treed0a6914f1793260b69aed987945a1901142e0030 /src
parent96f26d15ee740318b43d196b618a756edad71cdd (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/dedede/variants/magolor/variant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/magolor/variant.c b/src/mainboard/google/dedede/variants/magolor/variant.c
index ccea87385e..39a197a678 100644
--- a/src/mainboard/google/dedede/variants/magolor/variant.c
+++ b/src/mainboard/google/dedede/variants/magolor/variant.c
@@ -12,6 +12,8 @@ enum {
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 @@ const char *get_wifi_sar_cbfs_filename(void)
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;
}