MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-lpc22xx / time.h
blob46fdd2b0bb4c5b523d950b66cb15b196fd5a3ccc
1 /*
2 * linux/include/asm-arm/arch-lpc22xx/time.h
4 * Copyright (C) 2004 Philips Semiconductors
5 */
7 #ifndef __ASM_ARCH_TIME_H__
8 #define __ASM_ARCH_TIME_H__
10 #include <asm/uaccess.h>
11 #include <asm/io.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__*/