]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Malta: use generic 8250 early console
authorPaul Burton <paul.burton@imgtec.com>
Mon, 2 Dec 2013 16:48:38 +0000 (16:48 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 13:36:26 +0000 (14:36 +0100)
commitf745c73036474819a0003f8e5c5a12aa52c49325
treea903481cd87c1bf81b5a9c365df336e7d04ea271
parente13a61f0a3b60c35f9e5d801c8777ccd3aa70402
MIPS: Malta: use generic 8250 early console

This patch switches Malta from using the MIPS implementation of early
printk with Malta's prom_putchar to using the generic 8250_early
implementation. This offers a couple of advantages:

  - We duplicate less generic code.

  - The UART can be initialised rather than being reliant upon
    inheriting a valid setup from the bootloader.

The Malta console_config function is extended to initialise the early
console if no earlycon= kernel parameter is provided, inheriting the
modetty0 bootloader environment if present and falling back to a
default 38400n8r setup if not. This matches the behaviour used for the
regular console= parameter.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6183/
arch/mips/Kconfig
arch/mips/mti-malta/Makefile
arch/mips/mti-malta/malta-console.c [deleted file]
arch/mips/mti-malta/malta-init.c