Module Name:    src
Committed By:   matt
Date:           Tue Mar 18 06:17:55 UTC 2014

Modified Files:
        src/sys/arch/evbarm/armadaxp: armadaxp_machdep.c

Log Message:
Default comfreq to mvTclk if CONSFREQ is not defined.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/evbarm/armadaxp/armadaxp_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/armadaxp/armadaxp_machdep.c
diff -u src/sys/arch/evbarm/armadaxp/armadaxp_machdep.c:1.6 src/sys/arch/evbarm/armadaxp/armadaxp_machdep.c:1.7
--- src/sys/arch/evbarm/armadaxp/armadaxp_machdep.c:1.6	Mon Dec 23 04:12:09 2013
+++ src/sys/arch/evbarm/armadaxp/armadaxp_machdep.c	Tue Mar 18 06:17:55 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: armadaxp_machdep.c,v 1.6 2013/12/23 04:12:09 kiyohara Exp $	*/
+/*	$NetBSD: armadaxp_machdep.c,v 1.7 2014/03/18 06:17:55 matt Exp $	*/
 /*******************************************************************************
 Copyright (C) Marvell International Ltd. and its affiliates
 
@@ -37,7 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
 *******************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: armadaxp_machdep.c,v 1.6 2013/12/23 04:12:09 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armadaxp_machdep.c,v 1.7 2014/03/18 06:17:55 matt Exp $");
 
 #include "opt_machdep.h"
 #include "opt_mvsoc.h"
@@ -414,7 +414,7 @@ initarm(void *arg)
 #define	CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB)) | CS8) /* 8N1 */
 #endif
 #ifndef CONSFREQ
-#define	CONSFREQ 250000000
+#define	CONSFREQ 0
 #endif
 static const int	comcnspeed = CONSPEED;
 static const int	comcnfreq  = CONSFREQ;
@@ -435,7 +435,7 @@ consinit(void)
 	    uint32_t, int);
 
 	if (mvuart_cnattach(&mvsoc_bs_tag, comcnaddr, comcnspeed,
-			comcnfreq, comcnmode))
+			comcnfreq ? comcnfreq : mvTclk , comcnmode))
 		panic("Serial console can not be initialized.");
 #endif
 }

Reply via email to