[PATCH v2 0/7] x86/boot: Enable earlyprintk for HS UARTs

From: Andy Shevchenko
Date: Tue Mar 19 2019 - 14:44:06 EST


Newer Intel platforms sometimes have only HS UART enabled and
accessible via MMIO on high addresses.

For now, earlyprintk doesn't handle such cases and always rely
on the legacy serial port to be present.

This series fills the gap and enables earlyprintk on HS UARTs.

Since v2:
- rebase on top of v5.1-rc1
- parse 'mmio' keyword instead of port range check (Ingo)
- deduplicate code wherever it's possible (Ingo)

Andy Shevchenko (7):
x86/boot: Convert early_serial_base to unsigned long
x86/boot: Introduce helpers for serial I/O
x86/boot: Split out parse_serial_port() helper for earlyprintk
x86/boot: Allow longer parameter list for earlyprintk
x86/boot: Add MMIO byte accessors
x86/boot: Introduce MMIO accessors and their support in earlyprintk
x86/boot: Support nocfg parameter for earlyprintk

arch/x86/boot/boot.h | 16 ++-
.../boot/compressed/early_serial_console.c | 5 +-
arch/x86/boot/compressed/misc.c | 4 +-
arch/x86/boot/compressed/misc.h | 8 +-
arch/x86/boot/early_serial_console.c | 135 ++++++++++++++----
arch/x86/boot/tty.c | 9 +-
6 files changed, 140 insertions(+), 37 deletions(-)

--
2.20.1