Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b132ad2 authored by Vevek Venkatesan's avatar Vevek Venkatesan Committed by nshrivas
Browse files

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
parent 6a88313a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/*
 * 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
+10 −0
Original line number Diff line number Diff line
@@ -301,6 +301,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,
+3 −0
Original line number Diff line number Diff line
@@ -3801,11 +3801,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,