summaryrefslogtreecommitdiffstats
path: root/hw/gpio/gpio_pwr.c
Commit message (Collapse)AuthorAgeFilesLines
* hw: gpio: implement gpio-pwr driver for qemu reset/poweroffMaxim Uvarov2021-01-291-0/+70
Implement gpio-pwr driver to allow reboot and poweroff machine. This is simple driver with just 2 gpios lines. Current use case is to reboot and poweroff virt machine in secure mode. Secure pl066 gpio chip is needed for that. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Hao Wu <wuhaotsh@google.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>