diff --git a/hif/src/hif_hw_version.h b/hif/src/hif_hw_version.h index 35201033d7..a11daf51e2 100644 --- a/hif/src/hif_hw_version.h +++ b/hif/src/hif_hw_version.h @@ -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 diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c index 6594d7c5e1..421e136cbd 100644 --- a/hif/src/hif_main.c +++ b/hif/src/hif_main.c @@ -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, diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index b1a29c0ae7..b16e438297 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -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,