sunxi: spl: add support for Allwinner A523 watchdog
authorAndre Przywara <andre.przywara@arm.com>
Sun, 29 Dec 2024 20:13:13 +0000 (21:13 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 27 Jul 2025 21:57:35 +0000 (22:57 +0100)
commit1482481817a5980963452b01f677379e60616188
tree194ef58e79b3bfa78773bdd85854a1b7cbcfb04b
parent17b47bbc3486eae71d4602ae7c981e14d67de821
sunxi: spl: add support for Allwinner A523 watchdog

The watchdog in the Allwinner A523 SoC differs a bit from the one in the
previous SoCs: it lives in a separate register frame, so no longer
inside some timer device, and it manages to shuffle around some
registers a bit. But it also conveniently adds a direct reset
functionality, so we don't need to use a dummy timeout period.

Avoid introducing a new MMIO register frame C struct, but just define
the one needed register offset as a macro. Then just trigger this new
direct reset functionality in the A523 specific reset_cpu()
implementation.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/arch-sunxi/watchdog.h
arch/arm/mach-sunxi/board.c