]> git.baikalelectronics.ru Git - uboot.git/commit
x86: Allow locating the UART from ACPI tables
authorSimon Glass <sjg@chromium.org>
Thu, 4 May 2023 22:55:00 +0000 (16:55 -0600)
committerBin Meng <bmeng@tinylab.org>
Thu, 11 May 2023 02:25:29 +0000 (10:25 +0800)
commit711382b6ce8b74657c88bc858791646ab15e4cd2
tree8dcf8092bcc0091915664d2e8e77b4a568a355d9
parent632b969746aaf5abaae5b9d2076b6893f64cc0d4
x86: Allow locating the UART from ACPI tables

When coreboot does not pass a UART in its sysinfo struct, there is no
easy way to find it out.

Since coreboot does not actually init the serial device when serial is
disabled, it is not possible to make it add this information to the
sysinfo table.

Add a way to obtain this information from the DBG2 ACPI table, which is
normally set up by coreboot.

For now this only supports a memory-mapped 16550-style UART.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/serial/Kconfig
drivers/serial/serial_coreboot.c