1a09e64fbSRussell King /* 2a09e64fbSRussell King * arch/arm/mach-sa1100/include/mach/irqs.h 3a09e64fbSRussell King * 4a09e64fbSRussell King * Copyright (C) 1996 Russell King 5a09e64fbSRussell King * Copyright (C) 1998 Deborah Wallach (updates for SA1100/Brutus). 6a09e64fbSRussell King * Copyright (C) 1999 Nicolas Pitre (full GPIO irq isolation) 7a09e64fbSRussell King * 8a09e64fbSRussell King * 2001/11/14 RMK Cleaned up and standardised a lot of the IRQs. 9a09e64fbSRussell King */ 10a09e64fbSRussell King 11a09e64fbSRussell King #define IRQ_GPIO0 0 12a09e64fbSRussell King #define IRQ_GPIO1 1 13a09e64fbSRussell King #define IRQ_GPIO2 2 14a09e64fbSRussell King #define IRQ_GPIO3 3 15a09e64fbSRussell King #define IRQ_GPIO4 4 16a09e64fbSRussell King #define IRQ_GPIO5 5 17a09e64fbSRussell King #define IRQ_GPIO6 6 18a09e64fbSRussell King #define IRQ_GPIO7 7 19a09e64fbSRussell King #define IRQ_GPIO8 8 20a09e64fbSRussell King #define IRQ_GPIO9 9 21a09e64fbSRussell King #define IRQ_GPIO10 10 22a09e64fbSRussell King #define IRQ_GPIO11_27 11 23a09e64fbSRussell King #define IRQ_LCD 12 /* LCD controller */ 24a09e64fbSRussell King #define IRQ_Ser0UDC 13 /* Ser. port 0 UDC */ 25a09e64fbSRussell King #define IRQ_Ser1SDLC 14 /* Ser. port 1 SDLC */ 26a09e64fbSRussell King #define IRQ_Ser1UART 15 /* Ser. port 1 UART */ 27a09e64fbSRussell King #define IRQ_Ser2ICP 16 /* Ser. port 2 ICP */ 28a09e64fbSRussell King #define IRQ_Ser3UART 17 /* Ser. port 3 UART */ 29a09e64fbSRussell King #define IRQ_Ser4MCP 18 /* Ser. port 4 MCP */ 30a09e64fbSRussell King #define IRQ_Ser4SSP 19 /* Ser. port 4 SSP */ 31a09e64fbSRussell King #define IRQ_DMA0 20 /* DMA controller channel 0 */ 32a09e64fbSRussell King #define IRQ_DMA1 21 /* DMA controller channel 1 */ 33a09e64fbSRussell King #define IRQ_DMA2 22 /* DMA controller channel 2 */ 34a09e64fbSRussell King #define IRQ_DMA3 23 /* DMA controller channel 3 */ 35a09e64fbSRussell King #define IRQ_DMA4 24 /* DMA controller channel 4 */ 36a09e64fbSRussell King #define IRQ_DMA5 25 /* DMA controller channel 5 */ 37a09e64fbSRussell King #define IRQ_OST0 26 /* OS Timer match 0 */ 38a09e64fbSRussell King #define IRQ_OST1 27 /* OS Timer match 1 */ 39a09e64fbSRussell King #define IRQ_OST2 28 /* OS Timer match 2 */ 40a09e64fbSRussell King #define IRQ_OST3 29 /* OS Timer match 3 */ 41a09e64fbSRussell King #define IRQ_RTC1Hz 30 /* RTC 1 Hz clock */ 42a09e64fbSRussell King #define IRQ_RTCAlrm 31 /* RTC Alarm */ 43a09e64fbSRussell King 44a09e64fbSRussell King #define IRQ_GPIO11 32 45a09e64fbSRussell King #define IRQ_GPIO12 33 46a09e64fbSRussell King #define IRQ_GPIO13 34 47a09e64fbSRussell King #define IRQ_GPIO14 35 48a09e64fbSRussell King #define IRQ_GPIO15 36 49a09e64fbSRussell King #define IRQ_GPIO16 37 50a09e64fbSRussell King #define IRQ_GPIO17 38 51a09e64fbSRussell King #define IRQ_GPIO18 39 52a09e64fbSRussell King #define IRQ_GPIO19 40 53a09e64fbSRussell King #define IRQ_GPIO20 41 54a09e64fbSRussell King #define IRQ_GPIO21 42 55a09e64fbSRussell King #define IRQ_GPIO22 43 56a09e64fbSRussell King #define IRQ_GPIO23 44 57a09e64fbSRussell King #define IRQ_GPIO24 45 58a09e64fbSRussell King #define IRQ_GPIO25 46 59a09e64fbSRussell King #define IRQ_GPIO26 47 60a09e64fbSRussell King #define IRQ_GPIO27 48 61a09e64fbSRussell King 62a09e64fbSRussell King /* 63a09e64fbSRussell King * The next 16 interrupts are for board specific purposes. Since 64a09e64fbSRussell King * the kernel can only run on one machine at a time, we can re-use 65a09e64fbSRussell King * these. If you need more, increase IRQ_BOARD_END, but keep it 66a09e64fbSRussell King * within sensible limits. IRQs 49 to 64 are available. 67a09e64fbSRussell King */ 68a09e64fbSRussell King #define IRQ_BOARD_START 49 69a09e64fbSRussell King #define IRQ_BOARD_END 65 70a09e64fbSRussell King 71a09e64fbSRussell King /* 72a09e64fbSRussell King * Figure out the MAX IRQ number. 73a09e64fbSRussell King * 74*375dec92SRussell King * Neponset, SA1111 and UCB1x00 are sparse IRQ aware, so can dynamically 75*375dec92SRussell King * allocate their IRQs above NR_IRQS. 76*375dec92SRussell King * 77*375dec92SRussell King * LoCoMo has 4 additional IRQs, but is not sparse IRQ aware, and so has 78*375dec92SRussell King * to be included in the NR_IRQS calculation. 79a09e64fbSRussell King */ 80*375dec92SRussell King #ifdef CONFIG_SHARP_LOCOMO 81*375dec92SRussell King #define NR_IRQS_LOCOMO 4 82a09e64fbSRussell King #else 83*375dec92SRussell King #define NR_IRQS_LOCOMO 0 84a09e64fbSRussell King #endif 85f314f33bSRob Herring 86*375dec92SRussell King #ifndef NR_IRQS 87*375dec92SRussell King #define NR_IRQS (IRQ_BOARD_START + NR_IRQS_LOCOMO) 88*375dec92SRussell King #endif 89*375dec92SRussell King #define SA1100_NR_IRQS (IRQ_BOARD_START + NR_IRQS_LOCOMO) 90