xen/rpi4: implement watchdog-based reset
authorStefano Stabellini <sstabellini@kernel.org>
Fri, 2 Oct 2020 20:47:17 +0000 (13:47 -0700)
committerHans van Kranenburg <hans@knorrie.org>
Wed, 13 Jul 2022 14:28:39 +0000 (15:28 +0100)
commitd6d1de07169b534f1e663bd4dc42eb165162fece
tree5a438446689f9d1789b50450e08680704fb185a0
parent98fc9dd4d34cb8212d5da4bda17bc6a629e8c4cc
xen/rpi4: implement watchdog-based reset

The preferred method to reboot RPi4 is PSCI. If it is not available,
touching the watchdog is required to be able to reboot the board.

The implementation is based on
drivers/watchdog/bcm2835_wdt.c:__bcm2835_restart in Linux v5.9-rc7.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Tested-by: Roman Shaposhnik <roman@zededa.com>
CC: roman@zededa.com
(cherry picked from commit 25849c8b16f2a5b7fcd0a823e80a5f1b590291f9)

Gbp-Pq: Name 0027-xen-rpi4-implement-watchdog-based-reset.patch
xen/arch/arm/platforms/brcm-raspberry-pi.c