From cd0884a954041f22b6009d2e59bb2be6ddcd7a42 Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Wed, 24 Aug 2016 15:30:09 -0700 Subject: [PATCH] qcacmn: Add WCN3990 to hw names Print out hw name WCN3990_V1 when soc version is 0x40000000. Change-Id: Ic76cd3ddc46cf9a2b142cc2d455b512e442f189e CRs-Fixed: 1059083 --- hif/src/hif_hw_version.h | 1 + hif/src/hif_main.c | 5 +++++ hif/src/snoc/if_snoc.c | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/hif/src/hif_hw_version.h b/hif/src/hif_hw_version.h index c5b56d861af5..7630776e260f 100644 --- a/hif/src/hif_hw_version.h +++ b/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; diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c index abdb15864568..9b8dc1248f74 100644 --- a/hif/src/hif_main.c +++ b/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", } }; diff --git a/hif/src/snoc/if_snoc.c b/hif/src/snoc/if_snoc.c index a414958d0082..77bc554936d7 100644 --- a/hif/src/snoc/if_snoc.c +++ b/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; }