diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2012-11-12 12:26:03 -0500 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2012-11-26 06:25:33 -0500 |
commit | df1590d9ae5e37e07e7cf91107e4c2c946ce8bf4 (patch) | |
tree | 7e17333920f4ab9986f3f40e881b4bc890a91724 | |
parent | e2eb69183ec4156eb814e67672e492bf902bbcd2 (diff) |
ARM: SPEAr3xx: Shirq: Move shirq controller out of plat/
This patch moves shirq interrupt controllers driver and header file out of
plat-spear directory. It is moved to drivers/irqchip/ directory.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rw-r--r-- | arch/arm/mach-spear3xx/spear3xx.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-spear/Makefile | 2 | ||||
-rw-r--r-- | drivers/irqchip/Makefile | 3 | ||||
-rw-r--r-- | drivers/irqchip/spear-shirq.c (renamed from arch/arm/plat-spear/shirq.c) | 9 | ||||
-rw-r--r-- | include/linux/irqchip/spear-shirq.h (renamed from arch/arm/plat-spear/include/plat/shirq.h) | 10 |
5 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-spear3xx/spear3xx.c b/arch/arm/mach-spear3xx/spear3xx.c index f1aaf5b168b..38fe95db31a 100644 --- a/arch/arm/mach-spear3xx/spear3xx.c +++ b/arch/arm/mach-spear3xx/spear3xx.c | |||
@@ -15,12 +15,12 @@ | |||
15 | 15 | ||
16 | #include <linux/amba/pl022.h> | 16 | #include <linux/amba/pl022.h> |
17 | #include <linux/amba/pl08x.h> | 17 | #include <linux/amba/pl08x.h> |
18 | #include <linux/irqchip/spear-shirq.h> | ||
18 | #include <linux/of_irq.h> | 19 | #include <linux/of_irq.h> |
19 | #include <linux/io.h> | 20 | #include <linux/io.h> |
20 | #include <asm/hardware/pl080.h> | 21 | #include <asm/hardware/pl080.h> |
21 | #include <asm/hardware/vic.h> | 22 | #include <asm/hardware/vic.h> |
22 | #include <plat/pl080.h> | 23 | #include <plat/pl080.h> |
23 | #include <plat/shirq.h> | ||
24 | #include <mach/generic.h> | 24 | #include <mach/generic.h> |
25 | #include <mach/spear.h> | 25 | #include <mach/spear.h> |
26 | 26 | ||
diff --git a/arch/arm/plat-spear/Makefile b/arch/arm/plat-spear/Makefile index 2607bd05c52..01e88532a5d 100644 --- a/arch/arm/plat-spear/Makefile +++ b/arch/arm/plat-spear/Makefile | |||
@@ -5,5 +5,5 @@ | |||
5 | # Common support | 5 | # Common support |
6 | obj-y := restart.o time.o | 6 | obj-y := restart.o time.o |
7 | 7 | ||
8 | obj-$(CONFIG_ARCH_SPEAR3XX) += pl080.o shirq.o | 8 | obj-$(CONFIG_ARCH_SPEAR3XX) += pl080.o |
9 | obj-$(CONFIG_ARCH_SPEAR6XX) += pl080.o | 9 | obj-$(CONFIG_ARCH_SPEAR6XX) += pl080.o |
diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile index 054321db435..bf7b43696cd 100644 --- a/drivers/irqchip/Makefile +++ b/drivers/irqchip/Makefile | |||
@@ -1 +1,2 @@ | |||
1 | obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2835.o | 1 | obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2835.o |
2 | obj-$(CONFIG_ARCH_SPEAR3XX) += spear-shirq.o | ||
diff --git a/arch/arm/plat-spear/shirq.c b/drivers/irqchip/spear-shirq.c index 955c7249a5c..80e1d2fd9d4 100644 --- a/arch/arm/plat-spear/shirq.c +++ b/drivers/irqchip/spear-shirq.c | |||
@@ -1,11 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/plat-spear/shirq.c | ||
3 | * | ||
4 | * SPEAr platform shared irq layer source file | 2 | * SPEAr platform shared irq layer source file |
5 | * | 3 | * |
6 | * Copyright (C) 2009 ST Microelectronics | 4 | * Copyright (C) 2009-2012 ST Microelectronics |
7 | * Viresh Kumar <viresh.linux@gmail.com> | 5 | * Viresh Kumar <viresh.linux@gmail.com> |
8 | * | 6 | * |
7 | * Copyright (C) 2012 ST Microelectronics | ||
8 | * Shiraz Hashim <shiraz.hashim@st.com> | ||
9 | * | ||
9 | * This file is licensed under the terms of the GNU General Public | 10 | * This file is licensed under the terms of the GNU General Public |
10 | * License version 2. This program is licensed "as is" without any | 11 | * License version 2. This program is licensed "as is" without any |
11 | * warranty of any kind, whether express or implied. | 12 | * warranty of any kind, whether express or implied. |
@@ -18,11 +19,11 @@ | |||
18 | #include <linux/io.h> | 19 | #include <linux/io.h> |
19 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
20 | #include <linux/irqdomain.h> | 21 | #include <linux/irqdomain.h> |
22 | #include <linux/irqchip/spear-shirq.h> | ||
21 | #include <linux/of.h> | 23 | #include <linux/of.h> |
22 | #include <linux/of_address.h> | 24 | #include <linux/of_address.h> |
23 | #include <linux/of_irq.h> | 25 | #include <linux/of_irq.h> |
24 | #include <linux/spinlock.h> | 26 | #include <linux/spinlock.h> |
25 | #include <plat/shirq.h> | ||
26 | 27 | ||
27 | static DEFINE_SPINLOCK(lock); | 28 | static DEFINE_SPINLOCK(lock); |
28 | 29 | ||
diff --git a/arch/arm/plat-spear/include/plat/shirq.h b/include/linux/irqchip/spear-shirq.h index c51b355f00d..c8be16d213a 100644 --- a/arch/arm/plat-spear/include/plat/shirq.h +++ b/include/linux/irqchip/spear-shirq.h | |||
@@ -1,9 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/plat-spear/include/plat/shirq.h | ||
3 | * | ||
4 | * SPEAr platform shared irq layer header file | 2 | * SPEAr platform shared irq layer header file |
5 | * | 3 | * |
6 | * Copyright (C) 2009 ST Microelectronics | 4 | * Copyright (C) 2009-2012 ST Microelectronics |
7 | * Viresh Kumar <viresh.linux@gmail.com> | 5 | * Viresh Kumar <viresh.linux@gmail.com> |
8 | * | 6 | * |
9 | * This file is licensed under the terms of the GNU General Public | 7 | * This file is licensed under the terms of the GNU General Public |
@@ -11,8 +9,8 @@ | |||
11 | * warranty of any kind, whether express or implied. | 9 | * warranty of any kind, whether express or implied. |
12 | */ | 10 | */ |
13 | 11 | ||
14 | #ifndef __PLAT_SHIRQ_H | 12 | #ifndef __SPEAR_SHIRQ_H |
15 | #define __PLAT_SHIRQ_H | 13 | #define __SPEAR_SHIRQ_H |
16 | 14 | ||
17 | #include <linux/irq.h> | 15 | #include <linux/irq.h> |
18 | #include <linux/types.h> | 16 | #include <linux/types.h> |
@@ -63,4 +61,4 @@ int __init spear310_shirq_of_init(struct device_node *np, | |||
63 | int __init spear320_shirq_of_init(struct device_node *np, | 61 | int __init spear320_shirq_of_init(struct device_node *np, |
64 | struct device_node *parent); | 62 | struct device_node *parent); |
65 | 63 | ||
66 | #endif /* __PLAT_SHIRQ_H */ | 64 | #endif /* __SPEAR_SHIRQ_H */ |