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 <tyler.wang@quanta.corp-partner.google.com>
Change-Id: I77f141372ba8e7b8f5849b00e115ad8bb1e7ca00
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61438
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shou-Chieh Hsu <shouchieh@google.com>
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: David Wu <david_wu@quanta.corp-partner.google.com>
This commit is contained in:
Tyler Wang 2022-01-28 09:46:51 +08:00 committed by Felix Held
parent a3b79c5063
commit 9048043302
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,8 @@ enum {
MAGISTER_SKU_END = 0xcffff, MAGISTER_SKU_END = 0xcffff,
MAGMA_SKU_START = 0xd0000, MAGMA_SKU_START = 0xd0000,
MAGMA_SKU_END = 0xdffff, MAGMA_SKU_END = 0xdffff,
MAGNETO_SKU_START = 0x110000,
MAGNETO_SKU_END = 0x11ffff,
}; };
const char *get_wifi_sar_cbfs_filename(void) 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"; return "wifi_sar-magister.hex";
if (sku_id >= MAGMA_SKU_START && sku_id <= MAGMA_SKU_END) if (sku_id >= MAGMA_SKU_START && sku_id <= MAGMA_SKU_END)
return "wifi_sar-magma.hex"; 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; return WIFI_SAR_CBFS_DEFAULT_FILENAME;
} }