diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-02-27 17:21:54 +0200 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-04-16 14:36:28 +0800 |
commit | bf4661bcb0e70da975b7513006b204f01fdbc0f7 (patch) | |
tree | bc0188cc4e893b028eab74572d39615765d6d4f0 /drivers/serial | |
parent | 66b8669d7709cecedf2e0403bb17b48bab86f644 (diff) | |
download | u-boot-bf4661bcb0e70da975b7513006b204f01fdbc0f7.zip u-boot-bf4661bcb0e70da975b7513006b204f01fdbc0f7.tar.gz u-boot-bf4661bcb0e70da975b7513006b204f01fdbc0f7.tar.bz2 |
dm: serial: Add clock member to struct serial_device_info
Some callers of serial_getinfo() would like to know the UART base
clock speed in order to make decision what to pass to OS in some
cases. In particular, ACPI SPCR table expects only certain base
clock speed and thus we have to act accordingly.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/sandbox.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index 1af5cc1..545ff3f 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -198,6 +198,7 @@ static int sandbox_serial_getinfo(struct udevice *dev, .reg_width = 1, .reg_offset = 0, .reg_shift = 0, + .clock = SERIAL_DEFAULT_CLOCK, }; if (!serial_info) |