mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
adds timer unit to ifxmips tree
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11530 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user