]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/serial/serial_imx.c
send <CRLF> rather than <LFCR> to the serial console
[karo-tx-uboot.git] / drivers / serial / serial_imx.c
index d43a5fedcc87ed782542b88191d4d162b869a481..10f7d889a3ad5db0bbdfb76578d8e5794a9bf6d7 100644 (file)
@@ -181,11 +181,11 @@ static void imx_serial_putc(const char c)
        /* Wait for Tx FIFO not full */
        while (base->uts & UTS_TXFULL);
 
-       base->utxd[0] = c;
-
        /* If \n, also do \r */
        if (c == '\n')
                serial_putc ('\r');
+
+       base->utxd[0] = c;
 }
 
 /*