Browse Source

qcacmn: E4.1 M2M emulation base address change

PCI base address should be offset by 0x0c000000
to access WLAN registers from E4.1 emulation release.

Change-Id: I022184398a457271bb495ac11421de59bc3d3857
CRs-Fixed: 1090092
Karunakar Dasineni 8 years ago
parent
commit
8a8afe2b47
1 changed files with 10 additions and 0 deletions
  1. 10 0
      hif/src/pcie/if_pci.c

+ 10 - 0
hif/src/pcie/if_pci.c

@@ -2220,6 +2220,16 @@ static int hif_enable_pci(struct hif_pci_softc *sc,
 
 	HIF_INFO("%s, mem after pci_iomap:%p\n",
 	       __func__, sc->mem);
+
+	/* Hawkeye emulation specific change */
+	if ((device_id == RUMIM2M_DEVICE_ID_NODE0) ||
+		(device_id == RUMIM2M_DEVICE_ID_NODE1)) {
+		mem = mem + 0x0c000000;
+		sc->mem = mem;
+		HIF_INFO("%s: Changing PCI mem base to %p\n",
+			__func__, sc->mem);
+	}
+
 	sc->pdev = pdev;
 	sc->dev = &pdev->dev;
 	sc->devid = id->device;