2 * linux/include/asm-arm/arch-lpc22xx/time.h
4 * Copyright (C) 2004 Philips Semiconductors
7 #ifndef __ASM_ARCH_TIME_H__
8 #define __ASM_ARCH_TIME_H__
10 #include <asm/uaccess.h>
12 #include <asm/hardware.h>
13 #include <asm/arch/timex.h>
15 #define CLOCKS_PER_USEC (LPC22xx_Fpclk/1000000)
17 /* set timer to generate interrupt every 10ms */
18 /* MR0/(LPC22xx_Fpclk/(PR0+1)) = 10/1000 = 0.01s */
19 #define MR0_INIT_VALUE 10
20 #define PRESCALE_COUNTER_INIT_VALUE (LPC22xx_Fpclk/1000) - 1
23 #endif /*__ASM_ARCH_TIME_H__*/