diff options
author | Michael Lorenz <macallan@NetBSD.org> | 2015-02-19 15:26:46 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-03-14 15:48:12 -0400 |
commit | 5b22c69898330d2e321596f7061b91362c0e6216 (patch) | |
tree | db8c508207aecd9c0ac8363f52d2bb0bf8a7d898 | |
parent | b54f27f0de0558880b2146a4315a99907eb72249 (diff) |
Fix I2C for DDC2.
When doing DDC2 on Permedia make sure to clear the USE_MONID bit
in the DDCdata register so the i2c bits actually do something.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
-rw-r--r-- | src/pm2_dac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pm2_dac.c b/src/pm2_dac.c index 85093ff..fc4bfea 100644 --- a/src/pm2_dac.c +++ b/src/pm2_dac.c @@ -458,7 +458,8 @@ Permedia2I2CPutBits(I2CBusPtr b, int scl, int sda) { GLINTPtr pGlint = (GLINTPtr) b->DriverPrivate.ptr; int r = (pGlint->DDCBus == b) ? PMDDCData : VSSerialBusControl; - CARD32 v = GLINT_READ_REG(r) & ~(ClkOut | DataOut); + + CARD32 v = 0; if (scl > 0) v |= ClkOut; if (sda > 0) v |= DataOut; |