[U-Boot] Fix for ns16550 driver hanging on OMAP4

Gregoire Gentil gregoire at gentil.com
Mon Nov 10 20:04:10 CET 2014


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



More information about the U-Boot mailing list