public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 0/2] ACPI: Generate SPCR table
Date: Sat, 22 Sep 2018 16:05:03 +0300	[thread overview]
Message-ID: <20180922130505.77474-1-andriy.shevchenko@linux.intel.com> (raw)

This is a WIP series (I have no time to continue with it, so, that's why WIP)
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 PoC 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 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

So, if there is any interest, I would be happy to help, but as I mentioned
above I have no capacity to continue this myself.

The patches would be also available through my U-Boot tree on GH.

Andy Shevchenko (2):
  WIP: serial: Introduce ->getinfo() callback
  WIP: x86: acpi: Generate SPCR table

 arch/x86/include/asm/acpi_table.h | 25 ++++++++++
 arch/x86/lib/acpi_table.c         | 82 +++++++++++++++++++++++++++++++
 drivers/serial/ns16550.c          | 14 ++++++
 drivers/serial/serial-uclass.c    | 21 ++++++++
 include/common.h                  |  3 ++
 include/serial.h                  | 14 ++++++
 6 files changed, 159 insertions(+)

-- 
2.18.0

             reply	other threads:[~2018-09-22 13:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-22 13:05 Andy Shevchenko [this message]
2018-09-22 13:05 ` [U-Boot] [PATCH v1 1/2] WIP: serial: Introduce ->getinfo() callback Andy Shevchenko
2018-09-24  7:43   ` Patrice CHOTARD
2018-09-24  7:52     ` Andy Shevchenko
2018-09-25  2:24   ` Bin Meng
2018-11-15 16:03     ` Andy Shevchenko
2018-09-22 13:05 ` [U-Boot] [PATCH v1 2/2] WIP: x86: acpi: Generate SPCR table Andy Shevchenko
2018-09-24  7:44   ` Patrice CHOTARD
2018-09-25  2:27   ` Bin Meng
2018-11-15 16:06     ` Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180922130505.77474-1-andriy.shevchenko@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox