summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2013-11-30 16:47:01 +0200
committerTom Rini <trini@ti.com>2013-12-13 09:14:34 -0500
commit5deccafa1870c4c4eb588ebcc6b4e95c4d7a59f6 (patch)
treef61e20e74cbe1e919b058d0bfe809220d2993231 /drivers
parente03c76c30342797a25ef9350e51c8daa0b56f1df (diff)
downloadu-boot-imx-5deccafa1870c4c4eb588ebcc6b4e95c4d7a59f6.zip
u-boot-imx-5deccafa1870c4c4eb588ebcc6b4e95c4d7a59f6.tar.gz
u-boot-imx-5deccafa1870c4c4eb588ebcc6b4e95c4d7a59f6.tar.bz2
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/lpc32xx_hsuart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/lpc32xx_hsuart.c b/drivers/serial/lpc32xx_hsuart.c
index 9c7c621..c8926a8 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 */