dm: serial: Add clock member to struct serial_device_info
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 27 Feb 2020 15:21:54 +0000 (17:21 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 16 Apr 2020 06:36:28 +0000 (14:36 +0800)
commitbf4661bcb0e70da975b7513006b204f01fdbc0f7
treebc0188cc4e893b028eab74572d39615765d6d4f0
parent66b8669d7709cecedf2e0403bb17b48bab86f644
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>
drivers/serial/sandbox.c
include/serial.h
test/dm/serial.c