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

Bruce Ashfield bruce.ashfield at windriver.com
Sat Nov 9 06:28:25 PST 2013


On 11/7/2013, 8:12 PM, Paul Butler wrote:
> 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 | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
> index aa46383..4587609 100644
> --- a/drivers/tty/serial/amba-pl011.c
> +++ b/drivers/tty/serial/amba-pl011.c
> @@ -1667,12 +1667,12 @@ pl011_set_termios(struct uart_port *port, struct ktermios *termios,
>   			quot -= 2;
>   	}
>   	/* Set baud rate */
> -#if 1
> +#if 0

Same comment. Why are we carrying #if 0 code ?

Bruce

>   	writew(quot & 0x3f, port->membase + UART011_FBRD);
>   	writew(quot >> 6, port->membase + UART011_IBRD);
>   #else
> -	writew(0x5, port->membase + UART011_FBRD);
> -	writew(0x1, port->membase + UART011_IBRD);
> +	writew(0x3, port->membase + UART011_FBRD);
> +	writew(0x364, port->membase + UART011_IBRD);
>   #endif
>
>   	/*
>




More information about the linux-yocto mailing list