2 * linux/include/asm-arm/arch-imxads/irqs.h
4 * Copyright (C) 1999 ARM Limited
5 * Copyright (C) 2000 Deep Blue Solutions Ltd.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __ARM_IRQS_H__
23 #define __ARM_IRQS_H__
25 /* Use the imx definitions */
26 #include <asm/hardware.h>
29 * IMX Interrupt numbers
34 #define DSPA_MAC_INT 7
38 #define GPIO_INT_PORTA 11
39 #define GPIO_INT_PORTB 12
40 #define GPIO_INT_PORTC 13
43 #define SIM_DATA_INT 16
46 #define UART2_MINT_PFERR 19
47 #define UART2_MINT_RTS 20
48 #define UART2_MINT_DTR 21
49 #define UART2_MINT_UARTC 22
50 #define UART2_MINT_TX 23
51 #define UART2_MINT_RX 24
52 #define UART1_MINT_PFERR 25
53 #define UART1_MINT_RTS 26
54 #define UART1_MINT_DTR 27
55 #define UART1_MINT_UARTC 28
56 #define UART1_MINT_TX 29
57 #define UART1_MINT_RX 30
58 #define VOICE_DAC_INT 31
59 #define VOICE_ADC_INT 32
60 #define PEN_DATA_INT 33
66 #define SSI_TX_ERR_INT 43
68 #define SSI_RX_ERR_INT 45
84 #define GPIO_INT_PORTD 62
88 /* note: the IMX has four gpio ports (A-D), but only
89 * the following pins are connected to the outside
97 * We map these interrupts straight on. As a result we have
98 * several holes in the interrupt mapping. We do this for two
100 * - mapping the interrupts without holes would get
101 * far more complicated
102 * - Motorola could well decide to bring some processor
103 * with more pins connected
106 #define IRQ_GPIOA(x) (IMX_IRQS + x)
107 #define IRQ_GPIOB(x) (IRQ_GPIOA(32) + x)
108 #define IRQ_GPIOC(x) (IRQ_GPIOB(32) + x)
109 #define IRQ_GPIOD(x) (IRQ_GPIOC(32) + x)
111 /* decode irq number to use with IMR(x), ISR(x) and friends */
112 #define IRQ_TO_REG(irq) ((irq - IMX_IRQS) >> 5)
114 #define NR_IRQS (IRQ_GPIOD(32) + 1)