watchdog: ftwdt010: Make interrupt optional
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 16 Oct 2017 20:54:25 +0000 (22:54 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Dec 2017 19:45:02 +0000 (20:45 +0100)
commitd5433fd60df0d77b4751715e22a2dd715d26d926
tree64a565c76282cd547c807f7505014187cd86efb9
parent766a2aad645e6c4c4dec0c02be34318d5538e75e
watchdog: ftwdt010: Make interrupt optional

The Moxart does not appear to be using the interrupt from the
watchdog timer, maybe it's not even routed, so as to support
more architectures with this driver, make the interrupt
optional.

While we are at it: actually enable the use of the interrupt
if present by setting the right bit in the control register
and define the missing control register bits.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/ftwdt010_wdt.c