From f96ddd32d3a9e64dc0adec5c50386d6db5b182ee Mon Sep 17 00:00:00 2001 From: Ronald Wahl Date: Fri, 29 Sep 2006 17:51:42 -0400 Subject: Hook up DFP power to DPMS events. --- src/r128_driver.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/r128_driver.c b/src/r128_driver.c index adf6449e..81c9015c 100644 --- a/src/r128_driver.c +++ b/src/r128_driver.c @@ -4522,6 +4522,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