From 8a8afe2b47f0340d3b634ca0f8b82386bd225301 Mon Sep 17 00:00:00 2001 From: Karunakar Dasineni Date: Tue, 18 Oct 2016 13:10:13 -0700 Subject: [PATCH] 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 --- hif/src/pcie/if_pci.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index f824f3b2616d..397ff659befc 100644 --- a/hif/src/pcie/if_pci.c +++ b/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;