[PATCH 0/7] hw/char: Implement the STM32L4x5 USART, UART and LPUART

Arnaud Minier posted 7 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240317103918.44375-1-arnaud.minier@telecom-paris.fr
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Arnaud Minier <arnaud.minier@telecom-paris.fr>, "Inès Varhol" <ines.varhol@telecom-paris.fr>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Alistair Francis <alistair@alistair23.me>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>
There is a newer version of this series
MAINTAINERS                        |   1 +
docs/system/arm/b-l475e-iot01a.rst |   2 +-
hw/arm/Kconfig                     |   1 +
hw/arm/stm32l4x5_soc.c             |  88 ++++-
hw/char/Kconfig                    |   3 +
hw/char/meson.build                |   1 +
hw/char/stm32l4x5_usart.c          | 597 +++++++++++++++++++++++++++++
hw/char/trace-events               |  11 +
hw/misc/stm32l4x5_rcc.c            |   7 +-
include/hw/arm/stm32l4x5_soc.h     |  13 +
include/hw/char/stm32l4x5_usart.h  |  66 ++++
tests/qtest/meson.build            |   3 +-
tests/qtest/stm32l4x5_usart-test.c | 399 +++++++++++++++++++
13 files changed, 1182 insertions(+), 10 deletions(-)
create mode 100644 hw/char/stm32l4x5_usart.c
create mode 100644 include/hw/char/stm32l4x5_usart.h
create mode 100644 tests/qtest/stm32l4x5_usart-test.c
[PATCH 0/7] hw/char: Implement the STM32L4x5 USART, UART and LPUART
Posted by Arnaud Minier 1 month, 2 weeks ago
This patch adds the STM32L4x5 USART (Universal Synchronous/Asynchronous Receiver/Transmitter)
device and is part of a series implementing the STM32L4x5 with a few peripherals.

It implements the necessary functionalities to receive/send characters over the serial port, which
are useful to communicate with the program currently running.

Arnaud Minier (7):
  hw/misc/stm32l4x5_rcc: Propagate period when enabling a clock
  hw/char: Implement STM32L4x5 USART skeleton
  hw/char/stm32l4x5_usart: Add USART, UART, LPUART types
  hw/char/stm32l4x5_usart: Enable serial read and write
  hw/char/stm32l4x5_usart: Add options for serial parameters setting
  hw/arm: Add the USART to the stm32l4x5 SoC
  tests/qtest: Add tests for the STM32L4x5 USART

 MAINTAINERS                        |   1 +
 docs/system/arm/b-l475e-iot01a.rst |   2 +-
 hw/arm/Kconfig                     |   1 +
 hw/arm/stm32l4x5_soc.c             |  88 ++++-
 hw/char/Kconfig                    |   3 +
 hw/char/meson.build                |   1 +
 hw/char/stm32l4x5_usart.c          | 597 +++++++++++++++++++++++++++++
 hw/char/trace-events               |  11 +
 hw/misc/stm32l4x5_rcc.c            |   7 +-
 include/hw/arm/stm32l4x5_soc.h     |  13 +
 include/hw/char/stm32l4x5_usart.h  |  66 ++++
 tests/qtest/meson.build            |   3 +-
 tests/qtest/stm32l4x5_usart-test.c | 399 +++++++++++++++++++
 13 files changed, 1182 insertions(+), 10 deletions(-)
 create mode 100644 hw/char/stm32l4x5_usart.c
 create mode 100644 include/hw/char/stm32l4x5_usart.h
 create mode 100644 tests/qtest/stm32l4x5_usart-test.c

-- 
2.34.1