aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-blackfin/mach-bf548/irq.h
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2007-07-12 04:17:18 -0400
committerBryan Wu <bryan.wu@analog.com>2007-07-12 04:17:18 -0400
commit34e0fc89bdc1e6f50032dc43ed23167f5dbad6da (patch)
treeb76cb79b0e2b7254b0942de510c1ce459df83567 /include/asm-blackfin/mach-bf548/irq.h
parent1f83b8f148a1eb967d2a628cbb741cd56fb54572 (diff)
Blackfin arch: Enable BF54x PIN/GPIO interrupts
Signed-off-bu: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'include/asm-blackfin/mach-bf548/irq.h')
-rw-r--r--include/asm-blackfin/mach-bf548/irq.h101
1 files changed, 96 insertions, 5 deletions
diff --git a/include/asm-blackfin/mach-bf548/irq.h b/include/asm-blackfin/mach-bf548/irq.h
index 93f5db0f4657..58c87f04e018 100644
--- a/include/asm-blackfin/mach-bf548/irq.h
+++ b/include/asm-blackfin/mach-bf548/irq.h
@@ -1,6 +1,6 @@
1/* 1/*
2 * file: include/asm-blackfin/mach-bf548/irq.h 2 * file: include/asm-blackfin/mach-bf548/irq.h
3 * based on: include/asm-blackfin/mach-bf537/irq.h 3 * based on: include/asm-blackfin/mach-bf537/irq.h
4 * author: Roy Huang (roy.huang@analog.com) 4 * author: Roy Huang (roy.huang@analog.com)
5 * 5 *
6 * created: 6 * created:
@@ -190,7 +190,7 @@ Events (highest priority) EMU 0
190#define IRQ_PB12 BFIN_PB_IRQ(12) 190#define IRQ_PB12 BFIN_PB_IRQ(12)
191#define IRQ_PB13 BFIN_PB_IRQ(13) 191#define IRQ_PB13 BFIN_PB_IRQ(13)
192#define IRQ_PB14 BFIN_PB_IRQ(14) 192#define IRQ_PB14 BFIN_PB_IRQ(14)
193#define IRQ_PB15 BFIN_PB_IRQ(15) 193#define IRQ_PB15 BFIN_PB_IRQ(15) /* N/A */
194 194
195#define BFIN_PC_IRQ(x) ((x) + IRQ_PB15 + 1) 195#define BFIN_PC_IRQ(x) ((x) + IRQ_PB15 + 1)
196#define IRQ_PC0 BFIN_PC_IRQ(0) 196#define IRQ_PC0 BFIN_PC_IRQ(0)
@@ -207,8 +207,8 @@ Events (highest priority) EMU 0
207#define IRQ_PC11 BFIN_PC_IRQ(11) 207#define IRQ_PC11 BFIN_PC_IRQ(11)
208#define IRQ_PC12 BFIN_PC_IRQ(12) 208#define IRQ_PC12 BFIN_PC_IRQ(12)
209#define IRQ_PC13 BFIN_PC_IRQ(13) 209#define IRQ_PC13 BFIN_PC_IRQ(13)
210#define IRQ_PC14 BFIN_PC_IRQ(14) 210#define IRQ_PC14 BFIN_PC_IRQ(14) /* N/A */
211#define IRQ_PC15 BFIN_PC_IRQ(15) 211#define IRQ_PC15 BFIN_PC_IRQ(15) /* N/A */
212 212
213#define BFIN_PD_IRQ(x) ((x) + IRQ_PC15 + 1) 213#define BFIN_PD_IRQ(x) ((x) + IRQ_PC15 + 1)
214#define IRQ_PD0 BFIN_PD_IRQ(0) 214#define IRQ_PD0 BFIN_PD_IRQ(0)
@@ -246,9 +246,100 @@ Events (highest priority) EMU 0
246#define IRQ_PE14 BFIN_PE_IRQ(14) 246#define IRQ_PE14 BFIN_PE_IRQ(14)
247#define IRQ_PE15 BFIN_PE_IRQ(15) 247#define IRQ_PE15 BFIN_PE_IRQ(15)
248 248
249#define BFIN_PF_IRQ(x) ((x) + IRQ_PE15 + 1)
250#define IRQ_PF0 BFIN_PF_IRQ(0)
251#define IRQ_PF1 BFIN_PF_IRQ(1)
252#define IRQ_PF2 BFIN_PF_IRQ(2)
253#define IRQ_PF3 BFIN_PF_IRQ(3)
254#define IRQ_PF4 BFIN_PF_IRQ(4)
255#define IRQ_PF5 BFIN_PF_IRQ(5)
256#define IRQ_PF6 BFIN_PF_IRQ(6)
257#define IRQ_PF7 BFIN_PF_IRQ(7)
258#define IRQ_PF8 BFIN_PF_IRQ(8)
259#define IRQ_PF9 BFIN_PF_IRQ(9)
260#define IRQ_PF10 BFIN_PF_IRQ(10)
261#define IRQ_PF11 BFIN_PF_IRQ(11)
262#define IRQ_PF12 BFIN_PF_IRQ(12)
263#define IRQ_PF13 BFIN_PF_IRQ(13)
264#define IRQ_PF14 BFIN_PF_IRQ(14)
265#define IRQ_PF15 BFIN_PF_IRQ(15)
266
267#define BFIN_PG_IRQ(x) ((x) + IRQ_PF15 + 1)
268#define IRQ_PG0 BFIN_PG_IRQ(0)
269#define IRQ_PG1 BFIN_PG_IRQ(1)
270#define IRQ_PG2 BFIN_PG_IRQ(2)
271#define IRQ_PG3 BFIN_PG_IRQ(3)
272#define IRQ_PG4 BFIN_PG_IRQ(4)
273#define IRQ_PG5 BFIN_PG_IRQ(5)
274#define IRQ_PG6 BFIN_PG_IRQ(6)
275#define IRQ_PG7 BFIN_PG_IRQ(7)
276#define IRQ_PG8 BFIN_PG_IRQ(8)
277#define IRQ_PG9 BFIN_PG_IRQ(9)
278#define IRQ_PG10 BFIN_PG_IRQ(10)
279#define IRQ_PG11 BFIN_PG_IRQ(11)
280#define IRQ_PG12 BFIN_PG_IRQ(12)
281#define IRQ_PG13 BFIN_PG_IRQ(13)
282#define IRQ_PG14 BFIN_PG_IRQ(14)
283#define IRQ_PG15 BFIN_PG_IRQ(15)
284
285#define BFIN_PH_IRQ(x) ((x) + IRQ_PG15 + 1)
286#define IRQ_PH0 BFIN_PH_IRQ(0)
287#define IRQ_PH1 BFIN_PH_IRQ(1)
288#define IRQ_PH2 BFIN_PH_IRQ(2)
289#define IRQ_PH3 BFIN_PH_IRQ(3)
290#define IRQ_PH4 BFIN_PH_IRQ(4)
291#define IRQ_PH5 BFIN_PH_IRQ(5)
292#define IRQ_PH6 BFIN_PH_IRQ(6)
293#define IRQ_PH7 BFIN_PH_IRQ(7)
294#define IRQ_PH8 BFIN_PH_IRQ(8)
295#define IRQ_PH9 BFIN_PH_IRQ(9)
296#define IRQ_PH10 BFIN_PH_IRQ(10)
297#define IRQ_PH11 BFIN_PH_IRQ(11)
298#define IRQ_PH12 BFIN_PH_IRQ(12)
299#define IRQ_PH13 BFIN_PH_IRQ(13)
300#define IRQ_PH14 BFIN_PH_IRQ(14) /* N/A */
301#define IRQ_PH15 BFIN_PH_IRQ(15) /* N/A */
302
303#define BFIN_PI_IRQ(x) ((x) + IRQ_PH15 + 1)
304#define IRQ_PI0 BFIN_PI_IRQ(0)
305#define IRQ_PI1 BFIN_PI_IRQ(1)
306#define IRQ_PI2 BFIN_PI_IRQ(2)
307#define IRQ_PI3 BFIN_PI_IRQ(3)
308#define IRQ_PI4 BFIN_PI_IRQ(4)
309#define IRQ_PI5 BFIN_PI_IRQ(5)
310#define IRQ_PI6 BFIN_PI_IRQ(6)
311#define IRQ_PI7 BFIN_PI_IRQ(7)
312#define IRQ_PI8 BFIN_PI_IRQ(8)
313#define IRQ_PI9 BFIN_PI_IRQ(9)
314#define IRQ_PI10 BFIN_PI_IRQ(10)
315#define IRQ_PI11 BFIN_PI_IRQ(11)
316#define IRQ_PI12 BFIN_PI_IRQ(12)
317#define IRQ_PI13 BFIN_PI_IRQ(13)
318#define IRQ_PI14 BFIN_PI_IRQ(14)
319#define IRQ_PI15 BFIN_PI_IRQ(15)
320
321#if 0
322#define BFIN_PJ_IRQ(x) ((x) + IRQ_PI15 + 1)
323#define IRQ_PJ0 BFIN_PJ_IRQ(0)
324#define IRQ_PJ1 BFIN_PJ_IRQ(1)
325#define IRQ_PJ2 BFIN_PJ_IRQ(2)
326#define IRQ_PJ3 BFIN_PJ_IRQ(3)
327#define IRQ_PJ4 BFIN_PJ_IRQ(4)
328#define IRQ_PJ5 BFIN_PJ_IRQ(5)
329#define IRQ_PJ6 BFIN_PJ_IRQ(6)
330#define IRQ_PJ7 BFIN_PJ_IRQ(7)
331#define IRQ_PJ8 BFIN_PJ_IRQ(8)
332#define IRQ_PJ9 BFIN_PJ_IRQ(9)
333#define IRQ_PJ10 BFIN_PJ_IRQ(10)
334#define IRQ_PJ11 BFIN_PJ_IRQ(11)
335#define IRQ_PJ12 BFIN_PJ_IRQ(12)
336#define IRQ_PJ13 BFIN_PJ_IRQ(13)
337#define IRQ_PJ14 BFIN_PJ_IRQ(14) /* N/A */
338#define IRQ_PJ15 BFIN_PJ_IRQ(15) /* N/A */
339#endif
249 340
250#ifdef CONFIG_IRQCHIP_DEMUX_GPIO 341#ifdef CONFIG_IRQCHIP_DEMUX_GPIO
251#define NR_IRQS (IRQ_PE15+1) 342#define NR_IRQS (IRQ_PI15+1)
252#else 343#else
253#define NR_IRQS (SYS_IRQS+1) 344#define NR_IRQS (SYS_IRQS+1)
254#endif 345#endif