diff options
Diffstat (limited to 'arch/arm/mach-spear3xx/include/mach/irqs.h')
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/irqs.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/arch/arm/mach-spear3xx/include/mach/irqs.h b/arch/arm/mach-spear3xx/include/mach/irqs.h new file mode 100644 index 000000000000..fe980e07b6ab --- /dev/null +++ b/arch/arm/mach-spear3xx/include/mach/irqs.h | |||
@@ -0,0 +1,65 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-spear3xx/include/mach/irqs.h | ||
3 | * | ||
4 | * IRQ helper macros for SPEAr3xx machine family | ||
5 | * | ||
6 | * Copyright (C) 2009 ST Microelectronics | ||
7 | * Viresh Kumar<viresh.kumar@st.com> | ||
8 | * | ||
9 | * This file is licensed under the terms of the GNU General Public | ||
10 | * License version 2. This program is licensed "as is" without any | ||
11 | * warranty of any kind, whether express or implied. | ||
12 | */ | ||
13 | |||
14 | #ifndef __MACH_IRQS_H | ||
15 | #define __MACH_IRQS_H | ||
16 | |||
17 | /* IRQ definitions */ | ||
18 | #define IRQ_HW_ACCEL_MOD_0 0 | ||
19 | #define IRQ_INTRCOMM_RAS_ARM 1 | ||
20 | #define IRQ_CPU_GPT1_1 2 | ||
21 | #define IRQ_CPU_GPT1_2 3 | ||
22 | #define IRQ_BASIC_GPT1_1 4 | ||
23 | #define IRQ_BASIC_GPT1_2 5 | ||
24 | #define IRQ_BASIC_GPT2_1 6 | ||
25 | #define IRQ_BASIC_GPT2_2 7 | ||
26 | #define IRQ_BASIC_DMA 8 | ||
27 | #define IRQ_BASIC_SMI 9 | ||
28 | #define IRQ_BASIC_RTC 10 | ||
29 | #define IRQ_BASIC_GPIO 11 | ||
30 | #define IRQ_BASIC_WDT 12 | ||
31 | #define IRQ_DDR_CONTROLLER 13 | ||
32 | #define IRQ_SYS_ERROR 14 | ||
33 | #define IRQ_WAKEUP_RCV 15 | ||
34 | #define IRQ_JPEG 16 | ||
35 | #define IRQ_IRDA 17 | ||
36 | #define IRQ_ADC 18 | ||
37 | #define IRQ_UART 19 | ||
38 | #define IRQ_SSP 20 | ||
39 | #define IRQ_I2C 21 | ||
40 | #define IRQ_MAC_1 22 | ||
41 | #define IRQ_MAC_2 23 | ||
42 | #define IRQ_USB_DEV 24 | ||
43 | #define IRQ_USB_H_OHCI_0 25 | ||
44 | #define IRQ_USB_H_EHCI_0 26 | ||
45 | #define IRQ_USB_H_EHCI_1 IRQ_USB_H_EHCI_0 | ||
46 | #define IRQ_USB_H_OHCI_1 27 | ||
47 | #define IRQ_GEN_RAS_1 28 | ||
48 | #define IRQ_GEN_RAS_2 29 | ||
49 | #define IRQ_GEN_RAS_3 30 | ||
50 | #define IRQ_HW_ACCEL_MOD_1 31 | ||
51 | #define IRQ_VIC_END 32 | ||
52 | |||
53 | #define SPEAR_GPIO_INT_BASE IRQ_VIC_END | ||
54 | |||
55 | #ifdef CONFIG_MACH_SPEAR300 | ||
56 | #define SPEAR_GPIO1_INT_BASE (SPEAR_GPIO_INT_BASE + 8) | ||
57 | #define SPEAR_GPIO_INT_END (SPEAR_GPIO1_INT_BASE + 8) | ||
58 | #else | ||
59 | #define SPEAR_GPIO_INT_END (SPEAR_GPIO_INT_BASE + 8) | ||
60 | #endif | ||
61 | |||
62 | #define VIRTUAL_IRQS (SPEAR_GPIO_INT_END - IRQ_VIC_END) | ||
63 | #define NR_IRQS (IRQ_VIC_END + VIRTUAL_IRQS) | ||
64 | |||
65 | #endif /* __MACH_IRQS_H */ | ||