Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1287cdd7 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

msm: gpio: separate the interrupt header



The current gpio driver exposes a single header inside the mach-msm
directory. The driver implements an interrupt controller also in
addition to being a gpio controller. Separate the header that defines
functions for interrupt controller activities.

Change-Id: Id443f4da55e3d32578038dc0aa505cde847b175d
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 1a06f7cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@
 * GNU General Public License for more details.
 */

#include <linux/gpio.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/of_irq.h>
@@ -18,6 +17,7 @@
#include <linux/mfd/wcd9xxx/core.h>
#include <linux/irqchip.h>
#include <linux/irqchip/qpnp-int.h>
#include <linux/irqchip/msm-gpio-irq.h>
#include <asm/mach/map.h>
#include <asm/hardware/cache-l2x0.h>
#include <mach/mpm.h>
+0 −12
Original line number Diff line number Diff line
@@ -228,16 +228,4 @@ static inline int msm_gpio_install_direct_irq(unsigned gpio, unsigned irq,
}
#endif

#ifdef CONFIG_OF
#ifndef 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;
#else
int __init msm_tlmm_v3_of_irq_init(struct device_node *node,
					struct device_node *parent);
extern struct irq_chip mpm_tlmm_irq_extn;
#endif
#endif

#endif /* __ASM_ARCH_MSM_GPIO_H */
+1 −1
Original line number Diff line number Diff line
@@ -35,8 +35,8 @@
#include <linux/workqueue.h>
#include <linux/irqchip/arm-gic.h>
#include <linux/clk/msm-clk.h>
#include <linux/irqchip/msm-gpio-irq.h>
#include <asm/arch_timer.h>
#include <mach/gpio.h>
#include <mach/mpm.h>

enum {
+41 −0
Original line number Diff line number Diff line
/* Copyright (c) 2013, 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)
#ifndef 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;
#else
int __init msm_tlmm_v3_of_irq_init(struct device_node *node,
					struct device_node *parent);
extern struct irq_chip mpm_tlmm_irq_extn;
#endif
#else
static inline int __init msm_gpio_of_init(struct device_node *node,
					struct device_node *parent)
{
	return 0;
}
static inline int __init msm_tlmm_v3_of_irq_init(struct device_node *node,
					struct device_node *parent)
{
	return 0;
}
#endif
#endif /* MSM_GPIO_IRQ_H */