2 * DaVinci interrupt controller definitions
4 * Copyright (C) 2006 Texas Instruments.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
11 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
12 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
14 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
15 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
16 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
18 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
19 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
20 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 675 Mass Ave, Cambridge, MA 02139, USA.
27 #ifndef __ASM_ARCH_IRQS_H
28 #define __ASM_ARCH_IRQS_H
31 #define DAVINCI_ARM_INTC_BASE 0x01C48000
33 #define DAVINCI_INTC_TYPE_AINTC 0
34 #define DAVINCI_INTC_TYPE_CP_INTC 1
48 #define IRQ_VLCDINT 11
50 #define IRQ_EMACINT 13
53 #define IRQ_CCERRINT 17
54 #define IRQ_TCERRINT0 18
55 #define IRQ_TCERRINT 19
63 #define IRQ_SDIOINT 27
66 #define IRQ_AEMIFINT 30
68 #define IRQ_TINT0_TINT12 32
69 #define IRQ_TINT0_TINT34 33
70 #define IRQ_TINT1_TINT12 34
71 #define IRQ_TINT1_TINT34 35
72 #define IRQ_PWMINT0 36
73 #define IRQ_PWMINT1 37
74 #define IRQ_PWMINT2 38
76 #define IRQ_UARTINT0 40
77 #define IRQ_UARTINT1 41
78 #define IRQ_UARTINT2 42
82 #define IRQ_DSP2ARM0 46
83 #define IRQ_DSP2ARM1 47
92 #define IRQ_GPIOBNK0 56
93 #define IRQ_GPIOBNK1 57
94 #define IRQ_GPIOBNK2 58
95 #define IRQ_GPIOBNK3 59
96 #define IRQ_GPIOBNK4 60
101 #define DAVINCI_N_AINTC_IRQ 64
102 #define DAVINCI_N_GPIO 104
104 #define NR_IRQS (DAVINCI_N_AINTC_IRQ + DAVINCI_N_GPIO)
106 #define ARCH_TIMER_IRQ IRQ_TINT1_TINT34
108 /* DaVinci DM6467-specific Interrupts */
109 #define IRQ_DM646X_VP_VERTINT0 0
110 #define IRQ_DM646X_VP_VERTINT1 1
111 #define IRQ_DM646X_VP_VERTINT2 2
112 #define IRQ_DM646X_VP_VERTINT3 3
113 #define IRQ_DM646X_VP_ERRINT 4
114 #define IRQ_DM646X_RESERVED_1 5
115 #define IRQ_DM646X_RESERVED_2 6
116 #define IRQ_DM646X_WDINT 7
117 #define IRQ_DM646X_CRGENINT0 8
118 #define IRQ_DM646X_CRGENINT1 9
119 #define IRQ_DM646X_TSIFINT0 10
120 #define IRQ_DM646X_TSIFINT1 11
121 #define IRQ_DM646X_VDCEINT 12
122 #define IRQ_DM646X_USBINT 13
123 #define IRQ_DM646X_USBDMAINT 14
124 #define IRQ_DM646X_PCIINT 15
125 #define IRQ_DM646X_TCERRINT2 20
126 #define IRQ_DM646X_TCERRINT3 21
127 #define IRQ_DM646X_IDE 22
128 #define IRQ_DM646X_HPIINT 23
129 #define IRQ_DM646X_EMACRXTHINT 24
130 #define IRQ_DM646X_EMACRXINT 25
131 #define IRQ_DM646X_EMACTXINT 26
132 #define IRQ_DM646X_EMACMISCINT 27
133 #define IRQ_DM646X_MCASP0TXINT 28
134 #define IRQ_DM646X_MCASP0RXINT 29
135 #define IRQ_DM646X_RESERVED_3 31
136 #define IRQ_DM646X_MCASP1TXINT 32
137 #define IRQ_DM646X_VLQINT 38
138 #define IRQ_DM646X_UARTINT2 42
139 #define IRQ_DM646X_SPINT0 43
140 #define IRQ_DM646X_SPINT1 44
141 #define IRQ_DM646X_DSP2ARMINT 45
142 #define IRQ_DM646X_RESERVED_4 46
143 #define IRQ_DM646X_PSCINT 47
144 #define IRQ_DM646X_GPIO0 48
145 #define IRQ_DM646X_GPIO1 49
146 #define IRQ_DM646X_GPIO2 50
147 #define IRQ_DM646X_GPIO3 51
148 #define IRQ_DM646X_GPIO4 52
149 #define IRQ_DM646X_GPIO5 53
150 #define IRQ_DM646X_GPIO6 54
151 #define IRQ_DM646X_GPIO7 55
152 #define IRQ_DM646X_GPIOBNK0 56
153 #define IRQ_DM646X_GPIOBNK1 57
154 #define IRQ_DM646X_GPIOBNK2 58
155 #define IRQ_DM646X_DDRINT 59
156 #define IRQ_DM646X_AEMIFINT 60
158 /* DaVinci DM355-specific Interrupts */
159 #define IRQ_DM355_CCDC_VDINT0 0
160 #define IRQ_DM355_CCDC_VDINT1 1
161 #define IRQ_DM355_CCDC_VDINT2 2
162 #define IRQ_DM355_IPIPE_HST 3
163 #define IRQ_DM355_H3AINT 4
164 #define IRQ_DM355_IPIPE_SDR 5
165 #define IRQ_DM355_IPIPEIFINT 6
166 #define IRQ_DM355_OSDINT 7
167 #define IRQ_DM355_VENCINT 8
168 #define IRQ_DM355_IMCOPINT 11
169 #define IRQ_DM355_RTOINT 13
170 #define IRQ_DM355_TINT4 13
171 #define IRQ_DM355_TINT2_TINT12 13
172 #define IRQ_DM355_UARTINT2 14
173 #define IRQ_DM355_TINT5 14
174 #define IRQ_DM355_TINT2_TINT34 14
175 #define IRQ_DM355_TINT6 15
176 #define IRQ_DM355_TINT3_TINT12 15
177 #define IRQ_DM355_SPINT1_0 17
178 #define IRQ_DM355_SPINT1_1 18
179 #define IRQ_DM355_SPINT2_0 19
180 #define IRQ_DM355_SPINT2_1 21
181 #define IRQ_DM355_TINT7 22
182 #define IRQ_DM355_TINT3_TINT34 22
183 #define IRQ_DM355_SDIOINT0 23
184 #define IRQ_DM355_MMCINT0 26
185 #define IRQ_DM355_MSINT 26
186 #define IRQ_DM355_MMCINT1 27
187 #define IRQ_DM355_PWMINT3 28
188 #define IRQ_DM355_SDIOINT1 31
189 #define IRQ_DM355_SPINT0_0 42
190 #define IRQ_DM355_SPINT0_1 43
191 #define IRQ_DM355_GPIO0 44
192 #define IRQ_DM355_GPIO1 45
193 #define IRQ_DM355_GPIO2 46
194 #define IRQ_DM355_GPIO3 47
195 #define IRQ_DM355_GPIO4 48
196 #define IRQ_DM355_GPIO5 49
197 #define IRQ_DM355_GPIO6 50
198 #define IRQ_DM355_GPIO7 51
199 #define IRQ_DM355_GPIO8 52
200 #define IRQ_DM355_GPIO9 53
201 #define IRQ_DM355_GPIOBNK0 54
202 #define IRQ_DM355_GPIOBNK1 55
203 #define IRQ_DM355_GPIOBNK2 56
204 #define IRQ_DM355_GPIOBNK3 57
205 #define IRQ_DM355_GPIOBNK4 58
206 #define IRQ_DM355_GPIOBNK5 59
207 #define IRQ_DM355_GPIOBNK6 60
209 #endif /* __ASM_ARCH_IRQS_H */