blob: 67e0fe730a13ff72c985bd2373453214d7998e6f [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/*
Russell Kinga09e64f2008-08-05 16:14:15 +01002 * IRQ definitions for Marvell MV78xx0 SoCs
3 *
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without any
6 * warranty of any kind, whether express or implied.
7 */
8
9#ifndef __ASM_ARCH_IRQS_H
10#define __ASM_ARCH_IRQS_H
11
Russell Kinga09e64f2008-08-05 16:14:15 +010012/*
13 * MV78xx0 Low Interrupt Controller
14 */
15#define IRQ_MV78XX0_ERR 0
16#define IRQ_MV78XX0_SPI 1
17#define IRQ_MV78XX0_I2C_0 2
18#define IRQ_MV78XX0_I2C_1 3
19#define IRQ_MV78XX0_IDMA_0 4
20#define IRQ_MV78XX0_IDMA_1 5
21#define IRQ_MV78XX0_IDMA_2 6
22#define IRQ_MV78XX0_IDMA_3 7
23#define IRQ_MV78XX0_TIMER_0 8
24#define IRQ_MV78XX0_TIMER_1 9
25#define IRQ_MV78XX0_TIMER_2 10
26#define IRQ_MV78XX0_TIMER_3 11
27#define IRQ_MV78XX0_UART_0 12
28#define IRQ_MV78XX0_UART_1 13
29#define IRQ_MV78XX0_UART_2 14
30#define IRQ_MV78XX0_UART_3 15
31#define IRQ_MV78XX0_USB_0 16
32#define IRQ_MV78XX0_USB_1 17
33#define IRQ_MV78XX0_USB_2 18
34#define IRQ_MV78XX0_CRYPTO 19
35#define IRQ_MV78XX0_SDIO_0 20
36#define IRQ_MV78XX0_SDIO_1 21
37#define IRQ_MV78XX0_XOR_0 22
38#define IRQ_MV78XX0_XOR_1 23
39#define IRQ_MV78XX0_I2S_0 24
40#define IRQ_MV78XX0_I2S_1 25
41#define IRQ_MV78XX0_SATA 26
42#define IRQ_MV78XX0_TDMI 27
43
44/*
45 * MV78xx0 High Interrupt Controller
46 */
47#define IRQ_MV78XX0_PCIE_00 32
48#define IRQ_MV78XX0_PCIE_01 33
49#define IRQ_MV78XX0_PCIE_02 34
50#define IRQ_MV78XX0_PCIE_03 35
51#define IRQ_MV78XX0_PCIE_10 36
52#define IRQ_MV78XX0_PCIE_11 37
53#define IRQ_MV78XX0_PCIE_12 38
54#define IRQ_MV78XX0_PCIE_13 39
55#define IRQ_MV78XX0_GE00_SUM 40
56#define IRQ_MV78XX0_GE00_RX 41
57#define IRQ_MV78XX0_GE00_TX 42
58#define IRQ_MV78XX0_GE00_MISC 43
59#define IRQ_MV78XX0_GE01_SUM 44
60#define IRQ_MV78XX0_GE01_RX 45
61#define IRQ_MV78XX0_GE01_TX 46
62#define IRQ_MV78XX0_GE01_MISC 47
63#define IRQ_MV78XX0_GE10_SUM 48
64#define IRQ_MV78XX0_GE10_RX 49
65#define IRQ_MV78XX0_GE10_TX 50
66#define IRQ_MV78XX0_GE10_MISC 51
67#define IRQ_MV78XX0_GE11_SUM 52
68#define IRQ_MV78XX0_GE11_RX 53
69#define IRQ_MV78XX0_GE11_TX 54
70#define IRQ_MV78XX0_GE11_MISC 55
71#define IRQ_MV78XX0_GPIO_0_7 56
72#define IRQ_MV78XX0_GPIO_8_15 57
73#define IRQ_MV78XX0_GPIO_16_23 58
74#define IRQ_MV78XX0_GPIO_24_31 59
75#define IRQ_MV78XX0_DB_IN 60
76#define IRQ_MV78XX0_DB_OUT 61
77
78/*
Lennert Buytenhek1f8081f2008-08-26 16:04:05 +020079 * MV78xx0 Error Interrupt Controller
80 */
81#define IRQ_MV78XX0_GE_ERR 70
82
83/*
Russell Kinga09e64f2008-08-05 16:14:15 +010084 * MV78XX0 General Purpose Pins
85 */
Lennert Buytenhek1f8081f2008-08-26 16:04:05 +020086#define IRQ_MV78XX0_GPIO_START 96
Lennert Buytenhekb95a13d2008-10-20 01:51:04 +020087#define NR_GPIO_IRQS 32
Russell Kinga09e64f2008-08-05 16:14:15 +010088
Arnd Bergmann5cdbe5d2015-12-02 22:27:05 +010089#define MV78XX0_NR_IRQS (IRQ_MV78XX0_GPIO_START + NR_GPIO_IRQS)
Russell Kinga09e64f2008-08-05 16:14:15 +010090
91
92#endif