qcacmn: Add support for AP chipsets
Add copy engine configuration, extended set_hia functionality,
htc_module credit flow control function and physical address calculations.
Change-Id: I5e4394bed39cc92bb8323d332dc124d948737322
Acked-by: Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1009050
diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c
index 03c9f76..8510537 100644
--- a/hif/src/hif_main.c
+++ b/hif/src/hif_main.c
@@ -296,6 +296,15 @@
/* ADRASTEA doesn't have a host interest address */
ASSERT(0);
return 0;
+ case TARGET_TYPE_AR900B:
+ return AR900B_HOST_INTEREST_ADDRESS + item_offset;
+ case TARGET_TYPE_QCA9984:
+ return QCA9984_HOST_INTEREST_ADDRESS + item_offset;
+ case TARGET_TYPE_QCA9888:
+ return QCA9888_HOST_INTEREST_ADDRESS + item_offset;
+ case TARGET_TYPE_IPQ4019:
+ return IPQ4019_HOST_INTEREST_ADDRESS + item_offset;
+
default:
ASSERT(0);
return 0;
@@ -771,6 +780,30 @@
}
break;
+ case AR9887_DEVICE_ID:
+ *hif_type = HIF_TYPE_AR9888;
+ *target_type = TARGET_TYPE_AR9888;
+ HIF_INFO(" *********** AR9887 **************\n");
+ break;
+
+ case QCA9984_DEVICE_ID:
+ *hif_type = HIF_TYPE_QCA9984;
+ *target_type = TARGET_TYPE_QCA9984;
+ HIF_INFO(" *********** QCA9984 *************\n");
+ break;
+
+ case QCA9888_DEVICE_ID:
+ *hif_type = HIF_TYPE_QCA9888;
+ *target_type = TARGET_TYPE_QCA9888;
+ HIF_INFO(" *********** QCA9888 *************\n");
+ break;
+
+ case AR900B_DEVICE_ID:
+ *hif_type = HIF_TYPE_AR900B;
+ *target_type = TARGET_TYPE_AR900B;
+ HIF_INFO(" *********** AR900B *************\n");
+ break;
+
default:
HIF_ERROR("%s: Unsupported device ID!", __func__);
ret = -ENODEV;