From: Yubo Zhi <normanzyb@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Serial port related patches
Date: Mon, 12 Mar 2018 19:22:17 +0000 [thread overview]
Message-ID: <5aa6d36a.b2acdf0a.e6efe.f2ea@mx.google.com> (raw)
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: <http://lists.denx.de/pipermail/u-boot/attachments/20180312/54f9d36f/attachment.obj>
-------------- 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: <http://lists.denx.de/pipermail/u-boot/attachments/20180312/54f9d36f/attachment-0001.obj>
-------------- 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: <http://lists.denx.de/pipermail/u-boot/attachments/20180312/54f9d36f/attachment-0002.obj>
reply other threads:[~2018-03-12 19:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5aa6d36a.b2acdf0a.e6efe.f2ea@mx.google.com \
--to=normanzyb@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox