hw/arm: Add basic power management to raspi.
commit38f2cfbbc3f2958cba542b1e264a8027eeca4835
authorNolan Leake <nolan@sigbus.net>
Fri, 25 Jun 2021 21:02:09 +0000 (25 14:02 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jul 2021 10:48:36 +0000 (2 11:48 +0100)
tree975ee16dac04fb65d7f66648c8fdf64a0ad3f262
parentfd17995c07ec1bc33f71b4ccb6c1b8721b6b368c
hw/arm: Add basic power management to raspi.

This is just enough to make reboot and poweroff work. Works for
linux, u-boot, and the arm trusted firmware. Not tested, but should
work for plan9, and bare-metal/hobby OSes, since they seem to generally
do what linux does for reset.

The watchdog timer functionality is not yet implemented.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/64
Signed-off-by: Nolan Leake <nolan@sigbus.net>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210625210209.1870217-1-nolan@sigbus.net
[PMM: tweaked commit title; fixed region size to 0x200;
 moved header file to include/]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/bcm2835_peripherals.c
hw/misc/bcm2835_powermgt.c [new file with mode: 0644]
hw/misc/meson.build
include/hw/arm/bcm2835_peripherals.h
include/hw/misc/bcm2835_powermgt.h [new file with mode: 0644]