Forráskód Böngészése

qcacmn: Add WCN3990 to hw names

Print out hw name WCN3990_V1 when soc version is 0x40000000.

Change-Id: Ic76cd3ddc46cf9a2b142cc2d455b512e442f189e
CRs-Fixed: 1059083
Houston Hoffman 8 éve
szülő
commit
cd0884a954
3 módosított fájl, 10 hozzáadás és 0 törlés
  1. 1 0
      hif/src/hif_hw_version.h
  2. 5 0
      hif/src/hif_main.c
  3. 4 0
      hif/src/snoc/if_snoc.c

+ 1 - 0
hif/src/hif_hw_version.h

@@ -39,6 +39,7 @@
 #define AR6320_REV3_2_VERSION           0x5030000
 #define AR6320_DEV_VERSION              0x1000000
 #define QCA9377_REV1_1_VERSION          0x5020001
+#define WCN3990_v1                      0x40000000
 
 struct qwlan_hw {
 	u32 id;

+ 5 - 0
hif/src/hif_main.c

@@ -289,6 +289,11 @@ static const struct qwlan_hw qwlan_hw_list[] = {
 		.id = AR6320_REV3_2_VERSION,
 		.subid = 0xA,
 		.name = "AR6320_REV3_2_VERSION",
+	},
+	{
+		.id = WCN3990_v1,
+		.subid = 0x0,
+		.name = "WCN3990_V1",
 	}
 };
 

+ 4 - 0
hif/src/snoc/if_snoc.c

@@ -145,6 +145,10 @@ static QDF_STATUS hif_snoc_get_soc_info(struct hif_softc *scn)
 
 	scn->mem = soc_info.v_addr;
 	scn->mem_pa = soc_info.p_addr;
+
+	scn->target_info.soc_version = soc_info.soc_id;
+	scn->target_info.target_version = soc_info.soc_id;
+	scn->target_info.target_revision = 0;
 	return QDF_STATUS_SUCCESS;
 }