coreboot-kgpe-d16/src/console
Vadim Bendebury 90f6cd3567 Add console wrapper for UART driver
Coreboot is designed to have a single serial console at most, on top
of that it may have a CBMEM (virtual) console. Matters are complicated
by the fact that console interface is different between bootblock and
later stages.

A linker list of console driver descriptors is used to allow to
determine the set and type of console drivers at compile time. Even
though the upstream seems to have done away with this approach, which
does not seem the best idea.

As an alternative this patch introduces a common wrapper which
different UART drivers can plug in into. The driver exports a single
API which can be used both directly (in bootblock) and through the
wrapper (in later stages).

The existing drivers can be adjusted to fit this scheme one by one.
The common UART driver API also aligns fine with the upstream
approach.

BUG=chrome-os-partner:27784
TEST=none yet

Original-Change-Id: Id1fe73d29f2a3c722bd77180beebaedb9bf7d6a1
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/196660
Original-Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
(cherry picked from commit 94a36ad79a96f83d283c0fd073b05f98ae48820c)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: Id1fe73d29f2a3c722bd77180beebaedb9bf7d6a1
Reviewed-on: http://review.coreboot.org/7872
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-04-14 21:25:34 +02:00
..
Kconfig New mechanism to define SRAM/memory map with automatic bounds checking 2015-04-06 22:05:01 +02:00
Makefile.inc arm64: Add support for secure monitor 2015-03-28 07:05:09 +01:00
console.c src/console: Sanitize headers and IS_ENABLED usage 2014-06-25 11:32:25 +02:00
die.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
early_print.c console: Split ROMCC helpers 2014-04-18 16:39:40 +02:00
init.c global: Refactor get_option usage 2015-04-06 19:40:00 +02:00
post.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
printk.c console: Convert cbmem log line endings to UNIX standard 2015-03-25 17:25:14 +01:00
uart_wrapper.c Add console wrapper for UART driver 2015-04-14 21:25:34 +02:00
vsprintf.c src/console: Sanitize headers and IS_ENABLED usage 2014-06-25 11:32:25 +02:00
vtxprintf.c Avoid 64bit math on MIPS platforms 2015-03-30 21:42:38 +02:00