diff options
| author | Vladimir Zapolskiy <[email protected]> | 2013-11-30 16:47:01 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2013-12-13 09:14:34 -0500 |
| commit | 5deccafa1870c4c4eb588ebcc6b4e95c4d7a59f6 (patch) | |
| tree | f61e20e74cbe1e919b058d0bfe809220d2993231 /drivers/serial | |
| parent | e03c76c30342797a25ef9350e51c8daa0b56f1df (diff) | |
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 <[email protected]>
Cc: Marek Vasut <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Diffstat (limited to 'drivers/serial')
| -rw-r--r-- | drivers/serial/lpc32xx_hsuart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/lpc32xx_hsuart.c b/drivers/serial/lpc32xx_hsuart.c index 9c7c6213a58..c8926a8945a 100644 --- a/drivers/serial/lpc32xx_hsuart.c +++ b/drivers/serial/lpc32xx_hsuart.c @@ -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 */ |
