1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2a09e64fbSRussell King /* 3a09e64fbSRussell King * arch/arm/mach-sa1100/include/mach/irqs.h 4a09e64fbSRussell King * 5a09e64fbSRussell King * Copyright (C) 1996 Russell King 6a09e64fbSRussell King * Copyright (C) 1998 Deborah Wallach (updates for SA1100/Brutus). 7a09e64fbSRussell King * Copyright (C) 1999 Nicolas Pitre (full GPIO irq isolation) 8a09e64fbSRussell King * 9a09e64fbSRussell King * 2001/11/14 RMK Cleaned up and standardised a lot of the IRQs. 10a09e64fbSRussell King */ 11a09e64fbSRussell King 1283508093SDmitry Eremin-Solenikov #define IRQ_GPIO0_SC 1 1383508093SDmitry Eremin-Solenikov #define IRQ_GPIO1_SC 2 1483508093SDmitry Eremin-Solenikov #define IRQ_GPIO2_SC 3 1583508093SDmitry Eremin-Solenikov #define IRQ_GPIO3_SC 4 1683508093SDmitry Eremin-Solenikov #define IRQ_GPIO4_SC 5 1783508093SDmitry Eremin-Solenikov #define IRQ_GPIO5_SC 6 1883508093SDmitry Eremin-Solenikov #define IRQ_GPIO6_SC 7 1983508093SDmitry Eremin-Solenikov #define IRQ_GPIO7_SC 8 2083508093SDmitry Eremin-Solenikov #define IRQ_GPIO8_SC 9 2183508093SDmitry Eremin-Solenikov #define IRQ_GPIO9_SC 10 2283508093SDmitry Eremin-Solenikov #define IRQ_GPIO10_SC 11 2318f3aec3SDmitry Eremin-Solenikov #define IRQ_GPIO11_27 12 2418f3aec3SDmitry Eremin-Solenikov #define IRQ_LCD 13 /* LCD controller */ 2518f3aec3SDmitry Eremin-Solenikov #define IRQ_Ser0UDC 14 /* Ser. port 0 UDC */ 2618f3aec3SDmitry Eremin-Solenikov #define IRQ_Ser1SDLC 15 /* Ser. port 1 SDLC */ 2718f3aec3SDmitry Eremin-Solenikov #define IRQ_Ser1UART 16 /* Ser. port 1 UART */ 2818f3aec3SDmitry Eremin-Solenikov #define IRQ_Ser2ICP 17 /* Ser. port 2 ICP */ 2918f3aec3SDmitry Eremin-Solenikov #define IRQ_Ser3UART 18 /* Ser. port 3 UART */ 3018f3aec3SDmitry Eremin-Solenikov #define IRQ_Ser4MCP 19 /* Ser. port 4 MCP */ 3118f3aec3SDmitry Eremin-Solenikov #define IRQ_Ser4SSP 20 /* Ser. port 4 SSP */ 3218f3aec3SDmitry Eremin-Solenikov #define IRQ_DMA0 21 /* DMA controller channel 0 */ 3318f3aec3SDmitry Eremin-Solenikov #define IRQ_DMA1 22 /* DMA controller channel 1 */ 3418f3aec3SDmitry Eremin-Solenikov #define IRQ_DMA2 23 /* DMA controller channel 2 */ 3518f3aec3SDmitry Eremin-Solenikov #define IRQ_DMA3 24 /* DMA controller channel 3 */ 3618f3aec3SDmitry Eremin-Solenikov #define IRQ_DMA4 25 /* DMA controller channel 4 */ 3718f3aec3SDmitry Eremin-Solenikov #define IRQ_DMA5 26 /* DMA controller channel 5 */ 3818f3aec3SDmitry Eremin-Solenikov #define IRQ_OST0 27 /* OS Timer match 0 */ 3918f3aec3SDmitry Eremin-Solenikov #define IRQ_OST1 28 /* OS Timer match 1 */ 4018f3aec3SDmitry Eremin-Solenikov #define IRQ_OST2 29 /* OS Timer match 2 */ 4118f3aec3SDmitry Eremin-Solenikov #define IRQ_OST3 30 /* OS Timer match 3 */ 4218f3aec3SDmitry Eremin-Solenikov #define IRQ_RTC1Hz 31 /* RTC 1 Hz clock */ 4318f3aec3SDmitry Eremin-Solenikov #define IRQ_RTCAlrm 32 /* RTC Alarm */ 44a09e64fbSRussell King 4583508093SDmitry Eremin-Solenikov #define IRQ_GPIO0 33 4683508093SDmitry Eremin-Solenikov #define IRQ_GPIO1 34 4783508093SDmitry Eremin-Solenikov #define IRQ_GPIO2 35 4883508093SDmitry Eremin-Solenikov #define IRQ_GPIO3 36 4983508093SDmitry Eremin-Solenikov #define IRQ_GPIO4 37 5083508093SDmitry Eremin-Solenikov #define IRQ_GPIO5 38 5183508093SDmitry Eremin-Solenikov #define IRQ_GPIO6 39 5283508093SDmitry Eremin-Solenikov #define IRQ_GPIO7 40 5383508093SDmitry Eremin-Solenikov #define IRQ_GPIO8 41 5483508093SDmitry Eremin-Solenikov #define IRQ_GPIO9 42 5583508093SDmitry Eremin-Solenikov #define IRQ_GPIO10 43 5683508093SDmitry Eremin-Solenikov #define IRQ_GPIO11 44 5783508093SDmitry Eremin-Solenikov #define IRQ_GPIO12 45 5883508093SDmitry Eremin-Solenikov #define IRQ_GPIO13 46 5983508093SDmitry Eremin-Solenikov #define IRQ_GPIO14 47 6083508093SDmitry Eremin-Solenikov #define IRQ_GPIO15 48 6183508093SDmitry Eremin-Solenikov #define IRQ_GPIO16 49 6283508093SDmitry Eremin-Solenikov #define IRQ_GPIO17 50 6383508093SDmitry Eremin-Solenikov #define IRQ_GPIO18 51 6483508093SDmitry Eremin-Solenikov #define IRQ_GPIO19 52 6583508093SDmitry Eremin-Solenikov #define IRQ_GPIO20 53 6683508093SDmitry Eremin-Solenikov #define IRQ_GPIO21 54 6783508093SDmitry Eremin-Solenikov #define IRQ_GPIO22 55 6883508093SDmitry Eremin-Solenikov #define IRQ_GPIO23 56 6983508093SDmitry Eremin-Solenikov #define IRQ_GPIO24 57 7083508093SDmitry Eremin-Solenikov #define IRQ_GPIO25 58 7183508093SDmitry Eremin-Solenikov #define IRQ_GPIO26 59 7283508093SDmitry Eremin-Solenikov #define IRQ_GPIO27 60 73a09e64fbSRussell King 74a09e64fbSRussell King /* 75a09e64fbSRussell King * The next 16 interrupts are for board specific purposes. Since 76a09e64fbSRussell King * the kernel can only run on one machine at a time, we can re-use 77a09e64fbSRussell King * these. If you need more, increase IRQ_BOARD_END, but keep it 7883508093SDmitry Eremin-Solenikov * within sensible limits. IRQs 61 to 76 are available. 79a09e64fbSRussell King */ 8083508093SDmitry Eremin-Solenikov #define IRQ_BOARD_START 61 8183508093SDmitry Eremin-Solenikov #define IRQ_BOARD_END 77 82a09e64fbSRussell King 83a09e64fbSRussell King /* 84a09e64fbSRussell King * Figure out the MAX IRQ number. 85a09e64fbSRussell King * 86375dec92SRussell King * Neponset, SA1111 and UCB1x00 are sparse IRQ aware, so can dynamically 87375dec92SRussell King * allocate their IRQs above NR_IRQS. 88375dec92SRussell King * 89375dec92SRussell King * LoCoMo has 4 additional IRQs, but is not sparse IRQ aware, and so has 90375dec92SRussell King * to be included in the NR_IRQS calculation. 91a09e64fbSRussell King */ 92375dec92SRussell King #ifdef CONFIG_SHARP_LOCOMO 93375dec92SRussell King #define NR_IRQS_LOCOMO 4 94a09e64fbSRussell King #else 95375dec92SRussell King #define NR_IRQS_LOCOMO 0 96a09e64fbSRussell King #endif 97f314f33bSRob Herring 98375dec92SRussell King #ifndef NR_IRQS 99375dec92SRussell King #define NR_IRQS (IRQ_BOARD_START + NR_IRQS_LOCOMO) 100375dec92SRussell King #endif 101375dec92SRussell King #define SA1100_NR_IRQS (IRQ_BOARD_START + NR_IRQS_LOCOMO) 102