Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204539
b: refs/heads/master
c: eebacda
h: refs/heads/master
i:
  204537: d68f2c0
  204535: 73596c0
v: v3
  • Loading branch information
Shinya Kuribayashi authored and Ralf Baechle committed Aug 5, 2010
1 parent 7abb38a commit c457570
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d1929c7662d5da3badcf0df2ca5c9b2dc15db97
refs/heads/master: eebacda40f2f9818c92f61b2228c7888e1f4926c
8 changes: 4 additions & 4 deletions trunk/arch/mips/emma/markeins/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,21 +301,21 @@ void __init arch_init_irq(void)
/* setup cascade interrupts */
setup_irq(EMMA2RH_IRQ_BASE + EMMA2RH_SW_CASCADE, &irq_cascade);
setup_irq(EMMA2RH_IRQ_BASE + EMMA2RH_GPIO_CASCADE, &irq_cascade);
setup_irq(CPU_IRQ_BASE + CPU_EMMA2RH_CASCADE, &irq_cascade);
setup_irq(MIPS_CPU_IRQ_BASE + CPU_EMMA2RH_CASCADE, &irq_cascade);
}

asmlinkage void plat_irq_dispatch(void)
{
unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM;

if (pending & STATUSF_IP7)
do_IRQ(CPU_IRQ_BASE + 7);
do_IRQ(MIPS_CPU_IRQ_BASE + 7);
else if (pending & STATUSF_IP2)
emma2rh_irq_dispatch();
else if (pending & STATUSF_IP1)
do_IRQ(CPU_IRQ_BASE + 1);
do_IRQ(MIPS_CPU_IRQ_BASE + 1);
else if (pending & STATUSF_IP0)
do_IRQ(CPU_IRQ_BASE + 0);
do_IRQ(MIPS_CPU_IRQ_BASE + 0);
else
spurious_interrupt();
}
4 changes: 1 addition & 3 deletions trunk/arch/mips/include/asm/emma/emma2rh.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,10 @@
#define EMMA2RH_PCI_CONFIG_BASE EMMA2RH_PCI_IO_BASE
#define EMMA2RH_PCI_CONFIG_SIZE EMMA2RH_PCI_IO_SIZE

#define NUM_CPU_IRQ 8
#define NUM_EMMA2RH_IRQ 96

#define CPU_EMMA2RH_CASCADE 2
#define CPU_IRQ_BASE MIPS_CPU_IRQ_BASE
#define EMMA2RH_IRQ_BASE (CPU_IRQ_BASE + NUM_CPU_IRQ)
#define EMMA2RH_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)

/*
* emma2rh irq defs
Expand Down

0 comments on commit c457570

Please sign in to comment.