summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald Wahl <rwahl@gmx.de>2006-10-04 00:55:43 +1000
committerDave Airlie <airlied@linux.ie>2006-10-04 00:55:43 +1000
commitddaacf78455290ffc31b41cd809b03ffbeadd69b (patch)
tree2b40d57a3cc4b8f80029148a6754f89e9a9dceb5
parent14f6d58d4b5a277a68d9d8ddee7f79be2179f34f (diff)
Hook up DFP power to DPMS events.
(cherry picked from f96ddd32d3a9e64dc0adec5c50386d6db5b182ee commit)
-rw-r--r--src/r128_driver.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c
index 49c0d863..88749616 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -4523,6 +4523,18 @@ static void R128DisplayPowerManagementSet(ScrnInfoPtr pScrn,
OUTREGP(R128_CRTC_EXT_CNTL, mask, ~mask);
break;
}
+ if(info->isDFP) {
+ switch (PowerManagementMode) {
+ case DPMSModeOn:
+ OUTREG(R128_FP_GEN_CNTL, INREG(R128_FP_GEN_CNTL) | (R128_FP_FPON | R128_FP_TDMS_EN));
+ break;
+ case DPMSModeStandby:
+ case DPMSModeSuspend:
+ case DPMSModeOff:
+ OUTREG(R128_FP_GEN_CNTL, INREG(R128_FP_GEN_CNTL) & ~(R128_FP_FPON | R128_FP_TDMS_EN));
+ break;
+ }
+ }
}
static int r128_set_backlight_enable(ScrnInfoPtr pScrn, int on);