Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-kirkwood/include/mach/irqs.h |
| 3 | * |
| 4 | * IRQ definitions for Marvell Kirkwood SoCs |
| 5 | * |
| 6 | * This file is licensed under the terms of the GNU General Public |
| 7 | * License version 2. This program is licensed "as is" without any |
| 8 | * warranty of any kind, whether express or implied. |
| 9 | */ |
| 10 | |
| 11 | #ifndef __ASM_ARCH_IRQS_H |
| 12 | #define __ASM_ARCH_IRQS_H |
| 13 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 14 | /* |
| 15 | * Low Interrupt Controller |
| 16 | */ |
| 17 | #define IRQ_KIRKWOOD_HIGH_SUM 0 |
| 18 | #define IRQ_KIRKWOOD_BRIDGE 1 |
| 19 | #define IRQ_KIRKWOOD_HOST2CPU 2 |
| 20 | #define IRQ_KIRKWOOD_CPU2HOST 3 |
| 21 | #define IRQ_KIRKWOOD_XOR_00 5 |
| 22 | #define IRQ_KIRKWOOD_XOR_01 6 |
| 23 | #define IRQ_KIRKWOOD_XOR_10 7 |
| 24 | #define IRQ_KIRKWOOD_XOR_11 8 |
| 25 | #define IRQ_KIRKWOOD_PCIE 9 |
Saeed Bishara | ffd58bd | 2010-06-08 14:21:34 +0300 | [diff] [blame] | 26 | #define IRQ_KIRKWOOD_PCIE1 10 |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 27 | #define IRQ_KIRKWOOD_GE00_SUM 11 |
| 28 | #define IRQ_KIRKWOOD_GE01_SUM 15 |
| 29 | #define IRQ_KIRKWOOD_USB 19 |
| 30 | #define IRQ_KIRKWOOD_SATA 21 |
| 31 | #define IRQ_KIRKWOOD_CRYPTO 22 |
| 32 | #define IRQ_KIRKWOOD_SPI 23 |
| 33 | #define IRQ_KIRKWOOD_I2S 24 |
| 34 | #define IRQ_KIRKWOOD_TS_0 26 |
| 35 | #define IRQ_KIRKWOOD_SDIO 28 |
| 36 | #define IRQ_KIRKWOOD_TWSI 29 |
| 37 | #define IRQ_KIRKWOOD_AVB 30 |
| 38 | #define IRQ_KIRKWOOD_TDMI 31 |
| 39 | |
| 40 | /* |
| 41 | * High Interrupt Controller |
| 42 | */ |
| 43 | #define IRQ_KIRKWOOD_UART_0 33 |
| 44 | #define IRQ_KIRKWOOD_UART_1 34 |
| 45 | #define IRQ_KIRKWOOD_GPIO_LOW_0_7 35 |
| 46 | #define IRQ_KIRKWOOD_GPIO_LOW_8_15 36 |
| 47 | #define IRQ_KIRKWOOD_GPIO_LOW_16_23 37 |
| 48 | #define IRQ_KIRKWOOD_GPIO_LOW_24_31 38 |
| 49 | #define IRQ_KIRKWOOD_GPIO_HIGH_0_7 39 |
| 50 | #define IRQ_KIRKWOOD_GPIO_HIGH_8_15 40 |
| 51 | #define IRQ_KIRKWOOD_GPIO_HIGH_16_23 41 |
Lennert Buytenhek | 144f814 | 2008-08-26 16:04:05 +0200 | [diff] [blame] | 52 | #define IRQ_KIRKWOOD_GE00_ERR 46 |
Ronen Shitrit | d15fb9e | 2008-10-19 23:10:14 +0200 | [diff] [blame] | 53 | #define IRQ_KIRKWOOD_GE01_ERR 47 |
Andrew Lunn | 4748058 | 2011-05-15 13:32:43 +0200 | [diff] [blame] | 54 | #define IRQ_KIRKWOOD_RTC 53 |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 55 | |
| 56 | /* |
| 57 | * KIRKWOOD General Purpose Pins |
| 58 | */ |
| 59 | #define IRQ_KIRKWOOD_GPIO_START 64 |
Lennert Buytenhek | 4c21343 | 2008-10-20 01:51:04 +0200 | [diff] [blame] | 60 | #define NR_GPIO_IRQS 50 |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 61 | |
| 62 | #define NR_IRQS (IRQ_KIRKWOOD_GPIO_START + NR_GPIO_IRQS) |
| 63 | |
| 64 | |
| 65 | #endif |