From ed391aba662c303759cd8782b3976c206956c5bf Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Tue, 27 Apr 2004 19:52:06 +0000 Subject: [PATCH] panel DPMS update: now works on NV28 and NV34, still not ready yet though. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7333 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_crtc.c | 6 ++++-- src/add-ons/accelerants/nvidia/engine/nv_crtc2.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_crtc.c b/src/add-ons/accelerants/nvidia/engine/nv_crtc.c index a582c268f9..45405b8144 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_crtc.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_crtc.c @@ -449,7 +449,8 @@ status_t nv_crtc_dpms(bool display, bool h, bool v) * internal transmitters... */ DACW(FP_DEBUG0, (DACR(FP_DEBUG0) & 0xcfffffff)); /* ... and powerup external TMDS transmitter if it exists */ - CRTCW(LCD, (CRTCR(LCD) | 0x10)); + /* (confirmed OK on NV28 and NV34) */ + CRTCW(0x59, (CRTCR(0x59) | 0x01)); } LOG(4,("display on, ")); @@ -464,7 +465,8 @@ status_t nv_crtc_dpms(bool display, bool h, bool v) * internal transmitters... */ DACW(FP_DEBUG0, (DACR(FP_DEBUG0) | 0x30000000)); /* ... and powerdown external TMDS transmitter if it exists */ - CRTCW(LCD, (CRTCR(LCD) & 0xef)); + /* (confirmed OK on NV28 and NV34) */ + CRTCW(0x59, (CRTCR(0x59) & 0xfe)); } LOG(4,("display off, ")); diff --git a/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c b/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c index b39912ac91..b9c31cd526 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c @@ -432,7 +432,8 @@ status_t nv_crtc2_dpms(bool display, bool h, bool v) * internal transmitters... */ DAC2W(FP_DEBUG0, (DAC2R(FP_DEBUG0) & 0xcfffffff)); /* ... and powerup external TMDS transmitter if it exists */ - CRTC2W(LCD, (CRTC2R(LCD) | 0x10)); + /* (confirmed OK on NV28 and NV34) */ + CRTC2W(0x59, (CRTC2R(0x59) | 0x01)); } LOG(4,("display on, ")); @@ -447,7 +448,8 @@ status_t nv_crtc2_dpms(bool display, bool h, bool v) * internal transmitters... */ DAC2W(FP_DEBUG0, (DAC2R(FP_DEBUG0) | 0x30000000)); /* ... and powerdown external TMDS transmitter if it exists */ - CRTC2W(LCD, (CRTC2R(LCD) & 0xef)); + /* (confirmed OK on NV28 and NV34) */ + CRTC2W(0x59, (CRTC2R(0x59) & 0xfe)); } LOG(4,("display off, "));