summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/qcom_rpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd/qcom_rpm.h')
-rw-r--r--include/linux/mfd/qcom_rpm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/mfd/qcom_rpm.h b/include/linux/mfd/qcom_rpm.h
new file mode 100644
index 000000000..4b6b644f1
--- /dev/null
+++ b/include/linux/mfd/qcom_rpm.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#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