mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
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>
This commit is contained in:
parent
d9831a41e3
commit
0aeee715b0
@ -478,6 +478,7 @@ static inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set)
|
||||
*/
|
||||
enum bcm63xx_irq {
|
||||
IRQ_TIMER = 0,
|
||||
IRQ_SPI,
|
||||
IRQ_UART0,
|
||||
IRQ_UART1,
|
||||
IRQ_DSL,
|
||||
@ -509,6 +510,7 @@ enum bcm63xx_irq {
|
||||
* 6338 irqs
|
||||
*/
|
||||
#define BCM_6338_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
||||
#define BCM_6338_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
||||
#define BCM_6338_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
||||
#define BCM_6338_UART1_IRQ 0
|
||||
#define BCM_6338_DSL_IRQ (IRQ_INTERNAL_BASE + 5)
|
||||
@ -539,6 +541,7 @@ enum bcm63xx_irq {
|
||||
* 6345 irqs
|
||||
*/
|
||||
#define BCM_6345_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
||||
#define BCM_6345_SPI_IRQ 0
|
||||
#define BCM_6345_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
||||
#define BCM_6345_UART1_IRQ 0
|
||||
#define BCM_6345_DSL_IRQ (IRQ_INTERNAL_BASE + 3)
|
||||
@ -569,6 +572,7 @@ enum bcm63xx_irq {
|
||||
* 6348 irqs
|
||||
*/
|
||||
#define BCM_6348_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
||||
#define BCM_6348_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
||||
#define BCM_6348_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
||||
#define BCM_6348_UART1_IRQ 0
|
||||
#define BCM_6348_DSL_IRQ (IRQ_INTERNAL_BASE + 4)
|
||||
@ -599,6 +603,7 @@ enum bcm63xx_irq {
|
||||
* 6358 irqs
|
||||
*/
|
||||
#define BCM_6358_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
||||
#define BCM_6358_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
||||
#define BCM_6358_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
||||
#define BCM_6358_UART1_IRQ (IRQ_INTERNAL_BASE + 3)
|
||||
#define BCM_6358_DSL_IRQ (IRQ_INTERNAL_BASE + 29)
|
||||
@ -638,6 +643,7 @@ enum bcm63xx_irq {
|
||||
#define BCM_6368_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32)
|
||||
|
||||
#define BCM_6368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
||||
#define BCM_6368_SPI_IRQ (IRQ_INTERNAL_BASE + 1)
|
||||
#define BCM_6368_UART0_IRQ (IRQ_INTERNAL_BASE + 2)
|
||||
#define BCM_6368_UART1_IRQ (IRQ_INTERNAL_BASE + 3)
|
||||
#define BCM_6368_DSL_IRQ (IRQ_INTERNAL_BASE + 4)
|
||||
@ -677,6 +683,7 @@ extern const int *bcm63xx_irqs;
|
||||
|
||||
#define __GEN_CPU_IRQ_TABLE(__cpu) \
|
||||
[IRQ_TIMER] = BCM_## __cpu ##_TIMER_IRQ, \
|
||||
[IRQ_SPI] = BCM_## __cpu ##_SPI_IRQ, \
|
||||
[IRQ_UART0] = BCM_## __cpu ##_UART0_IRQ, \
|
||||
[IRQ_UART1] = BCM_## __cpu ##_UART1_IRQ, \
|
||||
[IRQ_DSL] = BCM_## __cpu ##_DSL_IRQ, \
|
||||
|
Loading…
Reference in New Issue
Block a user