[ARM] 4196/1: S3C24XX: add S3C2410_IRQSUB() to define IRQ for sub-sources

Add a define of S3C2410_IRQSUB() to define all
the sources from the IRQSUB register, to make it
easier to work out the datasheet=>irq mappings

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Ben Dooks 2007-02-15 16:28:11 +01:00 committed by Russell King
parent 092651c5a9
commit e9316f9be6

View File

@ -94,27 +94,30 @@
* these need to be ordered in number of appearance in the
* SUBSRC mask register
*/
#define IRQ_S3CUART_RX0 S3C2410_IRQ(54) /* 70 */
#define IRQ_S3CUART_TX0 S3C2410_IRQ(55) /* 71 */
#define IRQ_S3CUART_ERR0 S3C2410_IRQ(56)
#define IRQ_S3CUART_RX1 S3C2410_IRQ(57)
#define IRQ_S3CUART_TX1 S3C2410_IRQ(58)
#define IRQ_S3CUART_ERR1 S3C2410_IRQ(59)
#define S3C2410_IRQSUB(x) S3C2410_IRQ((x)+54)
#define IRQ_S3CUART_RX2 S3C2410_IRQ(60)
#define IRQ_S3CUART_TX2 S3C2410_IRQ(61)
#define IRQ_S3CUART_ERR2 S3C2410_IRQ(62)
#define IRQ_S3CUART_RX0 S3C2410_IRQSUB(0) /* 70 */
#define IRQ_S3CUART_TX0 S3C2410_IRQSUB(1)
#define IRQ_S3CUART_ERR0 S3C2410_IRQSUB(2)
#define IRQ_TC S3C2410_IRQ(63)
#define IRQ_ADC S3C2410_IRQ(64)
#define IRQ_S3CUART_RX1 S3C2410_IRQSUB(3) /* 73 */
#define IRQ_S3CUART_TX1 S3C2410_IRQSUB(4)
#define IRQ_S3CUART_ERR1 S3C2410_IRQSUB(5)
#define IRQ_S3CUART_RX2 S3C2410_IRQSUB(6) /* 76 */
#define IRQ_S3CUART_TX2 S3C2410_IRQSUB(7)
#define IRQ_S3CUART_ERR2 S3C2410_IRQSUB(8)
#define IRQ_TC S3C2410_IRQSUB(9)
#define IRQ_ADC S3C2410_IRQSUB(10)
/* extra irqs for s3c2440 */
#define IRQ_S3C2440_CAM_C S3C2410_IRQ(65)
#define IRQ_S3C2440_CAM_P S3C2410_IRQ(66)
#define IRQ_S3C2440_WDT S3C2410_IRQ(67)
#define IRQ_S3C2440_AC97 S3C2410_IRQ(68)
#define IRQ_S3C2440_CAM_C S3C2410_IRQSUB(11)
#define IRQ_S3C2440_CAM_P S3C2410_IRQSUB(12)
#define IRQ_S3C2440_WDT S3C2410_IRQSUB(13)
#define IRQ_S3C2440_AC97 S3C2410_IRQSUB(14)
#define NR_IRQS (IRQ_S3C2440_AC97+1)