Author: yongari
Date: Wed Jun 26 01:15:40 2013
New Revision: 252227
URL: http://svnweb.freebsd.org/changeset/base/252227

Log:
  Don't blidly clear GPIOs configuration. Just use firmware configured
  one.  This change also fixes non-working traffic LED on BCM57780.
  
  Submitted by: Masanobu SAITOH <msai...@netbsd.org>
  Tested by:    Alexander Milanov <a...@amilanov.com>

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c   Wed Jun 26 00:57:38 2013        (r252226)
+++ head/sys/dev/bge/if_bge.c   Wed Jun 26 01:15:40 2013        (r252227)
@@ -2401,7 +2401,7 @@ bge_blockinit(struct bge_softc *sc)
        DELAY(40);
 
        /* Set misc. local control, enable interrupts on attentions */
-       CSR_WRITE_4(sc, BGE_MISC_LOCAL_CTL, BGE_MLC_INTR_ONATTN);
+       BGE_SETBIT(sc, BGE_MISC_LOCAL_CTL, BGE_MLC_INTR_ONATTN);
 
 #ifdef notdef
        /* Assert GPIO pins for PHY reset */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to