serial: 8250_uniphier: add earlycon support
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 30 Oct 2015 02:46:16 +0000 (11:46 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commitb8d20e06eaad4c2bd64746cacd95be9a5d3e747f
tree3aa1041bf764569535c02fe39a6055febe4311f0
parentd72d391c126e0ffd3047c06c4bef4d795853d5d5
serial: 8250_uniphier: add earlycon support

This reuses the code of drivers/tty/serial/8250/8250_early.c except

  - Overwrite device->port.iotype and device->port.regshift for
    UPIO_MEM32 because of_setup_earlycon() has set them for UPIO_MEM.

  - Set device->baud to zero to prevent early8250_setup() from
    initializing the divisor register because port->uartclk does not
    match the frequency expected by this hardware.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_uniphier.c