2 * linux/include/asm-arm/arch-shark/time.h
6 * derived from include/asm-arm/arch-ebsa110/time.h
7 * Copyright (c) 1996,1997,1998 Russell King.
11 #include <asm/param.h>
14 #define HZ_TIME ((1193180 + HZ/2) / HZ)
17 timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
27 * Set up timer interrupt, and return the current time in seconds.
29 void __init time_init(void)
33 outb(0x34, 0x43); /* binary, mode 0, LSB/MSB, Ch 0 */
34 outb(HZ_TIME & 0xff, 0x40); /* LSB of count */
35 outb(HZ_TIME >> 8, 0x40);
37 timer_irq.handler = timer_interrupt;
38 setup_irq(IRQ_TIMER, &timer_irq);