All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] serial: samsung: Add support 4M baudrate for samsung serial
@ 2012-02-03  8:06 ` 김경일
  0 siblings, 0 replies; 6+ messages in thread
From: 김경일 @ 2012-02-03  8:06 UTC (permalink / raw)
  To: linux-arm-kernel, linux-samsung-soc
  Cc: 'Kukjin Kim', '김경일'

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 <ki0351.kim@samsung.com>
---
 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;
-- 
1.7.1

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

* [PATCH] serial: samsung: Add support 4M baudrate for samsung serial
@ 2012-02-03  8:06 ` 김경일
  0 siblings, 0 replies; 6+ messages in thread
From: 김경일 @ 2012-02-03  8:06 UTC (permalink / raw)
  To: linux-arm-kernel

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 <ki0351.kim@samsung.com>
---
 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;
-- 
1.7.1

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

* Re: [PATCH] serial: samsung: Add support 4M baudrate for samsung serial
  2012-02-03  8:06 ` 김경일
@ 2012-05-12 23:58   ` Kukjin Kim
  -1 siblings, 0 replies; 6+ messages in thread
From: Kukjin Kim @ 2012-05-12 23:58 UTC (permalink / raw)
  To: 김경일
  Cc: linux-arm-kernel, linux-samsung-soc, 'Kukjin Kim'

On 02/03/12 17:06, 김경일 wrote:
> 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<ki0351.kim@samsung.com>
> ---
>   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 <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

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

* [PATCH] serial: samsung: Add support 4M baudrate for samsung serial
@ 2012-05-12 23:58   ` Kukjin Kim
  0 siblings, 0 replies; 6+ messages in thread
From: Kukjin Kim @ 2012-05-12 23:58 UTC (permalink / raw)
  To: linux-arm-kernel

On 02/03/12 17:06, ??? wrote:
> 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<ki0351.kim@samsung.com>
> ---
>   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 <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

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

* RE: [PATCH] serial: samsung: Add support 4M baudrate for samsung serial
  2012-05-12 23:58   ` Kukjin Kim
@ 2012-05-14 10:30     ` Kyoungil Kim
  -1 siblings, 0 replies; 6+ messages in thread
From: Kyoungil Kim @ 2012-05-14 10:30 UTC (permalink / raw)
  To: 'Kukjin Kim'; +Cc: linux-arm-kernel, linux-samsung-soc

Kukjin Kim wrote:
> On 02/03/12 17:06, 김경일 wrote:
> > 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<ki0351.kim@samsung.com>
> > ---
> >   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?

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

Thank you.
Best Regards.

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

* [PATCH] serial: samsung: Add support 4M baudrate for samsung serial
@ 2012-05-14 10:30     ` Kyoungil Kim
  0 siblings, 0 replies; 6+ messages in thread
From: Kyoungil Kim @ 2012-05-14 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

Kukjin Kim wrote:
> On 02/03/12 17:06, ??? wrote:
> > 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<ki0351.kim@samsung.com>
> > ---
> >   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?

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

Thank you.
Best Regards.

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

end of thread, other threads:[~2012-05-14 10:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-03  8:06 [PATCH] serial: samsung: Add support 4M baudrate for samsung serial 김경일
2012-02-03  8:06 ` 김경일
2012-05-12 23:58 ` Kukjin Kim
2012-05-12 23:58   ` Kukjin Kim
2012-05-14 10:30   ` Kyoungil Kim
2012-05-14 10:30     ` Kyoungil Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.