watchdog: rn5t618: add support for read out bootstatus
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Fri, 28 Oct 2022 07:50:19 +0000 (09:50 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 19 Nov 2022 14:30:40 +0000 (15:30 +0100)
commit47c008050aec3e9a13af29dd74cd8b4c112bc07b
tree6f291822b54a36899105c459e54cf0c5b090843e
parent758f46c2e67c4901ea49e684e12adb698b1b2bbd
watchdog: rn5t618: add support for read out bootstatus

The PMIC does store the power-off factor internally.
Read it out and report it as bootstatus.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Acked-by: Lee Jones <lee@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221028075019.2757812-1-marcus.folkesson@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/rn5t618_wdt.c
include/linux/mfd/rn5t618.h