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 */
16 /* a value of TCFG0_PRE1 */
17 #define CLK_PRESCALE 15
19 #include <asm/arch/clocks.h>
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