X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/809c03fe4c0f90c640b26e6a2792553b592c68f2..3d00b9bbe1ed2b958c6940b3b16f0f6907f1471c:/target/linux/xburst/files-2.6.32/arch/mips/jz4740/reset.c 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 a4b2292f1..e4fd522b8 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 #include +#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);