serial: lpc32xx: send CR before LF

For LPC32XX high-speed UART it is required to send a carriage return
symbol along with line feed. The problem was introduced in e503f90a
commit.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Cc: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
Vladimir Zapolskiy 2013-11-30 16:47:01 +02:00 committed by Tom Rini
parent e03c76c303
commit 5deccafa18

View File

@ -38,6 +38,9 @@ static int lpc32xx_serial_getc(void)
static void lpc32xx_serial_putc(const char c)
{
if (c == '\n')
serial_putc('\r');
writel(c, &hsuart->tx);
/* Wait for character to be sent */