Thread (3 messages) flat view 3 messages, 2 authors, 2012-05-14
STALE5200d

[PATCH] serial: samsung: Add support 4M baudrate for samsung serial

From: Kukjin Kim <hidden>
Date: 2012-05-12 23:58:08
Also in: linux-samsung-soc

On 02/03/12 17:06, ??? wrote:
quoted hunk ↗ jump to hunk
At getting the baudrate, the max baudrate parameter value
is changed to 4M.
So samsung serial can support upto 4M baudrate.

Signed-off-by: Kyoungil Kim<redacted>
---
  drivers/tty/serial/samsung.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index a6abe0c..513096d 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -701,7 +701,7 @@ static void s3c24xx_serial_set_termios(struct uart_port *port,
  	 * Ask the core to calculate the divisor for us.
  	 */

-	baud = uart_get_baud_rate(port, termios, old, 0, 115200*8);
+	baud = uart_get_baud_rate(port, termios, old, 0, 4000000);
  	quot = s3c24xx_serial_getclk(ourport, baud,&clk,&clk_sel);
  	if (baud == 38400&&  (port->flags&  UPF_SPD_MASK) == UPF_SPD_CUST)
  		quot = port->custom_divisor;
Kyoungil,

Is this available on all of Samsung serial?

Thanks.

Best regards,
Kgene.
--
Kukjin Kim [off-list ref], Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help