summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAbhimanyu Kapur <abhimany@codeaurora.org>2015-03-30 11:55:03 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:07:16 -0700
commitc191d46b7233459f5e33cf75779ed3c732c87618 (patch)
treeba7ecef6627af65699c526abd4d5da20ba81e365 /include
parent879ffd4f078f29ce902a7500604ea2f221b6e4c0 (diff)
irqchip: msm: Add snaphot of msm irq driver
Snapshot the msm irq driver as of msm-3.14 commit: 3bc54cf86bdc7affa7cd4bf7faa3c57fe8f8819d (Merge "msm: camera: Add dummy sub module in sensor pipeline") Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org> Conflicts: drivers/irqchip/Kconfig drivers/irqchip/Makefile Change-Id: Idf5284906af960fe03dcf881df1b57149c8e6ad8
Diffstat (limited to 'include')
-rw-r--r--include/linux/irqchip/msm-gpio-irq.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/include/linux/irqchip/msm-gpio-irq.h b/include/linux/irqchip/msm-gpio-irq.h
new file mode 100644
index 000000000000..f57279424038
--- /dev/null
+++ b/include/linux/irqchip/msm-gpio-irq.h
@@ -0,0 +1,51 @@
+/* Copyright (c) 2013-2015, 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 MSM_GPIO_IRQ_H
+#define MSM_GPIO_IRQ_H
+
+#include <linux/irq.h>
+
+#if (defined(CONFIG_GPIO_MSM_V1) || defined(CONFIG_GPIO_MSM_V2) \
+ || defined(CONFIG_GPIO_MSM_V3) && !defined(CONFIG_USE_PINCTRL_IRQ))
+int __init msm_gpio_of_init(struct device_node *node,
+ struct device_node *parent);
+extern struct irq_chip msm_gpio_irq_extn;
+static inline int __init msm_tlmm_of_irq_init(struct device_node *node,
+ struct device_node *parent)
+{
+ return 0;
+}
+#elif defined(CONFIG_PINCTRL_MSM_TLMM)
+int __init msm_tlmm_of_irq_init(struct device_node *node,
+ struct device_node *parent);
+extern struct irq_chip mpm_tlmm_irq_extn;
+static inline int __init msm_gpio_of_init(struct device_node *node,
+ struct device_node *parent)
+{
+ return 0;
+}
+#else
+extern struct irq_chip mpm_pinctrl_extn;
+static inline int __init msm_tlmm_of_irq_init(struct device_node *node,
+ struct device_node *parent)
+{
+ return 0;
+}
+
+static inline int __init msm_gpio_of_init(struct device_node *node,
+ struct device_node *parent)
+{
+ return 0;
+}
+#endif
+#endif