diff options
author | Ronald Wahl <rwahl@gmx.de> | 2006-09-29 17:51:42 -0400 |
---|---|---|
committer | Adam Jackson <ajax@benzedrine.nwnk.net> | 2006-09-29 17:51:42 -0400 |
commit | f96ddd32d3a9e64dc0adec5c50386d6db5b182ee (patch) | |
tree | e07ab18d25b836cce9b7c6fbe62638be67e75ba7 /src/r128_driver.c | |
parent | f6b42149c5a3fee663575fe6bbe78b62695bdbc8 (diff) |
Hook up DFP power to DPMS events.
Diffstat (limited to 'src/r128_driver.c')
-rw-r--r-- | src/r128_driver.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c index adf6449..81c9015 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); |