[PATCH 3/3] [ARM] mmp: support sparse irq
Eric Miao
eric.y.miao at gmail.com
Thu Aug 26 06:21:15 EDT 2010
On Wed, Aug 25, 2010 at 6:45 PM, Haojian Zhuang
<haojian.zhuang at gmail.com> wrote:
> From cdf2a6749f5c01ffe285b0b10427557b3c2f73cd Mon Sep 17 00:00:00 2001
> From: Haojian Zhuang <haojian.zhuang at marvell.com>
> Date: Wed, 25 Aug 2010 14:52:53 +0800
> Subject: [PATCH 3/3] [ARM] mmp: support sparse irq
>
> 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
Hrm... I don't see any machine files being amended for the .nr_irqs
field?
> 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
>
More information about the linux-arm-kernel
mailing list