Set DTR and RTS in NS16550_init().

Some terminal requires it even if hardware flow control is disabled.

XXX: should we sync bebox/stand with prep?
This commit is contained in:
tsutsui 2007-05-19 14:26:08 +00:00
parent 38bf980ecb
commit 2340b51076

View File

@ -1,4 +1,4 @@
/* $NetBSD: ns16550.c,v 1.2 2006/04/10 18:40:06 garbled Exp $ */
/* $NetBSD: ns16550.c,v 1.3 2007/05/19 14:26:08 tsutsui Exp $ */
/*-
* Copyright (C) 1995-1997 Gary Thomas (gdt@linuxppc.org)
@ -52,7 +52,7 @@ NS16550_init(int addr, int speed)
com_port->dlm = speed >> 8;
com_port->lcr = 0x03; /* 8 data, 1 stop, no parity */
com_port->mcr = 0x00;
com_port->mcr = 0x03; /* Set DTR and RTS */
com_port->fcr = 0x07; /* Clear & enable FIFOs */
com_port->ier = 0x00;