watchdog: sp5100_tco: Add "action" module parameter
authorVladimir Panteleev <git@vladimir.panteleev.md>
Tue, 20 Sep 2022 09:27:21 +0000 (09:27 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 2 Oct 2022 10:55:48 +0000 (12:55 +0200)
commit081574f76d010532ff406d682f532ac410559a3b
tree3d920152005e448033b90d61be1f6be40590e319
parent8ed2dc48551354bbf33df869f3968b7805cbaa61
watchdog: sp5100_tco: Add "action" module parameter

Allow configuring the "action" bit, as documented in [1].

Previously, the only action supported by this module was to reset the
system (0).  It can now be configured to power off (1) instead.

[1]: https://www.amd.com/system/files/TechDocs/44413.pdf

Signed-off-by: Vladimir Panteleev <git@vladimir.panteleev.md>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220920092721.7686-1-git@vladimir.panteleev.md
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sp5100_tco.c