diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-12-24 22:04:16 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2018-01-21 12:56:37 +0100 |
commit | f7781b067522aa269213e8025c80cbed1868d349 (patch) | |
tree | 0490b61bdc2f6786ef8bee43f1e9b05154309952 /drivers/watchdog/sp5100_tco.h | |
parent | watchdog: sp5100_tco: Use bit operations (diff) | |
download | linux-f7781b067522aa269213e8025c80cbed1868d349.tar.xz linux-f7781b067522aa269213e8025c80cbed1868d349.zip |
watchdog: sp5100-tco: Abort if watchdog is disabled by hardware
If the watchdog control register indicates that the watchdog hardware
is disabled even after we tried to enable it, there is no point to
instantiate the driver.
Cc: Zoltán Böszörményi <zboszor@pr.hu>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/sp5100_tco.h')
-rw-r--r-- | drivers/watchdog/sp5100_tco.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/sp5100_tco.h b/drivers/watchdog/sp5100_tco.h index ca0721c8d879..008b2094bd13 100644 --- a/drivers/watchdog/sp5100_tco.h +++ b/drivers/watchdog/sp5100_tco.h @@ -19,6 +19,7 @@ #define SP5100_WDT_START_STOP_BIT BIT(0) #define SP5100_WDT_FIRED BIT(1) #define SP5100_WDT_ACTION_RESET BIT(2) +#define SP5100_WDT_DISABLED BIT(3) #define SP5100_WDT_TRIGGER_BIT BIT(7) #define SP5100_PM_IOPORTS_SIZE 0x02 |