hw/char/exynos4210_uart: Add receive DMA support
commit3c77412b4a5e144bebf06cc668dc4b35b59b4607
authorGuenter Roeck <linux@roeck-us.net>
Thu, 23 Jan 2020 15:22:42 +0000 (23 15:22 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 23 Jan 2020 16:34:15 +0000 (23 16:34 +0000)
tree01ec1f7d4bf5c7e1c1106e9e021ec590dbb50e08
parent3a5d3a6f58ddd4027b9bcf6fe58f2a0224712c07
hw/char/exynos4210_uart: Add receive DMA support

To support receive DMA, we need to inform the DMA controller if receive data
is available. Otherwise the DMA controller keeps requesting data, causing
receive errors.

Implement this using an interrupt line. The instantiating code then needs
to connect the interrupt with the matching DMA controller GPIO pin.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Message-id: 20200123052540.6132-8-linux@roeck-us.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/exynos4210_uart.c
hw/char/trace-events