[PATCH v1 2/3] serial: ns16550: Provide UART base clock speed in ->getinfo()
Simon Glass
sjg at chromium.org
Fri Feb 28 00:40:52 CET 2020
On Thu, 27 Feb 2020 at 07:22, Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
>
> Some callers may need the UART base clock speed value.
> Provide it in the ->getinfo() callback.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> ---
> drivers/serial/ns16550.c | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
>
> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
> index 1fcbc35015..386b5e04c8 100644
> --- a/drivers/serial/ns16550.c
> +++ b/drivers/serial/ns16550.c
> @@ -476,6 +476,7 @@ static int ns16550_serial_getinfo(struct udevice *dev,
> info->reg_width = plat->reg_width;
> info->reg_shift = plat->reg_shift;
> info->reg_offset = plat->reg_offset;
> + info->clock = plat->clock;
blank line before return
> return 0;
> }
>
> --
> 2.25.0
>
More information about the U-Boot
mailing list