Browse Source

icnss2: Add prefix in file path for adrastea targets

This change will add adrastea prefix in fw file path
of adreatea targets. This changes enables fw files
to be picked from /vendor/firmware_mnt/image/adrastea
path.

Change-Id: Ic0ce57b7a8db08e4bf55c8a493a1f1500d93c427
CRs-Fixed: 3140070
Sandeep Singh 3 years ago
parent
commit
48c98ff79f
2 changed files with 7 additions and 2 deletions
  1. 6 2
      icnss2/main.c
  2. 1 0
      icnss2/main.h

+ 6 - 2
icnss2/main.c

@@ -4026,8 +4026,12 @@ void icnss_add_fw_prefix_name(struct icnss_priv *priv, char *prefix_name,
 		return;
 	}
 
-	scnprintf(prefix_name, ICNSS_MAX_FILE_NAME,
-		  QCA6750_PATH_PREFIX "%s", name);
+	if (priv->device_id == ADRASTEA_DEVICE_ID)
+		scnprintf(prefix_name, ICNSS_MAX_FILE_NAME,
+			  ADRASTEA_PATH_PREFIX "%s", name);
+	else
+		scnprintf(prefix_name, ICNSS_MAX_FILE_NAME,
+			  QCA6750_PATH_PREFIX "%s", name);
 
 	icnss_pr_dbg("File added with prefix: %s\n", prefix_name);
 }

+ 1 - 0
icnss2/main.h

@@ -24,6 +24,7 @@
 #define ICNSS_SMEM_VALUE_MASK 0xFFFFFFFF
 #define ICNSS_SMEM_SEQ_NO_POS 16
 #define QCA6750_PATH_PREFIX    "qca6750/"
+#define ADRASTEA_PATH_PREFIX   "adrastea/"
 #define ICNSS_MAX_FILE_NAME      35
 #define ICNSS_PCI_EP_WAKE_OFFSET 4
 #define ICNSS_DISABLE_M3_SSR 0