From: Gregoire Gentil <gregoire@gentil.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Fix for ns16550 driver hanging on OMAP4
Date: Mon, 10 Nov 2014 11:04:10 -0800 [thread overview]
Message-ID: <54610C2A.5020408@gentil.com> (raw)
Here is a patch to apply the same fix on OMAP4 boards as on OMAP3, in
order to prevent ns16550 hanging during SPL boot,
Gr?goire
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index 8f05191..a1d3781 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -132,9 +132,9 @@ static void NS16550_setbrg(NS16550_t com_port, int
baud_divisor)
void NS16550_init(NS16550_t com_port, int baud_divisor)
{
-#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_OMAP34XX))
+#if (defined(CONFIG_SPL_BUILD) && (defined(CONFIG_OMAP34XX) ||
defined(CONFIG_OMAP44XX)))
/*
- * On some OMAP3 devices when UART3 is configured for boot mode
before
+ * On some OMAP3/OMAP4 devices when UART3 is configured for boot
mode before
* SPL starts only THRE bit is set. We have to empty the
transmitter
* before initialization starts.
*/
Gr?goire
next reply other threads:[~2014-11-10 19:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-10 19:04 Gregoire Gentil [this message]
2014-12-05 14:53 ` [U-Boot] Fix for ns16550 driver hanging on OMAP4 Tom Rini
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=54610C2A.5020408@gentil.com \
--to=gregoire@gentil.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