A10: Fix serial TX interrupts
This commit is contained in:
parent
e4358ad7ff
commit
1cbb15db1a
@ -1472,7 +1472,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
|
|||||||
if (enable)
|
if (enable)
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_SUPPRESS_SERIAL_INTS
|
#ifndef CONFIG_SUPPRESS_SERIAL_INTS
|
||||||
priv->ier |= UART_IER_PTIME;
|
priv->ier |= UART_IER_ETBEI;
|
||||||
up_serialout(priv, A1X_UART_IER_OFFSET, priv->ier);
|
up_serialout(priv, A1X_UART_IER_OFFSET, priv->ier);
|
||||||
|
|
||||||
/* Fake a TX interrupt here by just calling uart_xmitchars() with
|
/* Fake a TX interrupt here by just calling uart_xmitchars() with
|
||||||
@ -1484,7 +1484,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
priv->ier &= ~UART_IER_PTIME;
|
priv->ier &= ~UART_IER_ETBEI;
|
||||||
up_serialout(priv, A1X_UART_IER_OFFSET, priv->ier);
|
up_serialout(priv, A1X_UART_IER_OFFSET, priv->ier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user