Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/ingenic fix uart parameters, now speed setting...



details:   https://anonhg.NetBSD.org/src/rev/2c90c91e03f5
branches:  trunk
changeset: 806735:2c90c91e03f5
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sat Mar 07 15:35:33 2015 +0000

description:
fix uart parameters, now speed setting actually works

diffstat:

 sys/arch/mips/ingenic/ingenic_com.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 3a9bdf4ba7a6 -r 2c90c91e03f5 sys/arch/mips/ingenic/ingenic_com.c
--- a/sys/arch/mips/ingenic/ingenic_com.c       Sat Mar 07 15:22:38 2015 +0000
+++ b/sys/arch/mips/ingenic/ingenic_com.c       Sat Mar 07 15:35:33 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ingenic_com.c,v 1.3 2014/12/23 15:12:23 macallan Exp $ */
+/*     $NetBSD: ingenic_com.c,v 1.4 2015/03/07 15:35:33 macallan Exp $ */
 
 /*-
  * Copyright (c) 2014 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ingenic_com.c,v 1.3 2014/12/23 15:12:23 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ingenic_com.c,v 1.4 2015/03/07 15:35:33 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -56,7 +56,7 @@
 void   ingenic_putchar(char);
 
 #ifndef CONMODE
-# define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | PARENB)) | CS8)
+# define CONMODE ((TTYDEF_CFLAG & ~(CSIZE | CSTOPB | PARENB)) | CS8)
 #endif
 
 
@@ -163,7 +163,7 @@
         * so we just leave alone whatever u-boot set up
         * my uplcom is too tolerant to show any difference
         */
-       comcnattach1(&regs, -1, 6000000, COM_TYPE_INGENIC, CONMODE);
+       comcnattach1(&regs, 115200, 48000000, COM_TYPE_INGENIC, CONMODE);
 }
 
 static int
@@ -184,7 +184,7 @@
        struct com_softc *sc = &isc->sc_com;
 
        sc->sc_dev = self;
-       sc->sc_frequency = 12000000;
+       sc->sc_frequency = 48000000;
        sc->sc_type = COM_TYPE_INGENIC;
        memset(&sc->sc_regs, 0, sizeof(sc->sc_regs));
        COM_INIT_REGS(sc->sc_regs, &ingenic_com_mbst, regh, 0);



Home | Main Index | Thread Index | Old Index