tty/serial: add generic serial earlycon
authorRob Herring <robh@kernel.org>
Fri, 18 Apr 2014 22:19:55 +0000 (17:19 -0500)
committerMark Brown <broonie@linaro.org>
Thu, 5 Jun 2014 11:05:23 +0000 (12:05 +0100)
commitb523950dbf9b2cc73f66145bd6f0c00b21a73a90
tree5cf2bd869b61346664d658b12175969cde5364aa
parent8bb495e3f02401ee6f76d1b1d77f3ac9f079e376
tty/serial: add generic serial earlycon

This introduces generic earlycon infrastructure for serial devices
based on the 8250 earlycon. This allows for supporting earlycon option
with other serial devices. The earlycon output is enabled at the time
early_params are processed.

Only architectures that have fixmap support or have functional ioremap
when early_params are processed are supported. This is the same
restriction that the 8250 driver had.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 9aac5887595b765b6f64b2af08b785e82e095b57)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/tty/serial/Kconfig
drivers/tty/serial/Makefile
drivers/tty/serial/earlycon.c [new file with mode: 0644]
include/linux/serial_core.h