qcacmn: add HW version and name support for Hastings

Add support for HW version soc id and HW name string
for Hastings and HastingsPrime platform.

Change-Id: I1ba57339b2f9afd425e1ecc9f312ad484340d226
CRs-Fixed: 2681134
This commit is contained in:
Vevek Venkatesan
2020-04-23 18:28:35 +05:30
committed by nshrivas
parent 3b4cb57737
commit 516abea104
3 changed files with 16 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2018, 2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -31,6 +31,8 @@
#define QCA9379_REV1_VERSION 0x5040000
#define AR6320_DEV_VERSION 0x1000000
#define QCA9377_REV1_1_VERSION 0x5020001
#define QCA6390_V1 0x50040000
#define QCA6490_V1 0x50060000
#define WCN3990_v1 0x40000000
#define WCN3990_v2 0x40010000
#define WCN3990_v2_1 0x40010002

View File

@@ -302,6 +302,16 @@ static const struct qwlan_hw qwlan_hw_list[] = {
.subid = 0xA,
.name = "AR6320_REV3_2_VERSION",
},
{
.id = QCA6390_V1,
.subid = 0x0,
.name = "QCA6390_V1",
},
{
.id = QCA6490_V1,
.subid = 0x0,
.name = "QCA6490_V1",
},
{
.id = WCN3990_v1,
.subid = 0x0,

View File

@@ -3872,11 +3872,14 @@ static void hif_pci_get_soc_info_pld(struct hif_pci_softc *sc,
struct device *dev)
{
struct pld_soc_info info;
struct hif_softc *scn = HIF_GET_SOFTC(sc);
pld_get_soc_info(dev, &info);
sc->mem = info.v_addr;
sc->ce_sc.ol_sc.mem = info.v_addr;
sc->ce_sc.ol_sc.mem_pa = info.p_addr;
scn->target_info.target_version = info.soc_id;
scn->target_info.target_revision = 0;
}
static void hif_pci_get_soc_info_nopld(struct hif_pci_softc *sc,