dm: serial: Introduce ->getinfo() callback
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 20 Nov 2018 21:52:33 +0000 (23:52 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Dec 2018 13:08:31 +0000 (06:08 -0700)
commitd5bb4f862b47ad9112132071ad18f9936494e307
treeba4c615f53874d52b17a25dbf02c10b357c31789
parentac7f5db9dc690901d99fe0afbcb3d4241c3cab8e
dm: serial: Introduce ->getinfo() callback

New callback will give a necessary information to fill up ACPI SPCR table,
for example. Maybe used later for other purposes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Change ADR_SPACE_SYSTEM_IO to SERIAL_ADDRESS_SPACE_IO to fix build error:
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/sandbox.c
drivers/serial/serial-uclass.c
include/common.h
include/serial.h
test/dm/serial.c