* [U-Boot] Fix for ns16550 driver hanging on OMAP4
@ 2014-11-10 19:04 Gregoire Gentil
2014-12-05 14:53 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Gregoire Gentil @ 2014-11-10 19:04 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] Fix for ns16550 driver hanging on OMAP4
2014-11-10 19:04 [U-Boot] Fix for ns16550 driver hanging on OMAP4 Gregoire Gentil
@ 2014-12-05 14:53 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-12-05 14:53 UTC (permalink / raw)
To: u-boot
On Mon, Nov 10, 2014 at 11:04:10AM -0800, Gregoire Gentil wrote:
> 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
>
>
>
> mode before
> * SPL starts only THRE bit is set. We have to empty the
> transmitter
> * before initialization starts.
> */
>
>
>
> Gr?goire
>
> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
> index 8f05191..a1d3781 100644
Applied to u-boot-ti/master after re-wordding commit message, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141205/6e11a3fb/attachment.pgp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-05 14:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-10 19:04 [U-Boot] Fix for ns16550 driver hanging on OMAP4 Gregoire Gentil
2014-12-05 14:53 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox