]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[POWERPC] Add legacy serial support for OPB with flattened device tree
authorValentine Barshak <vbarshak@ru.mvista.com>
Thu, 11 Oct 2007 19:09:25 +0000 (05:09 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 12 Oct 2007 04:05:18 +0000 (14:05 +1000)
commitb63db45ca44a805ef21eb10a3750e88419156423
tree9bc8fdb03c4eee5fffea104ad6dd646aff67c9bd
parent1189be6508d45183013ddb82b18f4934193de274
[POWERPC] Add legacy serial support for OPB with flattened device tree

Currently find_legacy_serial_ports() can find no serial ports on the
OPB with flattened device tree.  Thus no legacy boot console can be
initialized.  Just the early udbg console works, which is initialized
with udbg_init_44x_as1 on the UART's physical address specified in
kernel config.  This happens because we look for ns16750 serial
devices only and expect opb node to have a device type property.  This
patch makes it look for ns16550-compatible devices and use
of_device_is_compatible() for opb in case device type is not
specified.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/legacy_serial.c