qcacmn: Add changes to skip fw boot, reset and HIA config
This change is applicable to Hawkeye VP bringup. It is added under
QCA_WIFI_QCA8074_VP flag
Change-Id: Ief32afebf2a306425e33e4ebc56351f10c609198
CRs-Fixed: 1063252
diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c
index 2a280fb..8260431 100644
--- a/hif/src/pcie/if_pci.c
+++ b/hif/src/pcie/if_pci.c
@@ -1960,6 +1960,7 @@
if (status)
goto disable_wlan;
+#ifndef QCA_WIFI_QCA8074_VP
status = hif_set_hia(hif_sc);
if (status)
goto unconfig_ce;
@@ -1967,6 +1968,7 @@
HIF_INFO_MED("%s: hif_set_hia done", __func__);
hif_register_bmi_callbacks(hif_sc);
+#endif
status = hif_configure_irq(hif_sc);
if (status < 0)
diff --git a/hif/src/snoc/if_ahb.c b/hif/src/snoc/if_ahb.c
index 0b9bf31..fb380a3 100644
--- a/hif/src/snoc/if_ahb.c
+++ b/hif/src/snoc/if_ahb.c
@@ -498,6 +498,7 @@
hif_register_tbl_attach(ol_sc, hif_type);
hif_target_register_tbl_attach(ol_sc, target_type);
+#ifndef QCA_WIFI_QCA8074_VP
if (hif_ahb_enable_radio(sc, pdev, id) != 0) {
HIF_INFO("error in enabling soc\n");
return -EIO;
@@ -507,13 +508,16 @@
ret = -EIO;
goto err_target_sync;
}
+#endif
HIF_TRACE("%s: X - hif_type = 0x%x, target_type = 0x%x",
__func__, hif_type, target_type);
return QDF_STATUS_SUCCESS;
+#ifndef QCA_WIFI_QCA8074_VP
err_target_sync:
HIF_INFO("Error: Disabling target\n");
hif_ahb_disable_bus(ol_sc);
+#endif
err_cleanup1:
return ret;
}