mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
cadence_uart: Check if receiver timeout counter is disabled
When register Rcvr_timeout_reg0 (R_RTOR in cadence_uart.c) is set to 0, the receiver timeout counter should be disabled. See page 1801 of "Zynq-7000 AP SoC Technical Reference Manual". This commit adds a such a check before setting the receive timeout interrupt. Signed-off-by: Andrew Gacek <andrew.gacek@gmail.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
450aaae863
commit
2494c9f640
1 changed files with 4 additions and 3 deletions
|
@ -138,9 +138,10 @@ static void fifo_trigger_update(void *opaque)
|
||||||
{
|
{
|
||||||
CadenceUARTState *s = opaque;
|
CadenceUARTState *s = opaque;
|
||||||
|
|
||||||
s->r[R_CISR] |= UART_INTR_TIMEOUT;
|
if (s->r[R_RTOR]) {
|
||||||
|
s->r[R_CISR] |= UART_INTR_TIMEOUT;
|
||||||
uart_update_status(s);
|
uart_update_status(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void uart_rx_reset(CadenceUARTState *s)
|
static void uart_rx_reset(CadenceUARTState *s)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue