watchdog: mtk: add disable_wdt_extrst support
authorFengquan Chen <Fengquan.Chen@mediatek.com>
Tue, 14 Sep 2021 12:34:54 +0000 (20:34 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 26 Oct 2021 19:31:11 +0000 (21:31 +0200)
commit59b0f51335644ee603260faaa4298c0115fb7187
treed1febd853a8a23e8a9f4e4f28ff4c3276c2bae85
parenteed09878923ef2cd69b832b8ac84f8dfa674f353
watchdog: mtk: add disable_wdt_extrst support

In some cases, we may need watchdog just to trigger an
internal soc reset without sending any output signal.

Provide a disable_wdt_extrst parameter for configuration.
We can disable or enable it just by configuring dts.

Signed-off-by: Fengquan Chen <fengquan.chen@mediatek.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210914123454.32603-3-Fengquan.Chen@mediatek.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/mtk_wdt.c