]> git.ipfire.org Git - thirdparty/grub.git/commit
term/ns8250: Use ACPI SPCR table when available to configure serial
authorBenjamin Herrenschmidt <benh@amazon.com>
Fri, 23 Dec 2022 01:47:57 +0000 (12:47 +1100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 19 Jan 2023 16:39:03 +0000 (17:39 +0100)
commit7b192ec4cd7c4b3207db010202349dd283e72041
tree6b3825a1a632c940b40abb6c2534c511e1b36838
parentc2ef140a687faf80de4916f12fabcc64f6dfa023
term/ns8250: Use ACPI SPCR table when available to configure serial

"serial auto" is now equivalent to just "serial" and will use the
SPCR to discover the port if present, otherwise defaults to "com0"
as before.

This allows to support MMIO ports specified by ACPI which is needed
on AWS EC2 "metal" instances, and will enable GRUB to pickup the
port configuration specified by ACPI in other cases.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
docs/grub.texi
grub-core/Makefile.core.def
grub-core/term/ns8250-spcr.c [new file with mode: 0644]
grub-core/term/serial.c
include/grub/serial.h