Use BGE_SETBIT() instead of CSR_WRITE_4() for the BGE_MISC_LOCAL_CTL register
to not to modify some GPIO bits.
This commit is contained in:
parent
5cb75bff7e
commit
36a4e06a9b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_bge.c,v 1.250 2013/05/28 17:03:34 msaitoh Exp $ */
|
||||
/* $NetBSD: if_bge.c,v 1.251 2013/05/29 08:24:06 msaitoh Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Wind River Systems
|
||||
|
@ -79,7 +79,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.250 2013/05/28 17:03:34 msaitoh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.251 2013/05/29 08:24:06 msaitoh Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -2971,7 +2971,7 @@ bge_blockinit(struct bge_softc *sc)
|
|||
|
||||
/* 5718 step 45, 57XX step 79 */
|
||||
/* 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);
|
||||
if (BGE_IS_5717_PLUS(sc)) {
|
||||
CSR_READ_4(sc, BGE_MISC_LOCAL_CTL); /* Flush */
|
||||
/* 5718 step 46 */
|
||||
|
|
Loading…
Reference in New Issue