summaryrefslogtreecommitdiff
path: root/sys/arch/pc532/dev/scn.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-31 06:38:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-31 06:38:17 +0000
commit54703eca864c32c19283e9932bac38557752ff59 (patch)
treed8c87e2f2b8e6986e2a1691d5aec891792e3387c /sys/arch/pc532/dev/scn.c
parent06635430a8456d19390703a682dff5f1b3c8c93f (diff)
sync with netbsd
Diffstat (limited to 'sys/arch/pc532/dev/scn.c')
-rw-r--r--sys/arch/pc532/dev/scn.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/arch/pc532/dev/scn.c b/sys/arch/pc532/dev/scn.c
index 1b391b8c022..b1d6cf6b1c1 100644
--- a/sys/arch/pc532/dev/scn.c
+++ b/sys/arch/pc532/dev/scn.c
@@ -1,4 +1,4 @@
-/* $NetBSD: scn.c,v 1.22 1995/09/26 20:16:17 phil Exp $ */
+/* $NetBSD: scn.c,v 1.23 1996/01/25 19:50:39 phil Exp $ */
/*
* Copyright (c) 1991 The Regents of the University of California.
@@ -392,8 +392,16 @@ scnattach(parent, self, aux)
#endif
WR_ADR (u_char, rs->acr_port,
(rs->uart->speed_grp << 7) | rs->uart->acr_int_bits);
- scn_config(unit, scndefaultrate, scndefaultrate,
- LC_NONE, LC_STOP1, LC_BITS8);
+#ifdef CONSOLE_SPEED
+ if (unit == 0)
+{ printf ("scn_config on unit 0\n");
+ scn_config(unit, CONSOLE_SPEED, CONSOLE_SPEED,
+ LC_NONE, LC_STOP1, LC_BITS8);
+}
+ else
+#endif
+ scn_config(unit, scndefaultrate, scndefaultrate,
+ LC_NONE, LC_STOP1, LC_BITS8);
/* Turn on the Rx and Tx. */
WR_ADR (u_char, rs->cmd_port, CMD_ENA_RX | CMD_ENA_TX);