diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-07-04 10:58:27 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-07-23 08:54:32 -0400 |
commit | 0aeee715b0c30a19a81d06b5e8c7e18a41a4d17d (patch) | |
tree | 8a4f64b8cc50b79815cb1e297daed915d70447c8 /arch/mips/include | |
parent | d9831a41e3409ae60e0cac353272d8ae4996b442 (diff) |
MIPS: BCM63xx: Add IRQ_SPI and CPU specific SPI IRQ values
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: spi-devel-general@lists.sourceforge.net
Patchwork: https://patchwork.linux-mips.org/patch/3320/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h index 5b8d15bb5fe8..9975727c3dc6 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h | |||
@@ -478,6 +478,7 @@ static inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set) | |||
478 | */ | 478 | */ |
479 | enum bcm63xx_irq { | 479 | enum bcm63xx_irq { |
480 | IRQ_TIMER = 0, | 480 | IRQ_TIMER = 0, |
481 | IRQ_SPI, | ||
481 | IRQ_UART0, | 482 | IRQ_UART0, |
482 | IRQ_UART1, | 483 | IRQ_UART1, |
483 | IRQ_DSL, | 484 | IRQ_DSL, |
@@ -509,6 +510,7 @@ enum bcm63xx_irq { | |||
509 | * 6338 irqs | 510 | * 6338 irqs |
510 | */ | 511 | */ |
511 | #define BCM_6338_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) | 512 | #define BCM_6338_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) |
513 | #define BCM_6338_SPI_IRQ (IRQ_INTERNAL_BASE + 1) | ||
512 | #define BCM_6338_UART0_IRQ (IRQ_INTERNAL_BASE + 2) | 514 | #define BCM_6338_UART0_IRQ (IRQ_INTERNAL_BASE + 2) |
513 | #define BCM_6338_UART1_IRQ 0 | 515 | #define BCM_6338_UART1_IRQ 0 |
514 | #define BCM_6338_DSL_IRQ (IRQ_INTERNAL_BASE + 5) | 516 | #define BCM_6338_DSL_IRQ (IRQ_INTERNAL_BASE + 5) |
@@ -539,6 +541,7 @@ enum bcm63xx_irq { | |||
539 | * 6345 irqs | 541 | * 6345 irqs |
540 | */ | 542 | */ |
541 | #define BCM_6345_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) | 543 | #define BCM_6345_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) |
544 | #define BCM_6345_SPI_IRQ 0 | ||
542 | #define BCM_6345_UART0_IRQ (IRQ_INTERNAL_BASE + 2) | 545 | #define BCM_6345_UART0_IRQ (IRQ_INTERNAL_BASE + 2) |
543 | #define BCM_6345_UART1_IRQ 0 | 546 | #define BCM_6345_UART1_IRQ 0 |
544 | #define BCM_6345_DSL_IRQ (IRQ_INTERNAL_BASE + 3) | 547 | #define BCM_6345_DSL_IRQ (IRQ_INTERNAL_BASE + 3) |
@@ -569,6 +572,7 @@ enum bcm63xx_irq { | |||
569 | * 6348 irqs | 572 | * 6348 irqs |
570 | */ | 573 | */ |
571 | #define BCM_6348_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) | 574 | #define BCM_6348_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) |
575 | #define BCM_6348_SPI_IRQ (IRQ_INTERNAL_BASE + 1) | ||
572 | #define BCM_6348_UART0_IRQ (IRQ_INTERNAL_BASE + 2) | 576 | #define BCM_6348_UART0_IRQ (IRQ_INTERNAL_BASE + 2) |
573 | #define BCM_6348_UART1_IRQ 0 | 577 | #define BCM_6348_UART1_IRQ 0 |
574 | #define BCM_6348_DSL_IRQ (IRQ_INTERNAL_BASE + 4) | 578 | #define BCM_6348_DSL_IRQ (IRQ_INTERNAL_BASE + 4) |
@@ -599,6 +603,7 @@ enum bcm63xx_irq { | |||
599 | * 6358 irqs | 603 | * 6358 irqs |
600 | */ | 604 | */ |
601 | #define BCM_6358_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) | 605 | #define BCM_6358_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) |
606 | #define BCM_6358_SPI_IRQ (IRQ_INTERNAL_BASE + 1) | ||
602 | #define BCM_6358_UART0_IRQ (IRQ_INTERNAL_BASE + 2) | 607 | #define BCM_6358_UART0_IRQ (IRQ_INTERNAL_BASE + 2) |
603 | #define BCM_6358_UART1_IRQ (IRQ_INTERNAL_BASE + 3) | 608 | #define BCM_6358_UART1_IRQ (IRQ_INTERNAL_BASE + 3) |
604 | #define BCM_6358_DSL_IRQ (IRQ_INTERNAL_BASE + 29) | 609 | #define BCM_6358_DSL_IRQ (IRQ_INTERNAL_BASE + 29) |
@@ -638,6 +643,7 @@ enum bcm63xx_irq { | |||
638 | #define BCM_6368_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) | 643 | #define BCM_6368_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) |
639 | 644 | ||
640 | #define BCM_6368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) | 645 | #define BCM_6368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) |
646 | #define BCM_6368_SPI_IRQ (IRQ_INTERNAL_BASE + 1) | ||
641 | #define BCM_6368_UART0_IRQ (IRQ_INTERNAL_BASE + 2) | 647 | #define BCM_6368_UART0_IRQ (IRQ_INTERNAL_BASE + 2) |
642 | #define BCM_6368_UART1_IRQ (IRQ_INTERNAL_BASE + 3) | 648 | #define BCM_6368_UART1_IRQ (IRQ_INTERNAL_BASE + 3) |
643 | #define BCM_6368_DSL_IRQ (IRQ_INTERNAL_BASE + 4) | 649 | #define BCM_6368_DSL_IRQ (IRQ_INTERNAL_BASE + 4) |
@@ -677,6 +683,7 @@ extern const int *bcm63xx_irqs; | |||
677 | 683 | ||
678 | #define __GEN_CPU_IRQ_TABLE(__cpu) \ | 684 | #define __GEN_CPU_IRQ_TABLE(__cpu) \ |
679 | [IRQ_TIMER] = BCM_## __cpu ##_TIMER_IRQ, \ | 685 | [IRQ_TIMER] = BCM_## __cpu ##_TIMER_IRQ, \ |
686 | [IRQ_SPI] = BCM_## __cpu ##_SPI_IRQ, \ | ||
680 | [IRQ_UART0] = BCM_## __cpu ##_UART0_IRQ, \ | 687 | [IRQ_UART0] = BCM_## __cpu ##_UART0_IRQ, \ |
681 | [IRQ_UART1] = BCM_## __cpu ##_UART1_IRQ, \ | 688 | [IRQ_UART1] = BCM_## __cpu ##_UART1_IRQ, \ |
682 | [IRQ_DSL] = BCM_## __cpu ##_DSL_IRQ, \ | 689 | [IRQ_DSL] = BCM_## __cpu ##_DSL_IRQ, \ |