Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1317117

[PATCH 2/2] serial: atmel: add support for new UART version

From Nicolas Ferre <nicolas.ferre@atmel.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] serial: atmel: add support for new UART version
Date 2016-01-25 18:40 +0100
Message-ID <qUTho-7r7-37@gated-at.bofh.it> (permalink)
References <qUTho-7r7-39@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Starting with sama5d2, the new UART revision has an hardware timer. So, add it
to the IP detection code and set the "has_hw_timer" property for it.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Reported-by: David Mosberger <davidm@egauge.net>
---
 drivers/tty/serial/atmel_serial.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index de5d32c31179..fab135824679 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -1714,11 +1714,12 @@ static void atmel_get_ip_name(struct uart_port *port)
 	/* ASCII decoding for IP version */
 	usart = 0x55534152;	/* USAR(T) */
 	dbgu_uart = 0x44424755;	/* DBGU */
+	new_uart = 0x55415254;	/* UART */
 
 	atmel_port->has_hw_timer = false;
 
-	if (name == usart) {
-		dev_dbg(port->dev, "Usart with hw timer\n");
+	if (name == usart || name == new_uart) {
+		dev_dbg(port->dev, "Usart or uart with hw timer\n");
 		atmel_port->has_hw_timer = true;
 	} else if (name == dbgu_uart) {
 		dev_dbg(port->dev, "Dbgu or uart without hw timer\n");
-- 
2.1.3

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 2/2] serial: atmel: add support for new UART version Nicolas Ferre <nicolas.ferre@atmel.com> - 2016-01-25 18:40 +0100

csiph-web