@@ -20,6 +20,24 @@ config OMAP_GPIO_EXTRA128
Add an extra 128 gpio numbers to the available GPIO pool. This is
available for boards that need extra gpios for external devices.
+config OMAP_IRQ_EXTRA
+ int
+ default 128 if OMAP_IRQ_EXTRA128
+ default 64 if OMAP_IRQ_EXTRA64
+ default 0
+
+config OMAP_IRQ_EXTRA64
+ bool
+ help
+ Add an extra 64 irq numbers to the available IRQ pool. This is
+ available for boards that need extra interrupts for external devices.
+
+config OMAP_IRQ_EXTRA128
+ bool
+ help
+ Add an extra 128 irq numbers to the available IRQ pool. This is
+ available for boards that need extra interrupts for external devices.
+
config ARCH_OMAP_OTG
bool
@@ -409,7 +409,11 @@
#define TWL_IRQ_END TWL6030_IRQ_END
#endif
-#define NR_IRQS TWL_IRQ_END
+/*
+ * Some boards require extra irq capacity to support external
+ * devices that generate interrupts.
+ */
+#define NR_IRQS (TWL_IRQ_END + CONFIG_OMAP_IRQ_EXTRA)
#define OMAP_IRQ_BIT(irq) (1 << ((irq) % 32))