]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit8185674abe8571011324229d312602caa7533dab
treebc0188cc4e893b028eab74572d39615765d6d4f0
parent275e26ea637186154248287747929bd5348d433a
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