From: Uwe Kleine-König Date: Wed, 17 Feb 2010 20:08:00 +0000 (+0100) Subject: arm/imx/irq: order definitions of MXC_GPIO_IRQS numerically X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=abf61632884ae6bfd1e7b967d5254fa7b5191e7b;p=linux-beck.git arm/imx/irq: order definitions of MXC_GPIO_IRQS numerically This is important for kernels supporting more than one SoC. Signed-off-by: Uwe Kleine-König --- diff --git a/arch/arm/plat-mxc/include/mach/irqs.h b/arch/arm/plat-mxc/include/mach/irqs.h index 0cb347645db4..7ebdd7191495 100644 --- a/arch/arm/plat-mxc/include/mach/irqs.h +++ b/arch/arm/plat-mxc/include/mach/irqs.h @@ -18,16 +18,17 @@ #define MXC_GPIO_IRQ_START MXC_INTERNAL_IRQS -#if defined CONFIG_ARCH_MX1 -#define MXC_GPIO_IRQS (32 * 4) -#elif defined CONFIG_ARCH_MX2 +/* these are ordered by size to support multi-SoC kernels */ +#if defined CONFIG_ARCH_MX2 #define MXC_GPIO_IRQS (32 * 6) -#elif defined CONFIG_ARCH_MX3 -#define MXC_GPIO_IRQS (32 * 3) +#elif defined CONFIG_ARCH_MX1 +#define MXC_GPIO_IRQS (32 * 4) #elif defined CONFIG_ARCH_MX25 #define MXC_GPIO_IRQS (32 * 4) #elif defined CONFIG_ARCH_MXC91231 #define MXC_GPIO_IRQS (32 * 4) +#elif defined CONFIG_ARCH_MX3 +#define MXC_GPIO_IRQS (32 * 3) #endif /*