watchdog: mtk_wdt: Add reset_by_toprgu support
authorAllen-KH Cheng <allen-kh.cheng@mediatek.com>
Tue, 17 Jan 2023 01:40:23 +0000 (09:40 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 12 Feb 2023 14:32:45 +0000 (15:32 +0100)
commita224764f97d28f1132cab02b79ae4c08a6de471e
tree1ea8bfa2b333219aeb4faffe11e1fc998c841b5f
parent9b30eac1b35a448081165cd906daf939d8750bfb
watchdog: mtk_wdt: Add reset_by_toprgu support

In some cases, the MediaTek watchdog requires the TOPRGU to reset
timer after system resets.

Provide a reset_by_toprgu parameter for configuration.

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230117014023.2993-3-allen-kh.cheng@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