11 Sep 2004 00:02
[PATCH, RFC] Add early uart console driver
Bjorn Helgaas <bjorn.helgaas <at> hp.com>
2004-09-10 22:02:47 GMT
2004-09-10 22:02:47 GMT
This adds an early "uart" console driver, based on Andi Kleen's
early_printk work.
The main difference is that this locates the UART device directly by
its MMIO or I/O port address, so we don't have to make assumptions about
how ttyS devices will be named. After the normal serial driver starts,
we try to locate the matching ttyS device and start a console there.
Sample usage:
console=uart,io,0x3f8
console=uart,mmio,0xff5e0000,115200n8
If the baud rate isn't specified, we peek at the UART to figure it
out.
With just the patch below, the console starts working in console_init().
But it provides a hook, early_serial_console_init(), that arch code can
use to make the console start working early in setup_arch(), similar to
early_printk.
Comments welcome.
Documentation/kernel-parameters.txt | 20 ++
drivers/serial/8250.c | 35 ++++
drivers/serial/Makefile | 1
include/linux/serial.h | 2
kernel/printk.c | 2
drivers/serial/8250_early.c | 255 ++++++++++++++++++++++++++++++++++++
6 files changed, 312 insertions(+), 3 deletions(-)
(Continue reading)
RSS Feed