From ddaacf78455290ffc31b41cd809b03ffbeadd69b Mon Sep 17 00:00:00 2001 From: Ronald Wahl Date: Wed, 4 Oct 2006 00:55:43 +1000 Subject: Hook up DFP power to DPMS events. (cherry picked from f96ddd32d3a9e64dc0adec5c50386d6db5b182ee commit) --- src/r128_driver.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- cgit v1.2.3