From: Andy Shevchenko Date: Thu, 27 Feb 2020 15:21:55 +0000 (+0200) Subject: serial: ns16550: Provide UART base clock speed in ->getinfo() X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=5db92a0e960ea0559e82f8c3e2ec7f80a4e86c51;p=u-boot.git serial: ns16550: Provide UART base clock speed in ->getinfo() Some callers may need the UART base clock speed value. Provide it in the ->getinfo() callback. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index a2f1b35629..6415d2e1e5 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -476,6 +476,8 @@ 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; + return 0; }