Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke/dev Read maccfg1/maccfg2/ecntrl so we...



details:   https://anonhg.NetBSD.org/src/rev/9fe5014665d9
branches:  trunk
changeset: 778913:9fe5014665d9
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Apr 19 21:32:01 2012 +0000

description:
Read maccfg1/maccfg2/ecntrl so we can preserve bits we don't change (like
GMII mode).

diffstat:

 sys/arch/powerpc/booke/dev/pq3etsec.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r c381bc6f39ac -r 9fe5014665d9 sys/arch/powerpc/booke/dev/pq3etsec.c
--- a/sys/arch/powerpc/booke/dev/pq3etsec.c     Thu Apr 19 20:20:56 2012 +0000
+++ b/sys/arch/powerpc/booke/dev/pq3etsec.c     Thu Apr 19 21:32:01 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pq3etsec.c,v 1.10 2012/02/21 02:08:55 matt Exp $       */
+/*     $NetBSD: pq3etsec.c,v 1.11 2012/04/19 21:32:01 matt Exp $       */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.10 2012/02/21 02:08:55 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.11 2012/04/19 21:32:01 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -592,6 +592,9 @@
 
        etsec_write(sc, ATTR, ATTR_DEFAULT);
        etsec_write(sc, ATTRELI, ATTRELI_DEFAULT);
+       sc->sc_maccfg1 = etsec_read(sc, MACCFG1);
+       sc->sc_maccfg2 = etsec_read(sc, MACCFG2);
+       sc->sc_ecntrl = etsec_read(sc, ECNTRL);
 
        sc->sc_lock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_SOFTNET);
 



Home | Main Index | Thread Index | Old Index