From 51f1822421cb5433f714a478e20ffa06781ac2c9 Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Mon, 19 Dec 2022 17:00:22 +0800 Subject: 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 Change-Id: Ifde714c19f7ab9fe08f870060037db190a80dbd0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71084 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Subrata Banik Reviewed-by: Ivy Jian --- src/mainboard/google/brya/variants/pujjo/variant.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/brya/variants/pujjo/variant.c b/src/mainboard/google/brya/variants/pujjo/variant.c index 75eb0c24a0..46a167a766 100644 --- a/src/mainboard/google/brya/variants/pujjo/variant.c +++ b/src/mainboard/google/brya/variants/pujjo/variant.c @@ -35,21 +35,5 @@ void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) const char *get_wifi_sar_cbfs_filename(void) { - if (fw_config_probe(FW_CONFIG(WIFI_SAR_ID, WIFI_SAR_TABLE_0))) { - 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; + return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_SAR_ID)); } -- cgit v1.2.3