On Wed, 20 Jan 2021 at 09:27, Maxim Uvarov <[email protected]> wrote: > > 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 <[email protected]> > Reviewed-by: Hao Wu <[email protected]> > --- > hw/gpio/Kconfig | 3 ++ > hw/gpio/gpio_pwr.c | 70 +++++++++++++++++++++++++++++++++++++++++++++ > hw/gpio/meson.build | 1 + > 3 files changed, 74 insertions(+) > create mode 100644 hw/gpio/gpio_pwr.c
Reviewed-by: Peter Maydell <[email protected]> thanks -- PMM
