serial: altera_jtaguart: add earlycon support
authorTobias Klauser <tklauser@distanz.ch>
Tue, 14 Mar 2017 13:11:25 +0000 (14:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 05:14:00 +0000 (14:14 +0900)
commit0dcc0542a00656f6b4ae0ff9f0ba06b6ceec257e
treefc0cc813fd3cddb48474be8735a64a3e08fe76f3
parent47baf1ad81ed10c158c314ab9f304e674ae32531
serial: altera_jtaguart: add earlycon support

Nios2 currently uses its own early printk implementation, rather than
using unified earlycon support to show boot messages on altera_jtaguart
(and altera_uart for that matter).

Add earlycon support to altera_jtaguart so that other archs may use it. Also,
this will allow the early printk implementation in arch/nios2 to eventually be
removed in a future patch.

Cc: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig
drivers/tty/serial/altera_jtaguart.c