Skip to content
Snippets Groups Projects
Commit 3ab1663a authored by Marek Vasut's avatar Marek Vasut Committed by Wim Van Sebroeck
Browse files

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: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarClément Le Goffic <clement.legoffic@foss.st.com>
Tested-by: default avatarClément Le Goffic <clement.legoffic@foss.st.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240415134903.8084-1-marex@denx.de


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 68adabf4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment