diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-02-20 20:45:00 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-02-20 20:45:00 +0000 |
commit | b55636bb42025579c114ee09089423378c117704 (patch) | |
tree | b2bbef75a47aa0256c9494968b84acd17ed9870b /target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c | |
parent | f636d6a3cf4bc93ca0293855037cbef08431eaec (diff) | |
download | master-187ad058-b55636bb42025579c114ee09089423378c117704.tar.gz master-187ad058-b55636bb42025579c114ee09089423378c117704.tar.bz2 master-187ad058-b55636bb42025579c114ee09089423378c117704.zip |
[xburst] Add per board struct describing the external clock setup.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19783 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c')
-rw-r--r-- | target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c index b811fcd446..d9c5eba61c 100644 --- a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c +++ b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/time.c @@ -22,6 +22,7 @@ #include <asm/mach-jz4740/irq.h> #include <asm/mach-jz4740/jz4740.h> #include <asm/time.h> +#include "clock.h" #define JZ_REG_TIMER_STOP 0x1C #define JZ_REG_TIMER_STOP_SET 0x2C @@ -216,7 +217,6 @@ void __init plat_time_init(void) { int ret; uint32_t clk_rate; - struct clk *ext_clk; jz4740_timer_base = ioremap(CPHYSADDR(TCU_BASE), 0x100); @@ -225,13 +225,7 @@ void __init plat_time_init(void) return; } - /*ext_clk = clk_get(NULL, "ext"); - clk_rate = clk_get_rate(ext_clk) >> 4; - clk_put(ext_clk);*/ - - - clk_rate = JZ_EXTAL >> 4; - + clk_rate = jz4740_clock_bdata.ext_rate >> 4; jz4740_jiffies_per_tick = DIV_ROUND_CLOSEST(clk_rate, HZ); clockevent_set_clock(&jz4740_clockevent, clk_rate); |