summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYinan Shen <shenyn321@gmail.com>2009-05-06 19:14:33 -0700
committerAaron Plattner <aplattner@nvidia.com>2009-05-06 19:15:56 -0700
commit29acf7c970d12c1dfd7bf6c7a42fe2448aa7f3d7 (patch)
treee26b6a99c5cb22ec830dc5b7b33f415c1b0effd6
parentbf18cd4842c33df61b03c3d4e0f00e34485fb957 (diff)
G80: Fix incorrect I2C port access for ports above 3.
-rw-r--r--src/g80_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/g80_output.c b/src/g80_output.c
index 420a73e..75bf7ba 100644
--- a/src/g80_output.c
+++ b/src/g80_output.c
@@ -217,8 +217,9 @@ fail:
static CARD32 i2cAddr(const int port)
{
- const CARD32 base = (port > 3) ? 0x0000E1E0 : 0x0000E138;
- return base + port * 0x18;
+ const CARD32 base = (port > 3) ? 0x0000E1D4 : 0x0000E138;
+ const CARD32 offset = (port > 3) ? 0x20 : 0x18;
+ return base + port * offset;
}
static void G80_I2CPutBits(I2CBusPtr b, int clock, int data)