/* * arch/arm/mach-h720x/include/mach/irqs.h * * Copyright (C) 2000 Jungjun Kim * (C) 2003 Robert Schwebel * (C) 2003 Thomas Gleixner * */ #ifndef __ASM_ARCH_IRQS_H #define __ASM_ARCH_IRQS_H #if defined (CONFIG_CPU_H7201) #define IRQ_PMU 0 /* 0x000001 */ #define IRQ_DMA 1 /* 0x000002 */ #define IRQ_LCD 2 /* 0x000004 */ #define IRQ_VGA 3 /* 0x000008 */ #define IRQ_PCMCIA1 4 /* 0x000010 */ #define IRQ_PCMCIA2 5 /* 0x000020 */ #define IRQ_AFE 6 /* 0x000040 */ #define IRQ_AIC 7 /* 0x000080 */ #define IRQ_KEYBOARD 8 /* 0x000100 */ #define IRQ_TIMER0 9 /* 0x000200 */ #define IRQ_RTC 10 /* 0x000400 */ #define IRQ_SOUND 11 /* 0x000800 */ #define IRQ_USB 12 /* 0x001000 */ #define IRQ_IrDA 13 /* 0x002000 */ #define IRQ_UART0 14 /* 0x004000 */ #define IRQ_UART1 15 /* 0x008000 */ #define IRQ_SPI 16 /* 0x010000 */ #define IRQ_GPIOA 17 /* 0x020000 */ #define IRQ_GPIOB 18 /* 0x040000 */ #define IRQ_GPIOC 19 /* 0x080000 */ #define IRQ_GPIOD 20 /* 0x100000 */ #define IRQ_CommRX 21 /* 0x200000 */ #define IRQ_CommTX 22 /* 0x400000 */ #define IRQ_Soft 23 /* 0x800000 */ #define NR_GLBL_IRQS 24 #define IRQ_CHAINED_GPIOA(x) (NR_GLBL_IRQS + x) #define IRQ_CHAINED_GPIOB(x) (IRQ_CHAINED_GPIOA(32) + x) #define IRQ_CHAINED_GPIOC(x) (IRQ_CHAINED_GPIOB(32) + x) #define IRQ_CHAINED_GPIOD(x) (IRQ_CHAINED_GPIOC(32) + x) #define NR_IRQS IRQ_CHAINED_GPIOD(32) /* Enable mask for multiplexed interrupts */ #define IRQ_ENA_MUX (1<> 5) #define IRQ_TO_BIT(irq) (1 << ((irq - NR_GLBL_IRQS) % 32)) #endif