Add the QUP + GENI uart device models.  The QUP is a "Universal Peripheral"
present on Qualcomm SoCs, with connections for SPI, UART, I2C, I3C.  For
now we're only interested in UART.

Will follow up with a v2 including wiring into machines + qtest after
https://lore.kernel.org/qemu-devel/[email protected]/
lands.

Brian Cain (3):
  hw/misc: add the QUP wrapper device
  rust/chardev: fix write errors and add write watches
  rust/hw/char: add QUP GENI UART device model

 MAINTAINERS                                 |    3 +
 docs/system/device-emulation.rst            |    1 +
 docs/system/devices/qup.rst                 |   10 +
 include/hw/misc/qup-wrapper.h               |   27 +
 hw/misc/qup-wrapper.c                       |   90 ++
 Cargo.lock                                  |   15 +
 Cargo.toml                                  |    1 +
 hw/misc/Kconfig                             |    3 +
 hw/misc/meson.build                         |    3 +
 rust/chardev/src/chardev.rs                 |   82 +-
 rust/hw/char/Kconfig                        |    4 +
 rust/hw/char/meson.build                    |    1 +
 rust/hw/char/qup_geni_uart/Cargo.toml       |   27 +
 rust/hw/char/qup_geni_uart/meson.build      |   28 +
 rust/hw/char/qup_geni_uart/src/device.rs    | 1293 +++++++++++++++++++
 rust/hw/char/qup_geni_uart/src/lib.rs       |    9 +
 rust/hw/char/qup_geni_uart/src/registers.rs |  160 +++
 17 files changed, 1741 insertions(+), 16 deletions(-)
 create mode 100644 docs/system/devices/qup.rst
 create mode 100644 include/hw/misc/qup-wrapper.h
 create mode 100644 hw/misc/qup-wrapper.c
 create mode 100644 rust/hw/char/qup_geni_uart/Cargo.toml
 create mode 100644 rust/hw/char/qup_geni_uart/meson.build
 create mode 100644 rust/hw/char/qup_geni_uart/src/device.rs
 create mode 100644 rust/hw/char/qup_geni_uart/src/lib.rs
 create mode 100644 rust/hw/char/qup_geni_uart/src/registers.rs

-- 
2.34.1

Reply via email to