diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-11-20 23:52:32 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-12-05 06:06:44 -0700 |
commit | ac7f5db9dc690901d99fe0afbcb3d4241c3cab8e (patch) | |
tree | ac1c22f82a9aa1b481142490623ad1aed5feb555 /include/common.h | |
parent | 4f86a724e82c0b74d9ffb7b65f8ae4b011dd0b03 (diff) | |
download | u-boot-ac7f5db9dc690901d99fe0afbcb3d4241c3cab8e.tar.gz |
dm: serial: Add ->getconfig() callback
In some cases it would be good to know the settings, such as parity,
of current serial console. One example might be an ACPI SPCR table
to generate using these parameters.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index a8e879e1b9..57478365c7 100644 --- a/include/common.h +++ b/include/common.h @@ -364,6 +364,7 @@ void serial_putc_raw(const char); void serial_puts (const char *); int serial_getc (void); int serial_tstc (void); +int serial_getconfig(uint *config); int serial_setconfig(uint config); /* $(CPU)/speed.c */ |