Commit a0e31fb0 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

[MIPS] TXx9: Fix JMR3927 irq numbers

* Fix wrong txx9_clockevent interrupt number
* Fix TXX9_IRQ_BASE for JMR3927+FPCIB case
Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8b32d6d0
...@@ -85,7 +85,7 @@ static void jmr3927_machine_power_off(void) ...@@ -85,7 +85,7 @@ static void jmr3927_machine_power_off(void)
static void __init jmr3927_time_init(void) static void __init jmr3927_time_init(void)
{ {
txx9_clockevent_init(TX3927_TMR_REG(0), txx9_clockevent_init(TX3927_TMR_REG(0),
TXX9_IRQ_BASE + JMR3927_IRQ_IRC_TMR(0), JMR3927_IRQ_IRC_TMR(0),
JMR3927_IMCLK); JMR3927_IMCLK);
txx9_clocksource_init(TX3927_TMR_REG(1), JMR3927_IMCLK); txx9_clocksource_init(TX3927_TMR_REG(1), JMR3927_IMCLK);
} }
......
...@@ -14,8 +14,12 @@ ...@@ -14,8 +14,12 @@
#ifdef CONFIG_IRQ_CPU #ifdef CONFIG_IRQ_CPU
#define TXX9_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8) #define TXX9_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
#else #else
#ifdef CONFIG_I8259
#define TXX9_IRQ_BASE (I8259A_IRQ_BASE + 16)
#else
#define TXX9_IRQ_BASE 0 #define TXX9_IRQ_BASE 0
#endif #endif
#endif
#ifdef CONFIG_CPU_TX39XX #ifdef CONFIG_CPU_TX39XX
#define TXx9_MAX_IR 16 #define TXx9_MAX_IR 16
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment