]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/acpi/Makefile
ACPI: parse SPCR and enable matching console
authorAleksey Makarov <aleksey.makarov@linaro.org>
Tue, 27 Sep 2016 20:54:13 +0000 (23:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2016 15:46:46 +0000 (17:46 +0200)
commitad1696f6f09daacfdf2bf04bc83cd8f48d80e34a
tree5621bb984dfcd615ce17180fd00f08d8163eb756
parentd503187b6cc4e41c21c02e695e0e7b5acdd066de
ACPI: parse SPCR and enable matching console

'ARM Server Base Boot Requiremets' [1] mentions SPCR (Serial Port
Console Redirection Table) [2] as a mandatory ACPI table that
specifies the configuration of serial console.

Defer initialization of DT earlycon until ACPI/DT decision is made.

Parse the ACPI SPCR table, setup earlycon if required,
enable specified console.

Thanks to Peter Hurley for explaining how this should work.

[1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044a/index.html
[2] https://msdn.microsoft.com/en-us/library/windows/hardware/dn639132(v=vs.85).aspx

Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Tested-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Tested-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/spcr.c [new file with mode: 0644]
drivers/tty/serial/earlycon.c
include/linux/acpi.h
include/linux/serial_core.h