From 245a194efc189369e34a28b995296597183eda6c Mon Sep 17 00:00:00 2001 From: Tyler Wang Date: Tue, 14 Sep 2021 11:39:23 +0800 Subject: 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 Change-Id: Iac15e958e61be6e3c136fb9be18b4695823ad1c9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57690 Tested-by: build bot (Jenkins) Reviewed-by: Paul Fagerburg Reviewed-by: Henry Sun Reviewed-by: David Wu Reviewed-by: Karthik Ramasubramanian --- src/mainboard/google/dedede/variants/magolor/variant.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainboard/google/dedede') 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; } -- cgit v1.2.3