From 9258cfc6e1c91e593152120a59983c9e9f761855 Mon Sep 17 00:00:00 2001 From: Harald Koerfgen Date: Sun, 2 May 1999 20:56:18 +0000 Subject: Some minor bugfixes --- drivers/char/dz.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'drivers/char') diff --git a/drivers/char/dz.c b/drivers/char/dz.c index 347638591..c26a448e8 100644 --- a/drivers/char/dz.c +++ b/drivers/char/dz.c @@ -1401,7 +1401,7 @@ __initfunc(int dz_init(void)) static void dz_console_put_char (unsigned char ch) { long flags; - int loops = 1000; + int loops = 2500; unsigned short tmp = ch; /* this code sends stuff out to serial device - spinning its wheels and waiting. */ @@ -1513,7 +1513,10 @@ __initfunc(static int dz_console_setup(struct console *co, char *options)) /* TOFIX: force to console line */ dz_console = &multi[CONSOLE_LINE]; + if ((mips_machtype == MACH_DS23100) || (mips_machtype == MACH_DS5100)) dz_console->port = KN01_DZ11_BASE; + else + dz_console->port = KN02_DZ11_BASE; dz_console->line = CONSOLE_LINE; dz_out(dz_console, DZ_CSR, DZ_CLR); @@ -1541,7 +1544,10 @@ __initfunc(static int dz_console_setup(struct console *co, char *options)) /* TOFIX: force to console line */ dz_console = &multi[CONSOLE_LINE]; + if ((mips_machtype == MACH_DS23100) || (mips_machtype == MACH_DS5100)) dz_console->port = KN01_DZ11_BASE; + else + dz_console->port = KN02_DZ11_BASE; dz_console->line = CONSOLE_LINE; dz_out(dz_console, DZ_CSR, DZ_CLR); -- cgit v1.2.3