summary refs log tree commit diff stats
path: root/hw/arm/stm32l4x5_soc.c
diff options
context:
space:
mode:
authorTong Ho <tong.ho@amd.com>2024-02-26 21:48:55 -0800
committerPeter Maydell <peter.maydell@linaro.org>2024-03-05 13:22:55 +0000
commitf576e0733ccb023cde94acc7897c78a4871a09d0 (patch)
tree41502e18b2221d61f0ded054c0ae54ef0259eb74 /hw/arm/stm32l4x5_soc.c
parent0820e097fa844b13e9246c1210b89265a0e0cc5b (diff)
downloadfocaccia-qemu-f576e0733ccb023cde94acc7897c78a4871a09d0.tar.gz
focaccia-qemu-f576e0733ccb023cde94acc7897c78a4871a09d0.zip
hw/char/pl011: Add support for loopback
This patch adds loopback for sent characters, sent BREAK,
and modem-control signals.

Loopback of send and modem-control is often used for uart
self tests in real hardware but missing from current pl011
model, resulting in self-test failures when running in QEMU.

This implementation matches what is observed in real pl011
hardware placed in loopback mode:
1. Input characters and BREAK events from serial backend
   are ignored, but
2. Both TX characters and BREAK events are still sent to
   serial backend, in addition to be looped back to RX.

Signed-off-by: Tong Ho <tong.ho@amd.com>
Signed-off-by: Francisco Iglesias <francisco.iglesias@amd.com>
Message-id: 20240227054855.44204-1-tong.ho@amd.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/stm32l4x5_soc.c')
0 files changed, 0 insertions, 0 deletions