public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] serial: 16550: Add JZ47xx support
@ 2016-05-25  0:19 Marek Vasut
  2016-05-25 22:17 ` Daniel Schwierzeck
  0 siblings, 1 reply; 19+ messages in thread
From: Marek Vasut @ 2016-05-25  0:19 UTC (permalink / raw)
  To: u-boot

The Ingenic JZ47xx requires special bit (UART_EN) set in FCR register
in order to work at all. Add this special case handling into the driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Paul Burton <paul.burton@imgtec.com>
---
 drivers/serial/ns16550.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index 30ba0aa..1323881 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -50,6 +50,14 @@ DECLARE_GLOBAL_DATA_PTR;
 #endif
 #endif
 
+#ifdef CONFIG_ARCH_JZ47XX
+#undef UART_FCRVAL
+/* Ingenic JZ47xx SoCs require that a 'UART Module Enable' bit be set */
+#define UART_FCR_UME		0x10
+#define UART_FCRVAL (UART_FCR_FIFO_EN | UART_FCR_RXSR |	\
+		     UART_FCR_TXSR | UART_FCR_UME)
+#endif
+
 #ifndef CONFIG_SYS_NS16550_IER
 #define CONFIG_SYS_NS16550_IER  0x00
 #endif /* CONFIG_SYS_NS16550_IER */
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-05-26 18:22 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-25  0:19 [U-Boot] [PATCH] serial: 16550: Add JZ47xx support Marek Vasut
2016-05-25 22:17 ` Daniel Schwierzeck
2016-05-25 22:21   ` Marek Vasut
2016-05-25 22:31     ` Daniel Schwierzeck
2016-05-25 22:35       ` Marek Vasut
2016-05-26 13:29         ` Simon Glass
2016-05-26 16:34           ` Marek Vasut
2016-05-26 16:44             ` Simon Glass
2016-05-26 16:47               ` Marek Vasut
2016-05-26 16:48                 ` Simon Glass
2016-05-26 16:53                   ` Marek Vasut
2016-05-26 17:07                     ` Simon Glass
2016-05-26 17:35                       ` Marek Vasut
2016-05-26 17:47                         ` Simon Glass
2016-05-26 17:01                   ` Marek Vasut
2016-05-26 11:46     ` Paul Burton
2016-05-26 12:05       ` Marek Vasut
2016-05-26 13:55         ` Paul Burton
2016-05-26 18:22           ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox