mirror of
https://github.com/X11Libre/xf86-video-nv.git
synced 2026-03-24 01:24:21 +00:00
G80: Fix incorrect I2C port access for ports above 3.
This commit is contained in:
committed by
Aaron Plattner
parent
bf18cd4842
commit
29acf7c970
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user