A10: Fix serial TX interrupts

This commit is contained in:
Gregory Nutt 2013-12-08 09:26:53 -06:00
parent e4358ad7ff
commit 1cbb15db1a

View File

@ -1472,7 +1472,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
if (enable)
{
#ifndef CONFIG_SUPPRESS_SERIAL_INTS
priv->ier |= UART_IER_PTIME;
priv->ier |= UART_IER_ETBEI;
up_serialout(priv, A1X_UART_IER_OFFSET, priv->ier);
/* 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
{
priv->ier &= ~UART_IER_PTIME;
priv->ier &= ~UART_IER_ETBEI;
up_serialout(priv, A1X_UART_IER_OFFSET, priv->ier);
}