summaryrefslogtreecommitdiff
path: root/src/nv_setup.c
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-04-21 22:25:47 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-04-21 22:25:47 +0000
commit8759399a3744f0eb1e0cdc83ed23aaaafb9be444 (patch)
tree8a753de3d41cc7ae24d412026bcc4d7dcb0fb26e /src/nv_setup.c
parent2db214d7cf5336fbea36d83bc9b089f70a494614 (diff)
programs/Xserver/hw/xfree86/drivers/nv/nv_setup.c //bugs.freedesktop.org/show_bug.cgi?id=3095> Patch #2501 <https://bugs.freedesktop.org/attachment.cgi?id=2501> nv DPMS panel fixes (Mark Vojkovich)
Diffstat (limited to 'src/nv_setup.c')
-rw-r--r--src/nv_setup.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nv_setup.c b/src/nv_setup.c
index 95bb42f..f377f14 100644
--- a/src/nv_setup.c
+++ b/src/nv_setup.c
@@ -37,7 +37,7 @@
|* *|
\***************************************************************************/
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_setup.c,v 1.44 2004/12/09 00:21:05 mvojkovi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_setup.c,v 1.45 2005/04/16 23:57:26 mvojkovi Exp $ */
#include "nv_include.h"
@@ -680,5 +680,14 @@ NVCommonSetup(ScrnInfoPtr pScrn)
if(!pNv->FlatPanel || (pScrn->depth != 24) || !pNv->twoHeads)
pNv->FPDither = FALSE;
+
+ pNv->LVDS = FALSE;
+ if(pNv->FlatPanel && pNv->twoHeads) {
+ pNv->PRAMDAC0[0x08B0/4] = 0x00010004;
+ if(pNv->PRAMDAC0[0x08B4/4] & 1)
+ pNv->LVDS = TRUE;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Panel is %s\n",
+ pNv->LVDS ? "LVDS" : "TMDS");
+ }
}