[linux-yocto] [PATCH 022/161] drivers/tty: Hard code the baud rate divisors for now.

Cristian Bercaru cristian.bercaru at windriver.com
Thu May 21 12:20:04 PDT 2015


From: John Jacques <john.jacques at lsi.com>

This assumes that the AXM55xx_533 parameter file is used.

Signed-off-by: John Jacques <john.jacques at lsi.com>
---
 drivers/tty/serial/amba-pl011.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 192869e..c4efbe4 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -1667,8 +1667,8 @@ pl011_set_termios(struct uart_port *port, struct ktermios *termios,
 			quot -= 2;
 	}
 	/* Set baud rate */
-	writew(quot & 0x3f, port->membase + UART011_FBRD);
-	writew(quot >> 6, port->membase + UART011_IBRD);
+	writew(0x3, port->membase + UART011_FBRD);
+	writew(0x364, port->membase + UART011_IBRD);
 
 	/*
 	 * ----------v----------v----------v----------v-----
-- 
1.7.9.5



More information about the linux-yocto mailing list