summaryrefslogtreecommitdiff
path: root/arch/mips/mips-boards
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-10-11 23:46:10 +0100
committerRalf Baechle <ralf@linux-mips.org>2007-10-11 23:46:10 +0100
commitd865bea4dace1d42995a6cf552bc4863842623f4 (patch)
treedf4519c1646898d3d11817976992c73647a88dac /arch/mips/mips-boards
parent87b2335d6ef97e19ca19dbbb523673680a029e3f (diff)
[MIPS] i8253 PIT clocksource and clockevent drivers
Derived from the i386 variant with a few x86 complexities chopped off. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mips-boards')
-rw-r--r--arch/mips/mips-boards/generic/time.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/mips-boards/generic/time.c b/arch/mips/mips-boards/generic/time.c
index cf55ecd96bf4..4fab3b2e8736 100644
--- a/arch/mips/mips-boards/generic/time.c
+++ b/arch/mips/mips-boards/generic/time.c
@@ -31,6 +31,7 @@
#include <asm/mipsregs.h>
#include <asm/mipsmtregs.h>
#include <asm/hardirq.h>
+#include <asm/i8253.h>
#include <asm/irq.h>
#include <asm/div64.h>
#include <asm/cpu.h>
@@ -141,6 +142,9 @@ void __init plat_time_init(void)
cpu_khz = est_freq / 1000;
mips_scroll_message();
+#ifdef CONFIG_I8253 /* Only Malta has a PIT */
+ setup_pit_timer();
+#endif
}
//static irqreturn_t mips_perf_interrupt(int irq, void *dev_id)