[U-Boot] [PATCH v3] NS16550: buffer reads

Marek Vasut marek.vasut at gmail.com
Sat Oct 15 19:55:16 CEST 2011


On Saturday, October 15, 2011 06:03:52 PM Simon Glass wrote:
> From: Scott Wood <scottwood at freescale.com>
> 
> From: Scott Wood <scottwood at freescale.com>
> 
> This improves the performance of U-Boot when accepting rapid input,
> such as pasting a sequence of commands.

Hi Simon,

[...]

> diff --git a/include/ns16550.h b/include/ns16550.h
> index 51f1c17..60b0abc 100644
> --- a/include/ns16550.h
> +++ b/include/ns16550.h
> @@ -164,6 +164,6 @@ typedef volatile struct NS16550 *NS16550_t;
> 
>  void	NS16550_init   (NS16550_t com_port, int baud_divisor);
>  void	NS16550_putc   (NS16550_t com_port, char c);
> -char	NS16550_getc   (NS16550_t com_port);
> -int	NS16550_tstc   (NS16550_t com_port);
> +char NS16550_getc(NS16550_t regs, unsigned int port);
> +int NS16550_tstc(NS16550_t regs, unsigned int port);
>  void	NS16550_reinit (NS16550_t com_port, int baud_divisor);

Maybe you should fix the indent altogether ?

Cheers


More information about the U-Boot mailing list