David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* |
| 3 | * arch/arm/mach-ixp4xx/include/mach/irqs.h |
| 4 | * |
| 5 | * IRQ definitions for IXP4XX based systems |
| 6 | * |
| 7 | * Copyright (C) 2002 Intel Corporation. |
| 8 | * Copyright (C) 2003 MontaVista Software, Inc. |
| 9 | */ |
| 10 | |
| 11 | #ifndef _ARCH_IXP4XX_IRQS_H_ |
| 12 | #define _ARCH_IXP4XX_IRQS_H_ |
| 13 | |
| 14 | #define IRQ_IXP4XX_BASE 16 |
| 15 | |
| 16 | #define IRQ_IXP4XX_NPEA (IRQ_IXP4XX_BASE + 0) |
| 17 | #define IRQ_IXP4XX_NPEB (IRQ_IXP4XX_BASE + 1) |
| 18 | #define IRQ_IXP4XX_NPEC (IRQ_IXP4XX_BASE + 2) |
| 19 | #define IRQ_IXP4XX_QM1 (IRQ_IXP4XX_BASE + 3) |
| 20 | #define IRQ_IXP4XX_QM2 (IRQ_IXP4XX_BASE + 4) |
| 21 | #define IRQ_IXP4XX_TIMER1 (IRQ_IXP4XX_BASE + 5) |
| 22 | #define IRQ_IXP4XX_GPIO0 (IRQ_IXP4XX_BASE + 6) |
| 23 | #define IRQ_IXP4XX_GPIO1 (IRQ_IXP4XX_BASE + 7) |
| 24 | #define IRQ_IXP4XX_PCI_INT (IRQ_IXP4XX_BASE + 8) |
| 25 | #define IRQ_IXP4XX_PCI_DMA1 (IRQ_IXP4XX_BASE + 9) |
| 26 | #define IRQ_IXP4XX_PCI_DMA2 (IRQ_IXP4XX_BASE + 10) |
| 27 | #define IRQ_IXP4XX_TIMER2 (IRQ_IXP4XX_BASE + 11) |
| 28 | #define IRQ_IXP4XX_USB (IRQ_IXP4XX_BASE + 12) |
| 29 | #define IRQ_IXP4XX_UART2 (IRQ_IXP4XX_BASE + 13) |
| 30 | #define IRQ_IXP4XX_TIMESTAMP (IRQ_IXP4XX_BASE + 14) |
| 31 | #define IRQ_IXP4XX_UART1 (IRQ_IXP4XX_BASE + 15) |
| 32 | #define IRQ_IXP4XX_WDOG (IRQ_IXP4XX_BASE + 16) |
| 33 | #define IRQ_IXP4XX_AHB_PMU (IRQ_IXP4XX_BASE + 17) |
| 34 | #define IRQ_IXP4XX_XSCALE_PMU (IRQ_IXP4XX_BASE + 18) |
| 35 | #define IRQ_IXP4XX_GPIO2 (IRQ_IXP4XX_BASE + 19) |
| 36 | #define IRQ_IXP4XX_GPIO3 (IRQ_IXP4XX_BASE + 20) |
| 37 | #define IRQ_IXP4XX_GPIO4 (IRQ_IXP4XX_BASE + 21) |
| 38 | #define IRQ_IXP4XX_GPIO5 (IRQ_IXP4XX_BASE + 22) |
| 39 | #define IRQ_IXP4XX_GPIO6 (IRQ_IXP4XX_BASE + 23) |
| 40 | #define IRQ_IXP4XX_GPIO7 (IRQ_IXP4XX_BASE + 24) |
| 41 | #define IRQ_IXP4XX_GPIO8 (IRQ_IXP4XX_BASE + 25) |
| 42 | #define IRQ_IXP4XX_GPIO9 (IRQ_IXP4XX_BASE + 26) |
| 43 | #define IRQ_IXP4XX_GPIO10 (IRQ_IXP4XX_BASE + 27) |
| 44 | #define IRQ_IXP4XX_GPIO11 (IRQ_IXP4XX_BASE + 28) |
| 45 | #define IRQ_IXP4XX_GPIO12 (IRQ_IXP4XX_BASE + 29) |
| 46 | #define IRQ_IXP4XX_SW_INT1 (IRQ_IXP4XX_BASE + 30) |
| 47 | #define IRQ_IXP4XX_SW_INT2 (IRQ_IXP4XX_BASE + 31) |
| 48 | #define IRQ_IXP4XX_USB_HOST (IRQ_IXP4XX_BASE + 32) |
| 49 | #define IRQ_IXP4XX_I2C (IRQ_IXP4XX_BASE + 33) |
| 50 | #define IRQ_IXP4XX_SSP (IRQ_IXP4XX_BASE + 34) |
| 51 | #define IRQ_IXP4XX_TSYNC (IRQ_IXP4XX_BASE + 35) |
| 52 | #define IRQ_IXP4XX_EAU_DONE (IRQ_IXP4XX_BASE + 36) |
| 53 | #define IRQ_IXP4XX_SHA_DONE (IRQ_IXP4XX_BASE + 37) |
| 54 | #define IRQ_IXP4XX_SWCP_PE (IRQ_IXP4XX_BASE + 58) |
| 55 | #define IRQ_IXP4XX_QM_PE (IRQ_IXP4XX_BASE + 60) |
| 56 | #define IRQ_IXP4XX_MCU_ECC (IRQ_IXP4XX_BASE + 61) |
| 57 | #define IRQ_IXP4XX_EXP_PE (IRQ_IXP4XX_BASE + 62) |
| 58 | |
| 59 | #define _IXP4XX_GPIO_IRQ(n) (IRQ_IXP4XX_GPIO ## n) |
| 60 | #define IXP4XX_GPIO_IRQ(n) _IXP4XX_GPIO_IRQ(n) |
| 61 | |
| 62 | #define XSCALE_PMU_IRQ (IRQ_IXP4XX_XSCALE_PMU) |
| 63 | |
| 64 | #endif |