[MIPS] SNI: MIPS_CPU_IRQ_BASE cleanup
Use MIPS_CPU_IRQ_BASE instead of own define. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
3dac2561e2
commit
f13cc01d8d
@@ -336,9 +336,9 @@ static void sni_pcimt_hwint(void)
|
||||
u32 pending = (read_c0_cause() & read_c0_status());
|
||||
|
||||
if (pending & C_IRQ5)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 7);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 7);
|
||||
else if (pending & C_IRQ4)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 6);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 6);
|
||||
else if (pending & C_IRQ3)
|
||||
pcimt_hwint3();
|
||||
else if (pending & C_IRQ1)
|
||||
|
@@ -276,11 +276,11 @@ static void sni_pcit_hwint(void)
|
||||
if (pending & C_IRQ1)
|
||||
pcit_hwint1();
|
||||
else if (pending & C_IRQ2)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 4);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 4);
|
||||
else if (pending & C_IRQ3)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 5);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 5);
|
||||
else if (pending & C_IRQ5)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 7);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 7);
|
||||
}
|
||||
|
||||
static void sni_pcit_hwint_cplus(void)
|
||||
@@ -290,11 +290,11 @@ static void sni_pcit_hwint_cplus(void)
|
||||
if (pending & C_IRQ0)
|
||||
pcit_hwint0();
|
||||
else if (pending & C_IRQ2)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 4);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 4);
|
||||
else if (pending & C_IRQ3)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 5);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 5);
|
||||
else if (pending & C_IRQ5)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 7);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 7);
|
||||
}
|
||||
|
||||
void __init sni_pcit_irq_init(void)
|
||||
|
@@ -148,7 +148,7 @@ static void sni_rm200_hwint(void)
|
||||
int irq;
|
||||
|
||||
if (pending & C_IRQ5)
|
||||
do_IRQ (SNI_MIPS_IRQ_CPU_BASE + 7);
|
||||
do_IRQ (MIPS_CPU_IRQ_BASE + 7);
|
||||
else if (pending & C_IRQ0) {
|
||||
clear_c0_status (IE_IRQ0);
|
||||
mask = *(volatile u8 *)SNI_RM200_INT_ENA_REG ^ 0x1f;
|
||||
|
Reference in New Issue
Block a user