]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm/plat-omap/include/plat/irqs.h
mfd: twl6040: Add initial support
[karo-tx-linux.git] / arch / arm / plat-omap / include / plat / irqs.h
index c88432005665418b1897559461862d7c17fc4d8f..926d25c780f35eb648def7168d71b8d4827e05af 100644 (file)
 #endif
 #define TWL6030_IRQ_END                (TWL6030_IRQ_BASE + TWL6030_BASE_NR_IRQS)
 
+#define TWL6040_CODEC_IRQ_BASE TWL6030_IRQ_END
+#ifdef CONFIG_TWL6040_CODEC
+#define TWL6040_CODEC_NR_IRQS  6
+#else
+#define TWL6040_CODEC_NR_IRQS  0
+#endif
+#define TWL6040_CODEC_IRQ_END  (TWL6040_CODEC_IRQ_BASE + TWL6040_CODEC_NR_IRQS)
+
 /* Total number of interrupts depends on the enabled blocks above */
-#if (TWL4030_GPIO_IRQ_END > TWL6030_IRQ_END)
+#if (TWL4030_GPIO_IRQ_END > TWL6040_CODEC_IRQ_END)
 #define TWL_IRQ_END            TWL4030_GPIO_IRQ_END
 #else
-#define TWL_IRQ_END            TWL6030_IRQ_END
+#define TWL_IRQ_END            TWL6040_CODEC_IRQ_END
 #endif
 
 /* GPMC related */