Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/iq80310 Default the console to the correct s...



details:   https://anonhg.NetBSD.org/src/rev/bb652db0633a
branches:  trunk
changeset: 521905:bb652db0633a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Feb 08 03:41:56 2002 +0000

description:
Default the console to the correct speed on the Npwr (so that
it doesn't have to be set in the kernel config file).

diffstat:

 sys/arch/evbarm/iq80310/iq80310_machdep.c |  20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r b25bb0ed32f7 -r bb652db0633a sys/arch/evbarm/iq80310/iq80310_machdep.c
--- a/sys/arch/evbarm/iq80310/iq80310_machdep.c Fri Feb 08 03:28:24 2002 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_machdep.c Fri Feb 08 03:41:56 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80310_machdep.c,v 1.19 2002/02/07 23:53:01 thorpej Exp $     */
+/*     $NetBSD: iq80310_machdep.c,v 1.20 2002/02/08 03:41:56 thorpej Exp $     */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -183,15 +183,25 @@
 #include <dev/ic/comvar.h>
 #endif
 
+/*
+ * Define the default console speed for the board.  This is generally
+ * what the firmware provided with the board defaults to.
+ */
 #ifndef CONSPEED
-#define CONSPEED B115200       /* What RedBoot uses */
+#if defined(IOP310_TEAMASA_NPWR)
+#define CONSPEED B19200
+#else /* Default to stock IQ80310 */
+#define CONSPEED B115200
+#endif /* list of IQ80310-based designs */
+#endif /* ! CONSPEED */
+
+#ifndef CONUNIT
+#define        CONUNIT 0
 #endif
+
 #ifndef CONMODE
 #define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB)) | CS8) /* 8N1 */
 #endif
-#ifndef CONUNIT
-#define        CONUNIT 0
-#endif
 
 int comcnspeed = CONSPEED;
 int comcnmode = CONMODE;



Home | Main Index | Thread Index | Old Index