aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/mips-boards/generic/time.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/mips-boards/generic/time.c b/arch/mips/mips-boards/generic/time.c
index 33432ea188fb..8f1000f51b3d 100644
--- a/arch/mips/mips-boards/generic/time.c
+++ b/arch/mips/mips-boards/generic/time.c
@@ -295,11 +295,14 @@ void __init plat_perf_setup(struct irqaction *irq)
295void __init plat_timer_setup(struct irqaction *irq) 295void __init plat_timer_setup(struct irqaction *irq)
296{ 296{
297 int hwint = 0; 297 int hwint = 0;
298#ifdef MSC01E_INT_BASE
298 if (cpu_has_veic) { 299 if (cpu_has_veic) {
299 set_vi_handler (MSC01E_INT_CPUCTR, mips_timer_dispatch); 300 set_vi_handler (MSC01E_INT_CPUCTR, mips_timer_dispatch);
300 mips_cpu_timer_irq = MSC01E_INT_BASE + MSC01E_INT_CPUCTR; 301 mips_cpu_timer_irq = MSC01E_INT_BASE + MSC01E_INT_CPUCTR;
301 } 302 }
302 else { 303 else
304#endif
305 {
303 if (cpu_has_mips_r2) 306 if (cpu_has_mips_r2)
304 /* 307 /*
305 * Read IntCtl.IPTI to determine the timer interrupt 308 * Read IntCtl.IPTI to determine the timer interrupt