aboutsummaryrefslogtreecommitdiff
path: root/include/hw/misc
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-06-23 09:27:23 +0200
committerPeter Maydell <peter.maydell@linaro.org>2020-06-26 14:30:28 +0100
commit586f495b1e78c27e141ff432dd971eb41866fb80 (patch)
tree423ef855e8f799d22ece759b884007013d73d0b1 /include/hw/misc
parentd82ab2931d14c1d8aa27a330b03fe5bf944130cf (diff)
downloadqemu-586f495b1e78c27e141ff432dd971eb41866fb80.zip
qemu-586f495b1e78c27e141ff432dd971eb41866fb80.tar.gz
qemu-586f495b1e78c27e141ff432dd971eb41866fb80.tar.bz2
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>
Diffstat (limited to 'include/hw/misc')
-rw-r--r--include/hw/misc/pca9552.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/misc/pca9552.h b/include/hw/misc/pca9552.h
index bf1a589..600356f 100644
--- a/include/hw/misc/pca9552.h
+++ b/include/hw/misc/pca9552.h
@@ -27,6 +27,7 @@ typedef struct PCA955xState {
uint8_t pointer;
uint8_t regs[PCA955X_NR_REGS];
+ qemu_irq gpio[PCA955X_PIN_COUNT_MAX];
char *description; /* For debugging purpose only */
} PCA955xState;