fixes ifxmips watchdog driver
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / files / include / asm-mips / ifxmips / ifxmips.h
index 7966b13c079fe524a3886c3c33cbae2cc65ddb20..3ab53aebb08825dcdcc4d1605134fbacfcd7742c 100644 (file)
 #define IFXMIPS_BIU_WDT_CR             ((u32*)(IFXMIPS_WDT_BASE_ADDR + 0x03F0))
 #define IFXMIPS_BIU_WDT_SR             ((u32*)(IFXMIPS_WDT_BASE_ADDR + 0x03F8))
 
-#define IFXMIPS_BIU_WDT_CR_GEN                         (1 << 31)
-#define IFXMIPS_BIU_WDT_CR_DSEN                                (1 << 30)
-#define IFXMIPS_BIU_WDT_CR_LPEN                                (1 << 29)
-
-#define IFXMIPS_BIU_WDT_CR_CLKDIV_GET(value) (((value) >> 24) & ((1 << 2) - 1))
-#define IFXMIPS_BIU_WDT_CR_PWL_GET(value)      (((value) >> 26) & ((1 << 2) - 1))
-#define IFXMIPS_BIU_WDT_CR_PWL_SET(value)      ((((1 << 2) - 1) & (value)) << 26)
-#define IFXMIPS_BIU_WDT_CR_PW_SET(value)               (((( 1 << 8) - 1) & (value)) << 16)
-#define IFXMIPS_BIU_WDT_CR_CLKDIV_SET(value)   (((( 1 << 2) - 1) & (value)) << 24)
-#define IFXMIPS_BIU_WDT_CR_RELOAD_SET(value)   (((( 1 << 16) - 1) & (value)) << 0)
-
 
 /*------------ LED */