mb/google/nissa/var/pujjo: Use get_wifi_sar_fw_config_filename

Use get_wifi_sar_fw_config_filename to remove the duplicate code.

Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Change-Id: Ifde714c19f7ab9fe08f870060037db190a80dbd0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71084
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com>
This commit is contained in:
Eric Lai 2022-12-19 17:00:22 +08:00
parent 8cb2f185d1
commit 51f1822421
1 changed files with 1 additions and 17 deletions

View File

@ -35,21 +35,5 @@ void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
const char *get_wifi_sar_cbfs_filename(void) const char *get_wifi_sar_cbfs_filename(void)
{ {
if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_TABLE_0))) { return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID));
printk(BIOS_INFO, "Use wifi_sar_0.hex.\n");
return "wifi_sar_0.hex";
}
else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_TABLE_1))) {
printk(BIOS_INFO, "Use wifi_sar_1.hex.\n");
return "wifi_sar_1.hex";
}
else if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_TABLE_2))) {
printk(BIOS_INFO, "Use wifi_sar_2.hex.\n");
return "wifi_sar_2.hex";
}
printk(BIOS_INFO, "Intel Wi-Fi SAR not used, return NULL!\n");
return NULL;
} }