hw/misc/pca9552: Model qdev output GPIOs
commit586f495b1e78c27e141ff432dd971eb41866fb80
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 23 Jun 2020 07:27:23 +0000 (23 09:27 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Jun 2020 13:30:28 +0000 (26 14:30 +0100)
tree423ef855e8f799d22ece759b884007013d73d0b1
parentd82ab2931d14c1d8aa27a330b03fe5bf944130cf
hw/misc/pca9552: Model qdev output GPIOs

The PCA9552 has 16 GPIOs which can be used as input,
output or PWM mode. QEMU models the output GPIO with
the qemu_irq type. Let the device expose the 16 GPIOs
to allow us to later connect LEDs to these outputs.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20200623072723.6324-10-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/pca9552.c
include/hw/misc/pca9552.h