serial: altera_uart: add earlycon support
authorTobias Klauser <tklauser@distanz.ch>
Wed, 22 Mar 2017 12:50:13 +0000 (13:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Mar 2017 14:56:10 +0000 (16:56 +0200)
commit4d9d7d896d77e70e6868cfe681e7fcd58dc9526d
treee51c87225e31ee349087ecc0e65d3103463bb54f
parenta4199f5eb8096d63828f7333fa45650a7b0a99ed
serial: altera_uart: add earlycon support

Nios2 currently uses its own early printk implementation, rather than
using unified earlycon support to show boot messages on altera_uart.

Add earlycon support to altera_uart so that other archs may use it.
Also, this (together with the corresponding patch for altera_jtaguart)
will allow the early printk implementation in arch/nios2 to 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_uart.c