[PATCH 2/2] Add 'sparse16550' support to PowerPC bootwrapper

David Woodhouse dwmw2 at infradead.org
Sun Jul 8 02:57:50 EST 2007


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 <dwmw2 at infradead.org>

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




More information about the Linuxppc-dev mailing list