diff options
author | Jon Loeliger <jdl@jdl.com> | 2006-06-17 18:52:51 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-21 01:01:28 -0400 |
commit | 6b543404058a5ffdca8c48e95e0b8a69bb4bdba9 (patch) | |
tree | 0bde02196ca8de01df257679ddfc6ae66404472b /include/asm-powerpc/irq.h | |
parent | b809b3e86f39651475b30ceb1caf535071534d4d (diff) |
[POWERPC] Add 8641 Register space and IRQ definitions.
Signed-off-by: Jeff Brown <Jeff.Brown@freescale.com>
Signed-off-by: Xianghua Xiao <x.xiao@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/irq.h')
-rw-r--r-- | include/asm-powerpc/irq.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h index 7bc6d73b2823..7a762096f196 100644 --- a/include/asm-powerpc/irq.h +++ b/include/asm-powerpc/irq.h | |||
@@ -348,6 +348,92 @@ extern u64 ppc64_interrupt_controller; | |||
348 | #define SIU_INT_PC1 ((uint)0x3e+CPM_IRQ_OFFSET) | 348 | #define SIU_INT_PC1 ((uint)0x3e+CPM_IRQ_OFFSET) |
349 | #define SIU_INT_PC0 ((uint)0x3f+CPM_IRQ_OFFSET) | 349 | #define SIU_INT_PC0 ((uint)0x3f+CPM_IRQ_OFFSET) |
350 | 350 | ||
351 | #elif defined(CONFIG_PPC_86xx) | ||
352 | #include <asm/mpc86xx.h> | ||
353 | |||
354 | #define NR_EPIC_INTS 48 | ||
355 | #ifndef NR_8259_INTS | ||
356 | #define NR_8259_INTS 16 /*ULI 1575 can route 12 interrupts */ | ||
357 | #endif | ||
358 | #define NUM_8259_INTERRUPTS NR_8259_INTS | ||
359 | |||
360 | #ifndef I8259_OFFSET | ||
361 | #define I8259_OFFSET 0 | ||
362 | #endif | ||
363 | |||
364 | #define NR_IRQS 256 | ||
365 | |||
366 | /* Internal IRQs on MPC86xx OpenPIC */ | ||
367 | |||
368 | #ifndef MPC86xx_OPENPIC_IRQ_OFFSET | ||
369 | #define MPC86xx_OPENPIC_IRQ_OFFSET NR_8259_INTS | ||
370 | #endif | ||
371 | |||
372 | /* The 48 internal sources */ | ||
373 | #define MPC86xx_IRQ_NULL ( 0 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
374 | #define MPC86xx_IRQ_MCM ( 1 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
375 | #define MPC86xx_IRQ_DDR ( 2 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
376 | #define MPC86xx_IRQ_LBC ( 3 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
377 | #define MPC86xx_IRQ_DMA0 ( 4 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
378 | #define MPC86xx_IRQ_DMA1 ( 5 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
379 | #define MPC86xx_IRQ_DMA2 ( 6 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
380 | #define MPC86xx_IRQ_DMA3 ( 7 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
381 | |||
382 | /* no 10,11 */ | ||
383 | #define MPC86xx_IRQ_UART2 (12 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
384 | #define MPC86xx_IRQ_TSEC1_TX (13 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
385 | #define MPC86xx_IRQ_TSEC1_RX (14 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
386 | #define MPC86xx_IRQ_TSEC3_TX (15 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
387 | #define MPC86xx_IRQ_TSEC3_RX (16 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
388 | #define MPC86xx_IRQ_TSEC3_ERROR (17 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
389 | #define MPC86xx_IRQ_TSEC1_ERROR (18 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
390 | #define MPC86xx_IRQ_TSEC2_TX (19 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
391 | #define MPC86xx_IRQ_TSEC2_RX (20 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
392 | #define MPC86xx_IRQ_TSEC4_TX (21 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
393 | #define MPC86xx_IRQ_TSEC4_RX (22 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
394 | #define MPC86xx_IRQ_TSEC4_ERROR (23 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
395 | #define MPC86xx_IRQ_TSEC2_ERROR (24 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
396 | /* no 25 */ | ||
397 | #define MPC86xx_IRQ_UART1 (26 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
398 | #define MPC86xx_IRQ_IIC (27 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
399 | #define MPC86xx_IRQ_PERFMON (28 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
400 | /* no 29,30,31 */ | ||
401 | #define MPC86xx_IRQ_SRIO_ERROR (32 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
402 | #define MPC86xx_IRQ_SRIO_OUT_BELL (33 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
403 | #define MPC86xx_IRQ_SRIO_IN_BELL (34 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
404 | /* no 35,36 */ | ||
405 | #define MPC86xx_IRQ_SRIO_OUT_MSG1 (37 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
406 | #define MPC86xx_IRQ_SRIO_IN_MSG1 (38 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
407 | #define MPC86xx_IRQ_SRIO_OUT_MSG2 (39 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
408 | #define MPC86xx_IRQ_SRIO_IN_MSG2 (40 + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
409 | |||
410 | /* The 12 external interrupt lines */ | ||
411 | #define MPC86xx_IRQ_EXT_BASE 48 | ||
412 | #define MPC86xx_IRQ_EXT0 (0 + MPC86xx_IRQ_EXT_BASE \ | ||
413 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
414 | #define MPC86xx_IRQ_EXT1 (1 + MPC86xx_IRQ_EXT_BASE \ | ||
415 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
416 | #define MPC86xx_IRQ_EXT2 (2 + MPC86xx_IRQ_EXT_BASE \ | ||
417 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
418 | #define MPC86xx_IRQ_EXT3 (3 + MPC86xx_IRQ_EXT_BASE \ | ||
419 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
420 | #define MPC86xx_IRQ_EXT4 (4 + MPC86xx_IRQ_EXT_BASE \ | ||
421 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
422 | #define MPC86xx_IRQ_EXT5 (5 + MPC86xx_IRQ_EXT_BASE \ | ||
423 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
424 | #define MPC86xx_IRQ_EXT6 (6 + MPC86xx_IRQ_EXT_BASE \ | ||
425 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
426 | #define MPC86xx_IRQ_EXT7 (7 + MPC86xx_IRQ_EXT_BASE \ | ||
427 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
428 | #define MPC86xx_IRQ_EXT8 (8 + MPC86xx_IRQ_EXT_BASE \ | ||
429 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
430 | #define MPC86xx_IRQ_EXT9 (9 + MPC86xx_IRQ_EXT_BASE \ | ||
431 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
432 | #define MPC86xx_IRQ_EXT10 (10 + MPC86xx_IRQ_EXT_BASE \ | ||
433 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
434 | #define MPC86xx_IRQ_EXT11 (11 + MPC86xx_IRQ_EXT_BASE \ | ||
435 | + MPC86xx_OPENPIC_IRQ_OFFSET) | ||
436 | |||
351 | #else /* CONFIG_40x + CONFIG_8xx */ | 437 | #else /* CONFIG_40x + CONFIG_8xx */ |
352 | /* | 438 | /* |
353 | * this is the # irq's for all ppc arch's (pmac/chrp/prep) | 439 | * this is the # irq's for all ppc arch's (pmac/chrp/prep) |