Skip to contentSkip to conversation

serial_core: add pci uart early console support

PATCH Superseded Bin Gao 2 participants 2 messages May 14, 2015 – May 15, 2015 TTY layer and serial drivers

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Bin Gao

author
#0 lore raw

PATCH 1/2 serial_core: add pci uart early console support

Quoted 1 line

From 0d02240f022c8aca593c42a7220699dbbe37f292 Mon Sep 17 00:00:00 2001

From: Bin Gao <[email protected]>
Date: Tue, 12 May 2015 16:40:27 -0700
Subject: [PATCH] serial_core: add pci uart early console support

On some Intel Atom SoCs, the legacy IO port UART(0x3F8) is not available. Instead, a 8250 compatible PCI uart can be used as early console. This patch adds pci support to the 8250 early console driver uart8250. For example, to enable pci uart(00:21.3) as early console on these platforms, append the following line to the kernel command line (assume baud rate is 115200):
earlyprintk=uart8250,pci32,0:24.2,115200n8

---
 drivers/tty/serial/earlycon.c    |   6 ++
 drivers/tty/serial/serial_core.c | 140 ++++++++++++++++++++++++++++++++++++++-
 2 files changed, 144 insertions(+), 2 deletions(-)
drivers/tty/serial/earlycon.c +6 -0
index 5fdc9f3..586d84b 100644
@@ -196,7 +196,13 @@ static int __init param_setup_earlycon(char *buf)
 	}
 	return err;
 }
+
+/* x86 uses "earlyprintk=xxx", so we keep the compatibility here */
+#ifdef CONFIG_X86
+early_param("earlyprintk", param_setup_earlycon);
+#else
 early_param("earlycon", param_setup_earlycon);
+#endif
 
 int __init of_setup_earlycon(unsigned long addr,
 			     int (*setup)(struct earlycon_device *, const char *))
drivers/tty/serial/serial_core.c +138 -2

181 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Bin Gao
Quoted 1 line

From 0d02240f022c8aca593c42a7220699dbbe37f292 Mon Sep 17 00:00:00 2001

From: Bin Gao <[email protected]>
Date: Tue, 12 May 2015 16:40:27 -0700
Subject: [PATCH] serial_core: add pci uart early console support

What is this all here for? Please use git send-email properly to send these patches, I can't hand-edit every patch I receive, sorry.

Please resend these.

thanks,

greg k-h