From c97377652dfeef2e0373faa2cdc05548b1536d77 Mon Sep 17 00:00:00 2001 From: Maxim Uvarov Date: Thu, 28 Jan 2021 12:00:10 +0000 Subject: 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 Reviewed-by: Hao Wu Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/gpio/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/gpio/meson.build') 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')) -- cgit v1.1