From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yubo Zhi Date: Mon, 12 Mar 2018 19:22:17 +0000 Subject: [U-Boot] [PATCH] Serial port related patches Message-ID: <5aa6d36a.b2acdf0a.e6efe.f2ea@mx.google.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Patch 1: drivers: serial: Fix serial_getc returns immediately when RX buffer enabled The command prompt calls serial_getc directly, without checking for data availability using serial_tstc. Therefore, it need to be checked in serial_getc too. Patch 2: drivers: serial: ns16550: Fix for CONFIG_DEBUG_UART_SKIP_INIT This driver did not check for CONFIG_DEBUG_UART_SKIP_INIT. Patch 3: drivers: serial: ns16550: Support for UART interface on JZ4740 The UART interface on the JZ4740 SoC is not strictly compatible with the 16550 implementation. The baud rate formula on the programming manual was wrong. Presumably on older versions of kernel and u-boot the calculation does not round up, so it was working properly. The baud rate should be: baud = fEXT / (16 * (Divisor + 1)) (Tested on actual device) Regards, Norman Zhi -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-drivers-serial-Fix-serial_getc-returns-immediately-w.patch Type: application/octet-stream Size: 931 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-drivers-serial-ns16550-Fix-for-CONFIG_DEBUG_UART_SKI.patch Type: application/octet-stream Size: 1516 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0003-drivers-serial-ns16550-Support-for-UART-interface-on.patch Type: application/octet-stream Size: 2672 bytes Desc: not available URL: