[PATCH 3/3] [ARM] mmp: support sparse irq

Haojian Zhuang haojian.zhuang at marvell.com
Wed Aug 25 02:52:53 EDT 2010


Add sparse IRQ support in ARCH_MMP.

Signed-off-by: Haojian Zhuang <haojian.zhuang at marvell.com>
---
 arch/arm/Kconfig                      |    1 +
 arch/arm/mach-mmp/include/mach/irqs.h |    4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 45f93e1..eb1d43d 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -511,6 +511,7 @@ config ARCH_MMP
 	select GENERIC_CLOCKEVENTS
 	select TICK_ONESHOT
 	select PLAT_PXA
+	select SPARSE_IRQ
 	help
 	  Support for Marvell's PXA168/PXA910(MMP) and MMP2 processor line.

diff --git a/arch/arm/mach-mmp/include/mach/irqs.h
b/arch/arm/mach-mmp/include/mach/irqs.h
index b379cde..a09d328 100644
--- a/arch/arm/mach-mmp/include/mach/irqs.h
+++ b/arch/arm/mach-mmp/include/mach/irqs.h
@@ -222,10 +222,8 @@
 #define IRQ_GPIO_NUM			192
 #define IRQ_GPIO(x)			(IRQ_GPIO_START + (x))

-/* Board IRQ - 64 by default, increase if not enough */
 #define IRQ_BOARD_START			(IRQ_GPIO_START + IRQ_GPIO_NUM)
-#define IRQ_BOARD_END			(IRQ_BOARD_START + 64)

-#define NR_IRQS				(IRQ_BOARD_END)
+#define NR_IRQS				(IRQ_BOARD_START)

 #endif /* __ASM_MACH_IRQS_H */
-- 
1.5.6.5

--001485f5ce5c825969048ea393f5
Content-Type: text/x-patch; charset=US-ASCII; name="0003--ARM-mmp-support-sparse-irq.patch"
Content-Disposition: attachment; 
	filename="0003--ARM-mmp-support-sparse-irq.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gda1xg3k0

RnJvbSBjZGYyYTY3NDlmNWMwMWZmZTI4NWIwYjEwNDI3NTU3YjNjMmY3M2NkIE1vbiBTZXAgMTcg
MDA6MDA6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