diff options
author | Dmitriy Sharikhin <d.sharikhin@yadro.com> | 2024-03-11 09:58:31 +0000 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-03-11 22:10:18 +0100 |
commit | 4cbb1513a2d322f858ccb2556715558482fd4850 (patch) | |
tree | 4739a356a8e634f8a9aa3f73a0acd5ca7dc9ae20 /hw/gpio/meson.build | |
parent | 2ea09fe85a1a7006133fa8ee1f467a5758e8f8fb (diff) | |
download | qemu-4cbb1513a2d322f858ccb2556715558482fd4850.zip qemu-4cbb1513a2d322f858ccb2556715558482fd4850.tar.gz qemu-4cbb1513a2d322f858ccb2556715558482fd4850.tar.bz2 |
hw/gpio: introduce pcf8574 driver
NXP PCF8574 and compatible ICs are simple I2C GPIO expanders.
PCF8574 incorporates quasi-bidirectional IO, and simple
communication protocol, when IO read is I2C byte read, and
IO write is I2C byte write. User can think of it as
open-drain port, when line high state is input and line low
state is output.
Signed-off-by: Dmitrii Sharikhin <d.sharikhin@yadro.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <f1552d822276e878d84c01eba2cf2c7c9ebdde00.camel@yadro.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/gpio/meson.build')
-rw-r--r-- | hw/gpio/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/gpio/meson.build b/hw/gpio/meson.build index 3454b50..791e93a 100644 --- a/hw/gpio/meson.build +++ b/hw/gpio/meson.build @@ -16,3 +16,4 @@ system_ss.add(when: 'CONFIG_RASPI', if_true: files( system_ss.add(when: 'CONFIG_STM32L4X5_SOC', if_true: files('stm32l4x5_gpio.c')) system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_gpio.c')) system_ss.add(when: 'CONFIG_SIFIVE_GPIO', if_true: files('sifive_gpio.c')) +system_ss.add(when: 'CONFIG_PCF8574', if_true: files('pcf8574.c')) |