aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson/lemote-2f/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/loongson/lemote-2f/irq.c')
-rw-r--r--arch/mips/loongson/lemote-2f/irq.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/mips/loongson/lemote-2f/irq.c b/arch/mips/loongson/lemote-2f/irq.c
index 1d8b4d28a058..c6db7e7df963 100644
--- a/arch/mips/loongson/lemote-2f/irq.c
+++ b/arch/mips/loongson/lemote-2f/irq.c
@@ -91,13 +91,6 @@ void mach_irq_dispatch(unsigned int pending)
91 spurious_interrupt(); 91 spurious_interrupt();
92} 92}
93 93
94void __init set_irq_trigger_mode(void)
95{
96 /* setup cs5536 as high level trigger */
97 LOONGSON_INTPOL = LOONGSON_INT_BIT_INT0 | LOONGSON_INT_BIT_INT1;
98 LOONGSON_INTEDGE &= ~(LOONGSON_INT_BIT_INT0 | LOONGSON_INT_BIT_INT1);
99}
100
101static irqreturn_t ip6_action(int cpl, void *dev_id) 94static irqreturn_t ip6_action(int cpl, void *dev_id)
102{ 95{
103 return IRQ_HANDLED; 96 return IRQ_HANDLED;
@@ -122,6 +115,10 @@ void __init mach_init_irq(void)
122 * 32-63 ------> bonito irq 115 * 32-63 ------> bonito irq
123 */ 116 */
124 117
118 /* setup cs5536 as high level trigger */
119 LOONGSON_INTPOL = LOONGSON_INT_BIT_INT0 | LOONGSON_INT_BIT_INT1;
120 LOONGSON_INTEDGE &= ~(LOONGSON_INT_BIT_INT0 | LOONGSON_INT_BIT_INT1);
121
125 /* Sets the first-level interrupt dispatcher. */ 122 /* Sets the first-level interrupt dispatcher. */
126 mips_cpu_irq_init(); 123 mips_cpu_irq_init();
127 init_i8259_irqs(); 124 init_i8259_irqs();