summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lai <eric_lai@quanta.corp-partner.google.com>2022-12-19 17:00:22 +0800
committerEric Lai <eric_lai@quanta.corp-partner.google.com>2022-12-24 05:50:25 +0000
commit51f1822421cb5433f714a478e20ffa06781ac2c9 (patch)
tree5ca5daf5da3938c8723c083bc073e6b4a6b47d93
parent8cb2f185d11ba1ebcb86bd4add5ebec2f4650d68 (diff)
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>
-rw-r--r--src/mainboard/google/brya/variants/pujjo/variant.c18
1 files changed, 1 insertions, 17 deletions
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));
}