diff options
author | John Crispin <john@openwrt.org> | 2008-06-17 22:14:08 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2008-06-17 22:14:08 +0000 |
commit | 18ad6da06330a162f81ba3a507b0d85fc6da111c (patch) | |
tree | 59c5a64d91e066b6163766a9fa38df8305b5c7ba /target/linux/ifxmips/files/drivers | |
parent | cb076ccb1423eea4d866cd959207f854b4c44ac6 (diff) | |
download | upstream-18ad6da06330a162f81ba3a507b0d85fc6da111c.tar.gz upstream-18ad6da06330a162f81ba3a507b0d85fc6da111c.tar.bz2 upstream-18ad6da06330a162f81ba3a507b0d85fc6da111c.zip |
adds timer unit to ifxmips tree
SVN-Revision: 11530
Diffstat (limited to 'target/linux/ifxmips/files/drivers')
-rw-r--r-- | target/linux/ifxmips/files/drivers/watchdog/ifxmips_wdt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/target/linux/ifxmips/files/drivers/watchdog/ifxmips_wdt.c b/target/linux/ifxmips/files/drivers/watchdog/ifxmips_wdt.c index b0c554d79e..a5ecb234e0 100644 --- a/target/linux/ifxmips/files/drivers/watchdog/ifxmips_wdt.c +++ b/target/linux/ifxmips/files/drivers/watchdog/ifxmips_wdt.c @@ -27,6 +27,7 @@ #include <linux/watchdog.h> #include <linux/miscdevice.h> #include <asm-mips/ifxmips/ifxmips_wdt.h> +#include <asm-mips/ifxmips/ifxmips_cgu.h> #include <asm-mips/ifxmips/ifxmips.h> #define DRVNAME "ifxmips_wdt" @@ -35,7 +36,6 @@ extern unsigned int ifxmips_get_fpi_hz (void); static int ifxmips_wdt_inuse = 0; -static int ifxmips_wdt_major = 0; int ifxmips_wdt_enable (unsigned int timeout) @@ -49,9 +49,7 @@ ifxmips_wdt_enable (unsigned int timeout) wdt_clkdiv = 1 << (7 * IFXMIPS_BIU_WDT_CR_CLKDIV_GET(ifxmips_r32(IFXMIPS_BIU_WDT_CR))); wdt_pwl = 0x8000 >> IFXMIPS_BIU_WDT_CR_PWL_GET(ifxmips_r32(IFXMIPS_BIU_WDT_CR)); - //TODO - printk("WARNING FUNCTION CALL MISSING!!!"); - //ffpi = cgu_get_io_region_clock(); + ffpi = cgu_get_io_region_clock(); printk("cpu clock = %d\n", ffpi); /* caculate reload value */ |