original_kernel/drivers/serial
Yinghai Lu 18a8bd949d serial: convert early_uart to earlycon for 8250
Beacuse SERIAL_PORT_DFNS is removed from include/asm-i386/serial.h and
include/asm-x86_64/serial.h.  the serial8250_ports need to be probed late in
serial initializing stage.  the console_init=>serial8250_console_init=>
register_console=>serial8250_console_setup will return -ENDEV, and console
ttyS0 can not be enabled at that time.  need to wait till uart_add_one_port in
drivers/serial/serial_core.c to call register_console to get console ttyS0.
that is too late.

Make early_uart to use early_param, so uart console can be used earlier.  Make
it to be bootconsole with CON_BOOT flag, so can use console handover feature.
and it will switch to corresponding normal serial console automatically.

new command line will be:
	console=uart8250,io,0x3f8,9600n8
	console=uart8250,mmio,0xff5e0000,115200n8
or
	earlycon=uart8250,io,0x3f8,9600n8
	earlycon=uart8250,mmio,0xff5e0000,115200n8

it will print in very early stage:
	Early serial console at I/O port 0x3f8 (options '9600n8')
	console [uart0] enabled
later for console it will print:
	console handover: boot [uart0] -> real [ttyS0]

Signed-off-by: <yinghai.lu@sun.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 09:05:35 -07:00
..
cpm_uart [POWERPC] CPM_UART: Removed __init from cpm_uart_init_portdesc to fix warning 2007-05-09 23:44:58 -05:00
jsm PCI: Change all drivers to use pci_device->revision 2007-07-11 16:02:10 -07:00
8250.c serial: convert early_uart to earlycon for 8250 2007-07-16 09:05:35 -07:00
8250.h
8250_accent.c
8250_acorn.c [ARM] ecard: add ecardm_iomap() / ecardm_iounmap() 2007-05-11 17:19:02 +01:00
8250_au1x00.c
8250_boca.c
8250_early.c serial: convert early_uart to earlycon for 8250 2007-07-16 09:05:35 -07:00
8250_exar_st16c554.c
8250_fourport.c
8250_gsc.c
8250_hp300.c
8250_hub6.c
8250_mca.c
8250_pci.c
8250_pnp.c
21285.c
68328serial.c
68328serial.h
68360serial.c
Kconfig serial: convert early_uart to earlycon for 8250 2007-07-16 09:05:35 -07:00
Makefile [ARM] 4332/2: KS8695: Serial driver 2007-05-11 22:02:52 +01:00
amba-pl010.c [ARM] Fix 4417/1: Serial: Fix AMBA drivers locking 2007-06-05 19:39:49 +01:00
amba-pl011.c [ARM] 4417/1: Serial: Fix AMBA drivers locking 2007-05-30 14:33:01 +01:00
atmel_serial.c
atmel_serial.h
bfin_5xx.c Blackfin serial driver: supporting BF548-EZKIT serial port 2007-07-12 16:43:46 +08:00
clps711x.c
crisv10.c
dz.c
dz.h
icom.c icom: add new sub-device-id to support new adapter 2007-05-17 05:23:05 -07:00
icom.h
imx.c
ioc3_serial.c
ioc4_serial.c
ip22zilog.c
ip22zilog.h
m32r_sio.c
m32r_sio.h
m32r_sio_reg.h
mcfserial.c
mcfserial.h
mpc52xx_uart.c
mpsc.c serial: clear proper MPSC interrupt cause bits 2007-06-28 11:38:29 -07:00
mux.c
netx-serial.c
of_serial.c
pmac_zilog.c
pmac_zilog.h
pnx8xxx_uart.c
pxa.c
s3c2410.c
sa1100.c
serial_core.c serial: assert DTR for serial console devices 2007-07-16 09:05:34 -07:00
serial_cs.c PCMCIA-NETDEV : add new ID of lan&modem multifunction card 2007-07-08 22:16:39 -04:00
serial_ks8695.c [ARM] 4411/1: KS8695: Another serial driver fix 2007-05-30 13:15:19 +01:00
serial_lh7a40x.c
serial_txx9.c serial_txx9: zap changelog from source code 2007-05-08 11:15:12 -07:00
sh-sci.c
sh-sci.h
sn_console.c
suncore.c [SPARC]: Linux always started with 9600 8N1 2007-05-29 02:50:07 -07:00
suncore.h
sunhv.c [SPARC64]: Add hypervisor API negotiation and fix console bugs. 2007-05-15 20:23:02 -07:00
sunsab.c
sunsab.h
sunsu.c
sunzilog.c [SERIAL] sunzilog: section mismatch fix 2007-05-29 02:49:17 -07:00
sunzilog.h [SERIAL] sunzilog: Interrupt enable before ISR handler installed 2007-05-09 13:49:04 -07:00
uartlite.c
v850e_uart.c
vr41xx_siu.c [MIPS] separate platform_device registration for VR41xx serial interface 2007-07-12 17:41:13 +01:00