summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKiran Gunda <kgunda@codeaurora.org>2017-02-14 14:22:18 +0530
committerKiran Gunda <kgunda@codeaurora.org>2017-02-27 14:29:44 +0530
commit957b513d841076a404667a2a2bc3ee6bf44dc915 (patch)
treec9379c51656686874b858c4d5c42fe7f2f18cde3 /include/linux
parent473bc7a3245795bc3a6b834196b8c4f8078c37d5 (diff)
soc: qcom: qpnp-pbs: Add PBS driver support
The PBS driver helps the client drivers to trigger the PBS event to execute the PBS RAM configuration as requested by the client driver. Change-Id: Ic5d1290ffa0b66ac7a8f68529aafcf0b871ee3e8 Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/qpnp/qpnp-pbs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/qpnp/qpnp-pbs.h b/include/linux/qpnp/qpnp-pbs.h
new file mode 100644
index 000000000000..39497ac4b552
--- /dev/null
+++ b/include/linux/qpnp/qpnp-pbs.h
@@ -0,0 +1,25 @@
+/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _QPNP_PBS_H
+#define _QPNP_PBS_H
+
+#ifdef CONFIG_QPNP_PBS
+int qpnp_pbs_trigger_event(struct device_node *dev_node, u8 bitmap);
+#else
+static inline int qpnp_pbs_trigger_event(struct device_node *dev_node,
+ u8 bitmap) {
+ return -ENODEV;
+}
+#endif
+
+#endif