Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Fix NCT6779 gpio pin configuration. Implemeted b...



details:   https://anonhg.NetBSD.org/src/rev/b76d3e0d631a
branches:  trunk
changeset: 358115:b76d3e0d631a
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Wed Dec 13 00:27:01 2017 +0000

description:
Fix NCT6779 gpio pin configuration. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.

I just commit by proxy.

diffstat:

 sys/dev/isa/wbsio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 096dc8f910da -r b76d3e0d631a sys/dev/isa/wbsio.c
--- a/sys/dev/isa/wbsio.c       Wed Dec 13 00:26:06 2017 +0000
+++ b/sys/dev/isa/wbsio.c       Wed Dec 13 00:27:01 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wbsio.c,v 1.16 2017/12/13 00:26:06 knakahara Exp $     */
+/*     $NetBSD: wbsio.c,v 1.17 2017/12/13 00:27:01 knakahara Exp $     */
 /*     $OpenBSD: wbsio.c,v 1.10 2015/03/14 03:38:47 jsg Exp $  */
 /*
  * Copyright (c) 2008 Mark Kettenis <kettenis%openbsd.org@localhost>
@@ -668,7 +668,7 @@
        mfs2 |= WBSIO_NCT6779D_MFS2_GP04;
        mfs2 |= WBSIO_NCT6779D_MFS2_GP05;
        mfs2 |= WBSIO_NCT6779D_MFS2_GP06;
-       mfs3 |= WBSIO_NCT6779D_MFS3_GP07_MASK;
+       mfs3 &= ~WBSIO_NCT6779D_MFS3_GP07_MASK;
 
        /* GPIO1 pin configs */
        mfs4 |= WBSIO_NCT6779D_MFS4_GP10_GP17;
@@ -703,7 +703,7 @@
        mfs1 |= WBSIO_NCT6779D_MFS1_GP42;
        mfs1 |= WBSIO_NCT6779D_MFS1_GP42;
        gopt2 |= WBSIO_NCT6779D_GOPT2_GP43;
-       mfs1 |= WBSIO_NCT6779D_MFS1_GP44_GP45_MASK;
+       mfs1 &= ~WBSIO_NCT6779D_MFS1_GP44_GP45_MASK;
        gopt2 &= ~WBSIO_NCT6779D_GOPT2_GP46_MASK;
        mfs1 |= WBSIO_NCT6779D_MFS1_GP47;
 



Home | Main Index | Thread Index | Old Index