diff options
author | Paul Burton <paul.burton@imgtec.com> | 2015-05-24 11:11:31 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-21 15:53:10 -0400 |
commit | 44e08e7099c8de226606cfc989b45d6fa27f507f (patch) | |
tree | 6e547e1b00091f0ce730848faa0b8df8957ed329 | |
parent | 24ccfa06b7ea3c3f7f53f6bac9425d604ebce470 (diff) |
MIPS/IRQCHIP: Move Ingenic SoC intc driver to drivers/irqchip
Move the driver for Ingenic SoC interrupt controllers into
drivers/irqchip where it belongs.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Brian Norris <computersforpeace@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/10147/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/jz4740/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/jz4740/gpio.c | 3 | ||||
-rw-r--r-- | drivers/irqchip/Kconfig | 5 | ||||
-rw-r--r-- | drivers/irqchip/Makefile | 1 | ||||
-rw-r--r-- | drivers/irqchip/irq-ingenic.c (renamed from arch/mips/jz4740/irq.c) | 5 | ||||
-rw-r--r-- | include/linux/irqchip/ingenic.h (renamed from arch/mips/jz4740/irq.h) | 4 |
6 files changed, 12 insertions, 8 deletions
diff --git a/arch/mips/jz4740/Makefile b/arch/mips/jz4740/Makefile index 28e5535dfa9e..6cf5dd42fa34 100644 --- a/arch/mips/jz4740/Makefile +++ b/arch/mips/jz4740/Makefile | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | obj-y += prom.o irq.o time.o reset.o setup.o \ | 7 | obj-y += prom.o time.o reset.o setup.o \ |
8 | gpio.o clock.o platform.o timer.o serial.o | 8 | gpio.o clock.o platform.o timer.o serial.o |
9 | 9 | ||
10 | obj-$(CONFIG_DEBUG_FS) += clock-debugfs.o | 10 | obj-$(CONFIG_DEBUG_FS) += clock-debugfs.o |
diff --git a/arch/mips/jz4740/gpio.c b/arch/mips/jz4740/gpio.c index 994a7dfe6f22..54c80d42a88d 100644 --- a/arch/mips/jz4740/gpio.c +++ b/arch/mips/jz4740/gpio.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | #include <linux/interrupt.h> | 23 | #include <linux/interrupt.h> |
24 | #include <linux/irqchip/ingenic.h> | ||
24 | #include <linux/bitops.h> | 25 | #include <linux/bitops.h> |
25 | 26 | ||
26 | #include <linux/debugfs.h> | 27 | #include <linux/debugfs.h> |
@@ -28,8 +29,6 @@ | |||
28 | 29 | ||
29 | #include <asm/mach-jz4740/base.h> | 30 | #include <asm/mach-jz4740/base.h> |
30 | 31 | ||
31 | #include "irq.h" | ||
32 | |||
33 | #define JZ4740_GPIO_BASE_A (32*0) | 32 | #define JZ4740_GPIO_BASE_A (32*0) |
34 | #define JZ4740_GPIO_BASE_B (32*1) | 33 | #define JZ4740_GPIO_BASE_B (32*1) |
35 | #define JZ4740_GPIO_BASE_C (32*2) | 34 | #define JZ4740_GPIO_BASE_C (32*2) |
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 2b7531e0e84c..746daf37454c 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig | |||
@@ -163,3 +163,8 @@ config KEYSTONE_IRQ | |||
163 | config MIPS_GIC | 163 | config MIPS_GIC |
164 | bool | 164 | bool |
165 | select MIPS_CM | 165 | select MIPS_CM |
166 | |||
167 | config INGENIC_IRQ | ||
168 | bool | ||
169 | depends on MACH_INGENIC | ||
170 | default y | ||
diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile index 129cde1ff5a7..db014e8e12c9 100644 --- a/drivers/irqchip/Makefile +++ b/drivers/irqchip/Makefile | |||
@@ -48,3 +48,4 @@ obj-$(CONFIG_KEYSTONE_IRQ) += irq-keystone.o | |||
48 | obj-$(CONFIG_MIPS_GIC) += irq-mips-gic.o | 48 | obj-$(CONFIG_MIPS_GIC) += irq-mips-gic.o |
49 | obj-$(CONFIG_ARCH_MEDIATEK) += irq-mtk-sysirq.o | 49 | obj-$(CONFIG_ARCH_MEDIATEK) += irq-mtk-sysirq.o |
50 | obj-$(CONFIG_ARCH_DIGICOLOR) += irq-digicolor.o | 50 | obj-$(CONFIG_ARCH_DIGICOLOR) += irq-digicolor.o |
51 | obj-$(CONFIG_INGENIC_IRQ) += irq-ingenic.o | ||
diff --git a/arch/mips/jz4740/irq.c b/drivers/irqchip/irq-ingenic.c index 64b4c3639280..005de3f932ae 100644 --- a/arch/mips/jz4740/irq.c +++ b/drivers/irqchip/irq-ingenic.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/types.h> | 18 | #include <linux/types.h> |
19 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
20 | #include <linux/ioport.h> | 20 | #include <linux/ioport.h> |
21 | #include <linux/irqchip/ingenic.h> | ||
21 | #include <linux/of_address.h> | 22 | #include <linux/of_address.h> |
22 | #include <linux/of_irq.h> | 23 | #include <linux/of_irq.h> |
23 | #include <linux/timex.h> | 24 | #include <linux/timex.h> |
@@ -27,9 +28,7 @@ | |||
27 | #include <asm/io.h> | 28 | #include <asm/io.h> |
28 | #include <asm/mach-jz4740/irq.h> | 29 | #include <asm/mach-jz4740/irq.h> |
29 | 30 | ||
30 | #include "irq.h" | 31 | #include "irqchip.h" |
31 | |||
32 | #include "../../drivers/irqchip/irqchip.h" | ||
33 | 32 | ||
34 | struct ingenic_intc_data { | 33 | struct ingenic_intc_data { |
35 | void __iomem *base; | 34 | void __iomem *base; |
diff --git a/arch/mips/jz4740/irq.h b/include/linux/irqchip/ingenic.h index 601d5274ac69..0ee319a4029d 100644 --- a/arch/mips/jz4740/irq.h +++ b/include/linux/irqchip/ingenic.h | |||
@@ -12,8 +12,8 @@ | |||
12 | * | 12 | * |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #ifndef __MIPS_JZ4740_IRQ_H__ | 15 | #ifndef __LINUX_IRQCHIP_INGENIC_H__ |
16 | #define __MIPS_JZ4740_IRQ_H__ | 16 | #define __LINUX_IRQCHIP_INGENIC_H__ |
17 | 17 | ||
18 | #include <linux/irq.h> | 18 | #include <linux/irq.h> |
19 | 19 | ||