arm: apple: Use watchdog timer for system reset
authorMark Kettenis <kettenis@openbsd.org>
Wed, 12 Jan 2022 18:55:17 +0000 (19:55 +0100)
committerStefan Roese <sr@denx.de>
Thu, 13 Jan 2022 05:55:46 +0000 (06:55 +0100)
commit9a8e3736da25a62449f84aef2b566e2b31ca60fd
tree3d599b7b9f5d272b83db67a8455146882183edf0
parentb0e6c73a790815c80092da10269d26125b05a435
arm: apple: Use watchdog timer for system reset

Rely on the new watchdog timer driver and the sysreset uclass to
reset the system.  This gets rid of hard-coded addresses and
should work on systems based on the new M1 Pro and M1 Max SoCs
as well.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-on: Apple M1 Macbook
Tested-by: Simon Glass <sjg@chromium.org>
arch/arm/Kconfig
arch/arm/mach-apple/board.c