[U-Boot] [PATCH v2 0/5] ACPI: Generate SPCR table
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Thu Nov 15 17:58:49 UTC 2018
This is a series to enable SPCR table generation in U-Boot.
This table is useful to get early console in Linux for debugging purposes.
The benefit of using it is not only for x86, but also for arm64 community
(actually they introduced support in Linux kernel).
This implementation has been tested on Intel Edison with enabled ACPI support.
Known issues:
- there is no ->getconfig() callback, thus some data is hard coded
- if the serial parameters are changed at run time, SPCR is not regenerated,
thus, might not produce what user excepts
(this is more likely design issue of U-Boot itself)
- implementation is not final and might not utilize best practices in U-Boot
Changelog v2:
- drop WIP state
- test on most recent U-Boot and Linux kernel
Andy Shevchenko (5):
serial: Introduce ->getinfo() callback
serial: ns16550: Read reg-io-width from device tree
serial: ns16550: Provide ->getinfo() implementation
x86: acpi: Add SPCR table description
x86: acpi: Generate SPCR table
arch/x86/include/asm/acpi_table.h | 51 +++++++++++++++++++
arch/x86/lib/acpi_table.c | 85 +++++++++++++++++++++++++++++++
drivers/serial/ns16550.c | 15 ++++++
drivers/serial/serial-uclass.c | 21 ++++++++
include/common.h | 3 ++
include/ns16550.h | 4 +-
include/serial.h | 17 +++++++
7 files changed, 195 insertions(+), 1 deletion(-)
--
2.19.1
More information about the U-Boot
mailing list