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-atmel / time.h
blob01c007d6683b6690eed8835a07a670cbc68bca74
1 /*
2 * linux/include/asm-arm/arch-atmel/time.h
4 * Copyright (C) 2001/02 Erwin Authried <eauth@softsys.co.at>
5 * Modified by Hyok S. Choi for 2.6, 2004.
6 */
8 #ifndef __ASM_ARCH_TIME_H__
9 #define __ASM_ARCH_TIME_H__
11 #include <asm/uaccess.h>
12 #include <asm/io.h>
13 #include <asm/hardware.h>
14 #include <asm/arch/timex.h>
16 #define CLOCKS_PER_USEC (CONFIG_ARM_CLK/1000000)
18 #if (KERNEL_TIMER==0)
19 # define KERNEL_TIMER_IRQ_NUM IRQ_TC0
20 #elif (KERNEL_TIMER==1)
21 # define KERNEL_TIMER_IRQ_NUM IRQ_TC1
22 #elif (KERNEL_TIMER==2)
23 # define KERNEL_TIMER_IRQ_NUM IRQ_TC2
24 #else
25 #error Wierd -- KERNEL_TIMER is not defined or something....
26 #endif
28 #endif