Add to legacy_serial the ability to use any ns16550 compatible UART with a parent that is compatible with "localbus" as the console device.
Signed-off-by: Paul Gortmaker <[EMAIL PROTECTED]> --- arch/powerpc/kernel/legacy_serial.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index a17a5d0..d0b8e35 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c @@ -351,6 +351,17 @@ void __init find_legacy_serial_ports(void) of_node_put(opb); } + /* Next, fill our array with any localbus serial ports */ + for_each_compatible_node(np, "serial", "ns16550") { + struct device_node *lbs = of_get_parent(np); + if (lbs && of_device_is_compatible(lbs, "localbus")) { + index = add_legacy_soc_port(np, np); + if (index >= 0 && np == stdout) + legacy_serial_console = index; + } + of_node_put(lbs); + } + #ifdef CONFIG_PCI /* Next, try to locate PCI ports */ for (np = NULL; (np = of_find_all_nodes(np));) { -- 1.5.0.rc1.gf4b6c _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev