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>
Mon, 13 Sep 2021 09:51:21 +0000 (11:51 +0200)
commit58abf1f223cb8e0c33d402ad507c33b19f8759f3
treefb6adff44f325d571f37581a4acc3d9e2c0a685c
parentda6d81b08119a8299d179704d1b131a290e3bd64
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)
xen/arch/arm/platforms/brcm-raspberry-pi.c