mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
watchdog: gpio_wdt: Add "always_running" feature to GPIO watchdog
On some chips, like the TPS386000, the trigger cannot be disabled and the CPU must keep toggling the line at all times. Add a switch "always_running" to keep toggling the GPIO line regardless of the state of the soft part of the watchdog. The "armed" member keeps track of whether a timeout must also cause a reset. Signed-off-by: Mike Looijmans <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
396f163ceb
commit
ba804a9510
2 changed files with 34 additions and 8 deletions
|
|
@ -13,6 +13,11 @@ Required Properties:
|
|||
by the GPIO flags.
|
||||
- hw_margin_ms: Maximum time to reset watchdog circuit (milliseconds).
|
||||
|
||||
Optional Properties:
|
||||
- always-running: If the watchdog timer cannot be disabled, add this flag to
|
||||
have the driver keep toggling the signal without a client. It will only cease
|
||||
to toggle the signal when the device is open and the timeout elapsed.
|
||||
|
||||
Example:
|
||||
watchdog: watchdog {
|
||||
/* ADM706 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue