Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/dev/ic Pull up revision 1.165 (requested by drochner):
details: https://anonhg.NetBSD.org/src/rev/7b7a8a85ad01
branches: netbsd-1-4
changeset: 469970:7b7a8a85ad01
user: he <he%NetBSD.org@localhost>
date: Wed Jan 05 23:44:41 2000 +0000
description:
Pull up revision 1.165 (requested by drochner):
Set carrier early enough for a serial console or kgdb to work
with hardware handshake. Fixes PR#6547.
diffstat:
sys/dev/ic/com.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9bee051fbe70 -r 7b7a8a85ad01 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Wed Jan 05 23:40:16 2000 +0000
+++ b/sys/dev/ic/com.c Wed Jan 05 23:44:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.159.2.1 1999/04/19 20:37:57 perry Exp $ */
+/* $NetBSD: com.c,v 1.159.2.2 2000/01/05 23:44:41 he Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -2193,7 +2193,7 @@
}
/*
- * Initialize UART to known state.
+ * Initialize UART for use as console or KGDB line.
*/
int
cominit(iot, iobase, rate, frequency, cflag, iohp)
@@ -2215,7 +2215,7 @@
bus_space_write_1(iot, ioh, com_dlbl, rate);
bus_space_write_1(iot, ioh, com_dlbh, rate >> 8);
bus_space_write_1(iot, ioh, com_lcr, cflag2lcr(cflag));
- bus_space_write_1(iot, ioh, com_mcr, 0);
+ bus_space_write_1(iot, ioh, com_mcr, MCR_DTR | MCR_RTS);
bus_space_write_1(iot, ioh, com_fifo,
FIFO_ENABLE | FIFO_RCV_RST | FIFO_XMT_RST | FIFO_TRIGGER_1);
bus_space_write_1(iot, ioh, com_ier, 0);
Home |
Main Index |
Thread Index |
Old Index