Skip to contentSkip to conversation

serial: samsung: Add support 4M baudrate for samsung serial

PATCH New 김경일 2 participants 3 messages Feb 3, 2012 – May 14, 2012

Subsystems (2)
lore
Share & tools
lore

김경일

author
#0 lore raw

PATCH 1/1 serial: samsung: Add support 4M baudrate for samsung serial

At getting the baudrate, the max baudrate parameter value is changed to 4M.
So samsung serial can support upto 4M baudrate.

---
 drivers/tty/serial/samsung.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/tty/serial/samsung.c +1 -1
index a6abe0c..513096d 100644
@@ -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;
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 serial: samsung: Add support 4M baudrate for samsung serial

Quoted 14 lines · 김경일

At getting the baudrate, the max baudrate parameter value is changed to 4M.
So samsung serial can support upto 4M baudrate.

---
  drivers/tty/serial/samsung.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
drivers/tty/serial/samsung.c +0 -0
index a6abe0c..513096d 100644

drivers/tty/serial/samsung.c static void s3c24xx_serial_set_termios(struct uart_port *port, · line 707

Quoted 8 lines
drivers/tty/serial/samsung.c +1 -1
@@ -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 <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

#2 lore raw

PATCH 1/1 serial: samsung: Add support 4M baudrate for samsung serial

Quoted 26 lines · Kukjin Kim
Quoted 14 lines · ???

At getting the baudrate, the max baudrate parameter value is changed to 4M.
So samsung serial can support upto 4M baudrate.

---
  drivers/tty/serial/samsung.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
drivers/tty/serial/samsung.c +0 -0
index a6abe0c..513096d 100644

drivers/tty/serial/samsung.c static void s3c24xx_serial_set_termios(struct uart_port *port, · line 707

Quoted 8 lines
drivers/tty/serial/samsung.c +1 -1
@@ -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,

Quoted 1 line

Is this available on all of Samsung serial?

I'm not sure about that, but it just indicates the max baudrate.

Thank you.
Best Regards.