qcacmn: Add device id for multi-node support in Hawkeye M2M

Include Hawkeye emulation PCI device ids in probe list to enable
PCI based emulation platform to support multiple nodes.

Change-Id: I539c099912e5e7fa4865f57a139f5e75c1b06462
CRs-Fixed: 1090092
This commit is contained in:
Sathish Kumar 2017-02-13 15:52:07 +05:30 • committed by qcabuildsw
commit 2d2f19a6ca
4 changed files with 10 additions and 2 deletions

View file

@ -63,6 +63,8 @@ static inline ol_txrx_soc_handle cdp_soc_attach(u_int16_t devid,
case QCA8074_DEVICE_ID: /* Hawekeye */
case RUMIM2M_DEVICE_ID_NODE0: /*lithium emulation */
case RUMIM2M_DEVICE_ID_NODE1: /*lithium emulation */
case RUMIM2M_DEVICE_ID_NODE2: /*lithium emulation */
case RUMIM2M_DEVICE_ID_NODE3: /*lithium emulation */
return dp_soc_attach_wifi3(scn, hif_handle, htc_handle,
qdf_dev, dp_ol_if_ops);
break;

View file

@ -761,6 +761,8 @@ int hif_get_device_type(uint32_t device_id,
case QCA8074_DEVICE_ID:
case RUMIM2M_DEVICE_ID_NODE0:
case RUMIM2M_DEVICE_ID_NODE1:
case RUMIM2M_DEVICE_ID_NODE2:
case RUMIM2M_DEVICE_ID_NODE3:
*hif_type = HIF_TYPE_QCA8074;
*target_type = TARGET_TYPE_QCA8074;
HIF_INFO(" *********** QCA8074 *************\n");

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@ -101,6 +101,8 @@
emulation purpose */
#define RUMIM2M_DEVICE_ID_NODE0 0xabc0
#define RUMIM2M_DEVICE_ID_NODE1 0xabc1
#define RUMIM2M_DEVICE_ID_NODE2 0xabc2
#define RUMIM2M_DEVICE_ID_NODE3 0xabc3
#define HIF_GET_PCI_SOFTC(scn) ((struct hif_pci_softc *)scn)
#define HIF_GET_CE_STATE(scn) ((struct HIF_CE_state *)scn)

View file

@ -2223,7 +2223,9 @@ static int hif_enable_pci(struct hif_pci_softc *sc,
/* Hawkeye emulation specific change */
if ((device_id == RUMIM2M_DEVICE_ID_NODE0) ||
(device_id == RUMIM2M_DEVICE_ID_NODE1)) {
(device_id == RUMIM2M_DEVICE_ID_NODE1) ||
(device_id == RUMIM2M_DEVICE_ID_NODE2) ||
(device_id == RUMIM2M_DEVICE_ID_NODE3)) {
mem = mem + 0x0c000000;
sc->mem = mem;
HIF_INFO("%s: Changing PCI mem base to %p\n",