From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [PATCH v1 2/3] serial: ns16550: Provide UART base clock speed in ->getinfo()
Date: Thu, 27 Feb 2020 17:21:55 +0200 [thread overview]
Message-ID: <20200227152156.87385-2-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20200227152156.87385-1-andriy.shevchenko@linux.intel.com>
Some callers may need the UART base clock speed value.
Provide it in the ->getinfo() callback.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/serial/ns16550.c | 1 +
1 file changed, 1 insertion(+)
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;
return 0;
}
--
2.25.0
next prev parent reply other threads:[~2020-02-27 15:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-27 15:21 [PATCH v1 1/3] dm: serial: Add clock member to struct serial_device_info Andy Shevchenko
2020-02-27 15:21 ` Andy Shevchenko [this message]
2020-02-27 23:40 ` [PATCH v1 2/3] serial: ns16550: Provide UART base clock speed in ->getinfo() Simon Glass
2020-04-15 14:19 ` Bin Meng
2020-04-15 14:27 ` Bin Meng
2020-02-27 15:21 ` [PATCH v1 3/3] x86: acpi: Let OS know that console already had been initialized Andy Shevchenko
2020-04-15 14:20 ` Bin Meng
2020-04-15 14:27 ` Bin Meng
2020-02-27 23:40 ` [PATCH v1 1/3] dm: serial: Add clock member to struct serial_device_info Simon Glass
2020-04-15 14:19 ` Bin Meng
2020-04-15 14:27 ` Bin Meng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200227152156.87385-2-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox