diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2021-01-28 12:00:10 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-01-29 10:47:28 +0000 |
commit | c97377652dfeef2e0373faa2cdc05548b1536d77 (patch) | |
tree | 08f6744271c89bd5c2319bbffa9658ea5aee3dc2 /hw/gpio/Kconfig | |
parent | 7848023ae43cf775fb211cc66bb2e17376ee23d3 (diff) |
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>
Diffstat (limited to 'hw/gpio/Kconfig')
-rw-r--r-- | hw/gpio/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/gpio/Kconfig b/hw/gpio/Kconfig index b6fdaa2586..f0e7405f6e 100644 --- a/hw/gpio/Kconfig +++ b/hw/gpio/Kconfig @@ -8,5 +8,8 @@ config PL061 config GPIO_KEY bool +config GPIO_PWR + bool + config SIFIVE_GPIO bool |