]> www.infradead.org Git - users/willy/pagecache.git/commit
watchdog: stm32_iwdg: Add pretimeout support
authorMarek Vasut <marex@denx.de>
Mon, 15 Apr 2024 13:48:47 +0000 (15:48 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 4 Nov 2024 12:13:01 +0000 (13:13 +0100)
commit3ab1663af6c1ac7d4bd1fb1371a4972bac2922a4
tree7a738cbd8e2e39c61c797d9a1b7ee0f05d1648a3
parent68adabf48f79a46bf2bb615264a54d9bf88528e6
watchdog: stm32_iwdg: Add pretimeout support

The STM32MP15xx IWDG adds registers which permit this IP to generate
pretimeout interrupt. This interrupt can also be used to wake the CPU
from suspend. Implement support for generating this interrupt and let
userspace configure the pretimeout. In case the pretimeout is not
configured by user, set pretimeout to 3/4 of the WDT timeout cycle.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Tested-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240415134903.8084-1-marex@denx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/stm32_iwdg.c