watchdog: sunxi_wdt: Add support for D1
authorSamuel Holland <samuel@sholland.org>
Thu, 2 Sep 2021 22:57:50 +0000 (17:57 -0500)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 26 Oct 2021 19:31:08 +0000 (21:31 +0200)
commit94213a39c3d8430297f52245d777b5c1ed627717
treecb5b1a3d5e4616cfdd72a13b04668800b2663c1b
parent601db217916de339ddebeb3b6f024f09a275562a
watchdog: sunxi_wdt: Add support for D1

D1 adds a key field to the "CFG" and "MODE" registers, that must be set
to change the other bits. Add logic to set the key when updating those
registers.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210902225750.29313-4-samuel@sholland.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sunxi_wdt.c