X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c164e9d4b74927f374544ee61d4315780974b486..bbfaf569cc7e29485bdf6fedd2f3dbf40e8d724b:/target/linux/ifxmips/files/drivers/watchdog/ifxmips_wdt.c?ds=inline diff --git a/target/linux/ifxmips/files/drivers/watchdog/ifxmips_wdt.c b/target/linux/ifxmips/files/drivers/watchdog/ifxmips_wdt.c index b0c554d79..a5ecb234e 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 #include #include +#include #include #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 */