From: H Hartley Sweeten Date: Mon, 17 Aug 2015 23:58:13 +0000 (-0700) Subject: staging: comedi: s526: define the watchdog timer control register and bits X-Git-Tag: KARO-TX6UL-2015-11-03~34^2~2297 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=088c1ce04dacc3374335ce8b23666a9f8aa5d85c;p=karo-tx-linux.git staging: comedi: s526: define the watchdog timer control register and bits Define this register and it's bits so that we can possibly support it. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/s526.c b/drivers/staging/comedi/drivers/s526.c index e329c0470492..df463a22fa7e 100644 --- a/drivers/staging/comedi/drivers/s526.c +++ b/drivers/staging/comedi/drivers/s526.c @@ -52,7 +52,10 @@ #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