[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>
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <asm/i8253.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/time.h>
|
||||
|
||||
@ -11,12 +13,9 @@ const char *get_system_type(void)
|
||||
return "Qemu";
|
||||
}
|
||||
|
||||
void __init plat_timer_setup(struct irqaction *irq)
|
||||
void __init plat_time_init(void)
|
||||
{
|
||||
/* set the clock to 100 Hz */
|
||||
outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */
|
||||
outb_p(LATCH & 0xff , 0x40); /* LSB */
|
||||
outb(LATCH >> 8 , 0x40); /* MSB */
|
||||
setup_pit_timer();
|
||||
}
|
||||
|
||||
void __init plat_mem_setup(void)
|
||||
|
Reference in New Issue
Block a user