rtc: pcf2127: handle boot-enabled watchdog feature
authorMartin Hundebøll <martin@geanix.com>
Mon, 21 Oct 2019 08:08:38 +0000 (10:08 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 21 Oct 2019 08:24:18 +0000 (10:24 +0200)
commit62409933b8d5afc9f09878608f3a38cf1b5467c2
tree1ed6392a0a586e92a3b2d6ec082dacf75e6e4ed8
parentf583c341a515fcb5305520053d2ae51f89f67f59
rtc: pcf2127: handle boot-enabled watchdog feature

Linux should handle when the pcf2127 watchdog feature is enabled by the
bootloader. This is done by checking the watchdog timer value during
init, and set the WDOG_HW_RUNNING flag if the value differs from zero.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20191021080838.2789-1-martin@geanix.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf2127.c