The bootwrapper already handles a 'reg-shift' property on serial ports and does the right thing. However, these ports really shouldn't be claiming to be compatible with 'ns16550'. Introduce a new 'sparse16550' type for them instead.
Signed-off-by: David Woodhouse <[EMAIL PROTECTED]> diff --git a/arch/powerpc/boot/serial.c b/arch/powerpc/boot/serial.c index 7fd3233..6d9f3f8 100644 --- a/arch/powerpc/boot/serial.c +++ b/arch/powerpc/boot/serial.c @@ -123,7 +123,7 @@ int serial_console_init(void) if (getprop(devp, "compatible", compat, sizeof(compat)) < 0) goto err_out; - if (!strcmp(compat, "ns16550")) + if (!strcmp(compat, "ns16550") || !strcmp(compat, "sparse16550")) rc = ns16550_console_init(devp, &serial_cd); else if (!strcmp(compat, "marvell,mpsc")) rc = mpsc_console_init(devp, &serial_cd); -- dwmw2 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev