diff options
author | Petr Vandrovec <vandrove@vc.cvut.cz> | 2007-05-08 03:38:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:27 -0400 |
commit | 2707cd016b12d5e64c4feefcb5740b65f0c46845 (patch) | |
tree | 88dac9961436f9e3e2d74191ab070c97eeb38425 /drivers/video | |
parent | dd1447134454b169d5ae353aceb93f2368db8547 (diff) |
nvidiafb: Fix reversed DDC port
After I added some debugging printks I've found that code became a bit
confused because it believed that primary monitor is 1920x540, but later it
found in CRTC0's registers that panel size is 1920x1200 (Windows also agree
that 1920x1200 is primary monitor, and 1920x1080i secondary one).
When I applied attached patch then my monitor became as happy as it was
before I connected HDMI cable to secondary output.
Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/nvidia/nv_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/nvidia/nv_i2c.c b/drivers/video/nvidia/nv_i2c.c index b91d4045431d..bcde013d0b98 100644 --- a/drivers/video/nvidia/nv_i2c.c +++ b/drivers/video/nvidia/nv_i2c.c | |||
@@ -131,10 +131,10 @@ void nvidia_create_i2c_busses(struct nvidia_par *par) | |||
131 | par->chan[1].par = par; | 131 | par->chan[1].par = par; |
132 | par->chan[2].par = par; | 132 | par->chan[2].par = par; |
133 | 133 | ||
134 | par->chan[0].ddc_base = 0x3e; | 134 | par->chan[0].ddc_base = 0x36; |
135 | nvidia_setup_i2c_bus(&par->chan[0], "nvidia #0"); | 135 | nvidia_setup_i2c_bus(&par->chan[0], "nvidia #0"); |
136 | 136 | ||
137 | par->chan[1].ddc_base = 0x36; | 137 | par->chan[1].ddc_base = 0x3e; |
138 | nvidia_setup_i2c_bus(&par->chan[1], "nvidia #1"); | 138 | nvidia_setup_i2c_bus(&par->chan[1], "nvidia #1"); |
139 | 139 | ||
140 | par->chan[2].ddc_base = 0x50; | 140 | par->chan[2].ddc_base = 0x50; |