[linux-yocto] [PATCH 19/94] drivers/tty: AXM5516 emulation bringup - amba-pl011.c

Bruce Ashfield bruce.ashfield at windriver.com
Sat Nov 9 06:23:01 PST 2013


On 11/7/2013, 8:12 PM, Paul Butler wrote:
> Signed-off-by: Paul Butler <paul.butler at windriver.com>
> ---
>   drivers/tty/serial/amba-pl011.c | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
> index b69356c..abe91eb 100644
> --- a/drivers/tty/serial/amba-pl011.c
> +++ b/drivers/tty/serial/amba-pl011.c
> @@ -1667,8 +1667,13 @@ pl011_set_termios(struct uart_port *port, struct ktermios *termios,
>   			quot -= 2;
>   	}
>   	/* Set baud rate */
> +#if 0

? Why is the #if 0 code being kept. Drop it completely or give it a
Kconfig value .. or anything, but don't leave it dead in the tree.

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);
> +#endif
>
>   	/*
>   	 * ----------v----------v----------v----------v-----
>




More information about the linux-yocto mailing list