diff options
author | Hong Liu <hong.liu@intel.com> | 2008-02-05 09:10:48 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-02-05 09:10:48 +0800 |
commit | 2d18a299cf39f2ecf9bd3ba8407f892566b2edcc (patch) | |
tree | 22fa43f59d286b098594bffe4a6d87f6c273b445 /src/i830_debug.c | |
parent | 9536515d7717969795edc1b80d6e6a36820dd575 (diff) |
Fix PLL reference clk debug dump
Diffstat (limited to 'src/i830_debug.c')
-rw-r--r-- | src/i830_debug.c | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/src/i830_debug.c b/src/i830_debug.c index 5b70cd9c..7fc07261 100644 --- a/src/i830_debug.c +++ b/src/i830_debug.c @@ -693,6 +693,19 @@ void i830DumpRegs (ScrnInfoPtr pScrn) xf86DrvMsg (pScrn->scrnIndex, X_WARNING, "p1 out of range\n"); break; } + + switch ((dpll >> 13) & 0x3) { + case 0: + ref = 96000; + break; + case 3: + ref = 100000; + break; + default: + ref = 0; + xf86DrvMsg (pScrn->scrnIndex, X_WARNING, "ref out of range\n"); + break; + } } else { @@ -730,18 +743,19 @@ void i830DumpRegs (ScrnInfoPtr pScrn) else p1 = ((dpll >> 16) & 0x3f) + 2; } - } - switch ((dpll >> 13) & 0x3) { - case 0: - ref = 96000; - break; - case 3: - ref = 100000; - break; - default: - ref = 0; - xf86DrvMsg (pScrn->scrnIndex, X_WARNING, "ref out of range\n"); - break; + + switch ((dpll >> 13) & 0x3) { + case 0: + ref = 48000; + break; + case 3: + ref = 66000; + break; + default: + ref = 0; + xf86DrvMsg (pScrn->scrnIndex, X_WARNING, "ref out of range\n"); + break; + } } if (IS_I965G(pI830)) { phase = (dpll >> 9) & 0xf; |