staging: comedi: s526: define the watchdog timer control register and bits
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 Aug 2015 23:58:13 +0000 (16:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:20 +0000 (18:24 -0700)
Define this register and it's bits so that we can possibly support
it.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s526.c

index e329c0470492cf39a5119072d80d5565fe0b35ba..df463a22fa7e32ba6612d4d70e3bf9848b84f16d 100644 (file)
 #define S526_TIMER_MANUAL      S526_TIMER_MODE(0)
 #define S526_TIMER_AUTO                S526_TIMER_MODE(1)
 #define S526_TIMER_RESTART     BIT(0)
-#define REG_WDC 0x02
+#define S526_WDOG_REG          0x02
+#define S526_WDOG_INVERTED     BIT(4)
+#define S526_WDOG_ENA          BIT(3)
+#define S526_WDOG_INTERVAL(x)  (((x) & 0x7) << 0)
 #define REG_DAC 0x04
 #define REG_ADC 0x06
 #define REG_ADD 0x08