aboutsummaryrefslogtreecommitdiff
path: root/hw/gpio/meson.build
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2021-01-28 12:00:10 +0000
committerPeter Maydell <peter.maydell@linaro.org>2021-01-29 10:47:28 +0000
commitc97377652dfeef2e0373faa2cdc05548b1536d77 (patch)
tree08f6744271c89bd5c2319bbffa9658ea5aee3dc2 /hw/gpio/meson.build
parent7848023ae43cf775fb211cc66bb2e17376ee23d3 (diff)
downloadqemu-c97377652dfeef2e0373faa2cdc05548b1536d77.zip
qemu-c97377652dfeef2e0373faa2cdc05548b1536d77.tar.gz
qemu-c97377652dfeef2e0373faa2cdc05548b1536d77.tar.bz2
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/meson.build')
-rw-r--r--hw/gpio/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/gpio/meson.build b/hw/gpio/meson.build
index 5c0a7d7..79568f0 100644
--- a/hw/gpio/meson.build
+++ b/hw/gpio/meson.build
@@ -1,5 +1,6 @@
softmmu_ss.add(when: 'CONFIG_E500', if_true: files('mpc8xxx.c'))
softmmu_ss.add(when: 'CONFIG_GPIO_KEY', if_true: files('gpio_key.c'))
+softmmu_ss.add(when: 'CONFIG_GPIO_PWR', if_true: files('gpio_pwr.c'))
softmmu_ss.add(when: 'CONFIG_MAX7310', if_true: files('max7310.c'))
softmmu_ss.add(when: 'CONFIG_PL061', if_true: files('pl061.c'))
softmmu_ss.add(when: 'CONFIG_PUV3', if_true: files('puv3_gpio.c'))