summaryrefslogtreecommitdiffstats
path: root/drivers/interconnect/qcom/smd-rpm.h
diff options
context:
space:
mode:
authorGeorgi Djakov <georgi.djakov@linaro.org>2019-07-23 17:23:37 +0300
committerGeorgi Djakov <georgi.djakov@linaro.org>2019-08-13 23:06:40 +0300
commitbe06f8e7425dcf554ebc1c0f78fb286bbbfbe23a (patch)
treea2282e2aea912998450990589a1436b69109b37e /drivers/interconnect/qcom/smd-rpm.h
parent24f516ebbab8a212a9aa8c3d69f185371f5e200b (diff)
downloadlinux-be06f8e7425dcf554ebc1c0f78fb286bbbfbe23a.tar.bz2
interconnect: qcom: Add interconnect RPM over SMD driver
On some Qualcomm SoCs, there is a remote processor, which controls some of the Network-On-Chip interconnect resources. Other CPUs express their needs by communicating with this processor. Add a driver to handle communication with this remote processor. Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Diffstat (limited to 'drivers/interconnect/qcom/smd-rpm.h')
-rw-r--r--drivers/interconnect/qcom/smd-rpm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/interconnect/qcom/smd-rpm.h b/drivers/interconnect/qcom/smd-rpm.h
new file mode 100644
index 000000000000..ca9d0327b8ac
--- /dev/null
+++ b/drivers/interconnect/qcom/smd-rpm.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (c) 2019, Linaro Ltd.
+ * Author: Georgi Djakov <georgi.djakov@linaro.org>
+ */
+
+#ifndef __DRIVERS_INTERCONNECT_QCOM_SMD_RPM_H
+#define __DRIVERS_INTERCONNECT_QCOM_SMD_RPM_H
+
+#include <linux/soc/qcom/smd-rpm.h>
+
+bool qcom_icc_rpm_smd_available(void);
+int qcom_icc_rpm_smd_send(int ctx, int rsc_type, int id, u32 val);
+
+#endif