summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Glisse <glisse@localhost.localdomain>2007-08-21 19:16:33 +0200
committerJerome Glisse <glisse@localhost.localdomain>2007-08-21 19:16:33 +0200
commitcfbcb7a08133e06ee83ddf12850441933e1b27c2 (patch)
tree8c06e0aacc7e9e87ffcd3a1ba4d24d3ec340a565
parent072f051396711409f146c380479fdd305b66a3dc (diff)
avivo: keep some bios initialized bit for TMDS_CNTL.
It seems that bit 24 of TMDS_CNTL can trigger funny things with TMDS display like displaying four small tile of the desktop but in most case it simply make the picture looks weird.
-rw-r--r--xorg/avivo_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xorg/avivo_output.c b/xorg/avivo_output.c
index 567d8dd..a9a90f0 100644
--- a/xorg/avivo_output.c
+++ b/xorg/avivo_output.c
@@ -93,7 +93,7 @@ avivo_output_tmds1_setup(xf86OutputPtr output)
tmp = (tmp & ~0x3) | 1;
OUTREG(AVIVO_TMDS1_MYSTERY3, tmp);
OUTREG(AVIVO_TMDS1_CLOCK_CNTL, 0x1F);
- OUTREG(AVIVO_TMDS1_CNTL, 0x1001);
+ OUTREG(AVIVO_TMDS1_CNTL, (INREG(AVIVO_TMDS1_CNTL) | 0x1));
OUTREG(0x78D0, 0x1);
OUTREG(AVIVO_TMDS1_MYSTERY3, tmp);
OUTREG(AVIVO_TMDS1_MYSTERY3, tmp | 0x3);
@@ -124,7 +124,7 @@ avivo_output_tmds2_setup(xf86OutputPtr output)
tmp = (tmp & ~0x3) | 1;
OUTREG(AVIVO_TMDS2_MYSTERY3, tmp);
OUTREG(AVIVO_TMDS2_CLOCK_CNTL, 0x1E1F);
- OUTREG(AVIVO_TMDS2_CNTL, 0x1001);
+ OUTREG(AVIVO_TMDS2_CNTL, (INREG(AVIVO_TMDS2_CNTL) | 0x1));
OUTREG(0x7AD0, 0x1);
OUTREG(AVIVO_TMDS2_MYSTERY3, tmp);
OUTREG(AVIVO_TMDS2_MYSTERY3, tmp | 0x3);