summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-07-05 16:23:12 +1000
committerDave Airlie <airlied@linux.ie>2006-07-05 16:30:10 +1000
commit29612720709bef2f416b417b227afdab8c686563 (patch)
tree374373484bc6252032335cebe93e0938dedb4656
parent29329dd5cfd26caa1982e2ab3c2c3a2e4c8c95a8 (diff)
Add support for dumping i2c registers
-rw-r--r--src/i830_driver.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 75e5b65f..1583d399 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -320,6 +320,8 @@ I830DumpModeDebugInfo(ScrnInfoPtr pScrn)
CARD32 temp, planeA, planeB;
planeA = INREG(DSPACNTR);
planeB = INREG(DSPBCNTR);
+ int i;
+
#if 1
DR(ADPA);
@@ -467,16 +469,14 @@ I830DumpModeDebugInfo(ScrnInfoPtr pScrn)
DR(0x240c);
-#if 0
- if (pI830->sdvo && pI830->sdvo->found) {
- I830SDVOWriteCommand10(pI830->sdvo);
- I830SDVOWriteCommand18(pI830->sdvo);
- I830SDVOWriteCommand10(pI830->sdvo);
- I830SDVOWriteCommand19(pI830->sdvo);
- I830SDVOWriteCommand10(pI830->sdvo);
+ for (i=0; i<pI830->num_outputs; i++) {
+ if (pI830->output[i].type == I830_OUTPUT_DVO &&
+ pI830->output[i].i2c_drv != NULL)
+ {
+ pI830->output[i].i2c_drv->vid_rec->PrintRegs(pI830->output[i].i2c_drv->devpriv);
+ }
}
#endif
-#endif
}
/* XXX Check if this is still needed. */