From 9048043302e7c694240806792fa929f6e0820419 Mon Sep 17 00:00:00 2001 From: Tyler Wang Date: Fri, 28 Jan 2022 09:46:51 +0800 Subject: [PATCH] mb/google/dedede/var/magolor: Add custom Wifi SAR for magneto Add wifi sar for magneto. Due to fw-config cannot distinguish between magolor and magneto. Using sku_id to decide to load magneto custom wifi sar. BUG=b:208261420 TEST= emerge-dedede coreboot Signed-off-by: Tyler Wang Change-Id: I77f141372ba8e7b8f5849b00e115ad8bb1e7ca00 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61438 Tested-by: build bot (Jenkins) Reviewed-by: Shou-Chieh Hsu Reviewed-by: Henry Sun Reviewed-by: Karthik Ramasubramanian Reviewed-by: David Wu --- src/mainboard/google/dedede/variants/magolor/variant.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainboard/google/dedede/variants/magolor/variant.c b/src/mainboard/google/dedede/variants/magolor/variant.c index 39a197a678..33c428c39b 100644 --- a/src/mainboard/google/dedede/variants/magolor/variant.c +++ b/src/mainboard/google/dedede/variants/magolor/variant.c @@ -14,6 +14,8 @@ enum { MAGISTER_SKU_END = 0xcffff, MAGMA_SKU_START = 0xd0000, MAGMA_SKU_END = 0xdffff, + MAGNETO_SKU_START = 0x110000, + MAGNETO_SKU_END = 0x11ffff, }; const char *get_wifi_sar_cbfs_filename(void) @@ -26,6 +28,8 @@ const char *get_wifi_sar_cbfs_filename(void) return "wifi_sar-magister.hex"; if (sku_id >= MAGMA_SKU_START && sku_id <= MAGMA_SKU_END) return "wifi_sar-magma.hex"; + if (sku_id >= MAGNETO_SKU_START && sku_id <= MAGNETO_SKU_END) + return "wifi_sar-magneto.hex"; return WIFI_SAR_CBFS_DEFAULT_FILENAME; }