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/reset.c | |
parent | f636d6a3cf4bc93ca0293855037cbef08431eaec (diff) | |
download | upstream-b55636bb42025579c114ee09089423378c117704.tar.gz upstream-b55636bb42025579c114ee09089423378c117704.tar.bz2 upstream-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/reset.c')
-rw-r--r-- | target/linux/xburst/files-2.6.32/arch/mips/jz4740/reset.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/reset.c b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/reset.c index a4b2292f10..e4fd522b87 100644 --- a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/reset.c +++ b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/reset.c @@ -21,12 +21,14 @@ #include <asm/mach-jz4740/timer.h> #include <asm/mach-jz4740/jz4740.h> +#include "clock.h" + void jz_restart(char *command) { printk(KERN_NOTICE "Restarting after 4 ms\n"); REG_WDT_TCSR = WDT_TCSR_PRESCALE4 | WDT_TCSR_EXT_EN; REG_WDT_TCNT = 0; - REG_WDT_TDR = JZ_EXTAL/1000; /* reset after 4ms */ + REG_WDT_TDR = jz4740_clock_bdata.ext_rate / 1000; /* reset after 4ms */ jz4740_timer_enable_watchdog(); REG_WDT_TCER = WDT_TCER_TCEN; /* wdt start */ while (1); |