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-s3c24a0 / timex.h
blob558590142299f3893134f3dba0ab3a0fc9a2dc97
1 /*
2 * include/asm-arm/arch-s3c24a0/timex.h
4 * $Id: timex.h,v 1.2 2005/11/28 03:55:11 gerg Exp $
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * Based on linux/include/asm-arm/arch-s3c2410/timex.h
14 /* If a value of TCFG1 is a, a value of divider is 2 << a */
15 #define CLK_DIVIDER 2
16 /* a value of TCFG0_PRE1 */
17 #define CLK_PRESCALE 15
19 #include <asm/arch/clocks.h>
21 /* PCLK */
22 // #define CLK_INPUT elfin_get_bus_clk(GET_PCLK)
23 #define CLK_INPUT 51000000 /* 204-102-51 MHz */
25 /*#define CLOCK_TICK_RATE 1562500 */
26 #define CLOCK_TICK_RATE (CLK_INPUT / (CLK_PRESCALE ) / CLK_DIVIDER)
27 #define CLOCK_TICK_FACTOR 80