aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mfd/qcom_rpm.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@sonymobile.com>2014-11-26 13:51:00 -0800
committerLee Jones <lee.jones@linaro.org>2015-01-22 16:04:00 +0000
commit58e214382bdd1eb48c5a3519182bddcb26edabad (patch)
treeb8fb6628b61bca733756a8904006b2f798bbb5fd /include/linux/mfd/qcom_rpm.h
parentmfd: devicetree: bindings: Add Qualcomm RPM DT binding (diff)
downloadwireguard-linux-58e214382bdd1eb48c5a3519182bddcb26edabad.tar.xz
wireguard-linux-58e214382bdd1eb48c5a3519182bddcb26edabad.zip
mfd: qcom-rpm: Driver for the Qualcomm RPM
Driver for the Resource Power Manager (RPM) found in Qualcomm 8660, 8960 and 8064 based devices. The driver exposes resources that child drivers can operate on; to implementing regulator, clock and bus frequency drivers. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/qcom_rpm.h')
-rw-r--r--include/linux/mfd/qcom_rpm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/mfd/qcom_rpm.h b/include/linux/mfd/qcom_rpm.h
new file mode 100644
index 000000000000..742ebf1b76ca
--- /dev/null
+++ b/include/linux/mfd/qcom_rpm.h
@@ -0,0 +1,13 @@
+#ifndef __QCOM_RPM_H__
+#define __QCOM_RPM_H__
+
+#include <linux/types.h>
+
+struct qcom_rpm;
+
+#define QCOM_RPM_ACTIVE_STATE 0
+#define QCOM_RPM_SLEEP_STATE 1
+
+int qcom_rpm_write(struct qcom_rpm *rpm, int state, int resource, u32 *buf, size_t count);
+
+#endif