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:
parent
e03c76c303
commit
5deccafa18
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue