summaryrefslogtreecommitdiff
path: root/src/legacy_output.c
diff options
context:
space:
mode:
authorAlex Deucher <alex@cube.(none)>2008-02-03 00:09:59 -0500
committerAlex Deucher <alex@cube.(none)>2008-02-03 00:09:59 -0500
commitf65e8dfac23adfa199026765fe3a1ea08cf4da67 (patch)
treed209ebda78a72160a1df973cdcc2b36b02d453f7 /src/legacy_output.c
parenta38a903debc0a50dbc73f59dc2741bbea76d2bd9 (diff)
RADEON: rework i2c handling
Split out clk, data, and lock regs and masks. some cards use different regs and masks for each. For cards with ATOMBIOS, use the i2c bios table to grab the i2c data.
Diffstat (limited to 'src/legacy_output.c')
-rw-r--r--src/legacy_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/legacy_output.c b/src/legacy_output.c
index 8ae21b94..7ade7728 100644
--- a/src/legacy_output.c
+++ b/src/legacy_output.c
@@ -284,7 +284,8 @@ RADEONRestoreDVOChip(ScrnInfoPtr pScrn, xf86OutputPtr output)
if (!radeon_output->DVOChip)
return;
- OUTREG(radeon_output->dvo_i2c_reg, INREG(radeon_output->dvo_i2c_reg) &
+ OUTREG(radeon_output->dvo_i2c.mask_clk_reg,
+ INREG(radeon_output->dvo_i2c.mask_clk_reg) &
(CARD32)~(RADEON_GPIO_A_0 | RADEON_GPIO_A_1));
if (!RADEONInitExtTMDSInfoFromBIOS(output)) {