[qca-nss-drv] Set IPQ60xx dependency for nss drv package
Include ipq60xx changes for nss drv package
Change-Id: Ib9555b14c750a42b0e22cbc0e703774844dde1f7
Signed-off-by: Suman Ghosh <sumaghos@codeaurora.org>
diff --git a/nss_init.c b/nss_init.c
index 380a1bd..3f9248f 100644
--- a/nss_init.c
+++ b/nss_init.c
@@ -666,6 +666,12 @@
nss_top_main.data_plane_ops = &nss_data_plane_edma_ops;
}
#endif
+#if defined(NSS_HAL_IPQ60XX_SUPPORT)
+ if (of_machine_is_compatible("qcom,ipq6018")) {
+ nss_top_main.hal_ops = &nss_hal_ipq60xx_ops;
+ nss_top_main.data_plane_ops = &nss_data_plane_edma_ops;
+ }
+#endif
#if defined(NSS_HAL_FSM9010_SUPPORT)
if (of_machine_is_compatible("qcom,fsm9010")) {
nss_top_main.hal_ops = &nss_hal_fsm9010_ops;
@@ -801,7 +807,7 @@
/*
* INIT ppe on supported platform
*/
- if (of_machine_is_compatible("qcom,ipq807x")) {
+ if (of_machine_is_compatible("qcom,ipq807x") || of_machine_is_compatible("qcom,ipq6018")) {
nss_ppe_init();
}
@@ -855,7 +861,7 @@
/*
* cleanup ppe on supported platform
*/
- if (of_machine_is_compatible("qcom,ipq807x")) {
+ if (of_machine_is_compatible("qcom,ipq807x") || of_machine_is_compatible("qcom,ipq6018")) {
nss_ppe_free();
}