hw: gpio: implement gpio-pwr driver for qemu reset/poweroff
commitc97377652dfeef2e0373faa2cdc05548b1536d77
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Thu, 28 Jan 2021 12:00:10 +0000 (28 12:00 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jan 2021 10:47:28 +0000 (29 10:47 +0000)
tree08f6744271c89bd5c2319bbffa9658ea5aee3dc2
parent7848023ae43cf775fb211cc66bb2e17376ee23d3
hw: gpio: implement gpio-pwr driver for qemu reset/poweroff

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>
hw/gpio/Kconfig
hw/gpio/gpio_pwr.c [new file with mode: 0644]
hw/gpio/meson.build