diff options
author | Marcus Folkesson <marcus.folkesson@gmail.com> | 2022-10-28 09:50:19 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2022-11-19 15:30:40 +0100 |
commit | 47c008050aec3e9a13af29dd74cd8b4c112bc07b (patch) | |
tree | 6f291822b54a36899105c459e54cf0c5b090843e /include | |
parent | watchdog: kempld: Remove #ifdef guards for PM related functions (diff) | |
download | linux-47c008050aec3e9a13af29dd74cd8b4c112bc07b.tar.xz linux-47c008050aec3e9a13af29dd74cd8b4c112bc07b.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/rn5t618.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mfd/rn5t618.h b/include/linux/mfd/rn5t618.h index 8aa0bda1af4f..aacb6d51e99c 100644 --- a/include/linux/mfd/rn5t618.h +++ b/include/linux/mfd/rn5t618.h @@ -227,6 +227,15 @@ #define RN5T618_WATCHDOG_WDOGTIM_S 0 #define RN5T618_PWRIRQ_IR_WDOG BIT(6) +#define RN5T618_POFFHIS_PWRON BIT(0) +#define RN5T618_POFFHIS_TSHUT BIT(1) +#define RN5T618_POFFHIS_VINDET BIT(2) +#define RN5T618_POFFHIS_IODET BIT(3) +#define RN5T618_POFFHIS_CPU BIT(4) +#define RN5T618_POFFHIS_WDG BIT(5) +#define RN5T618_POFFHIS_DCLIM BIT(6) +#define RN5T618_POFFHIS_N_OE BIT(7) + enum { RN5T618_DCDC1, RN5T618_DCDC2, |