Bug #14935: Fix i9xx reference clock for spread spectrum.

This commit is contained in:
Hong Liu 2008-04-11 09:54:34 +08:00 committed by Zhenyu Wang
parent 152a50703a
commit 5c9cde37e7
1 changed files with 4 additions and 2 deletions

View File

@ -1718,8 +1718,10 @@ i830_crtc_clock_get(ScrnInfoPtr pScrn, xf86CrtcPtr crtc)
return 0;
}
/* XXX: Handle the 100Mhz refclk */
i9xx_clock(96000, &clock);
if ((dpll & PLL_REF_INPUT_MASK) == PLLB_REF_INPUT_SPREADSPECTRUMIN)
i9xx_clock(100000, &clock);
else
i9xx_clock(96000, &clock);
} else {
Bool is_lvds = (pipe == 1) && (INREG(LVDS) & LVDS_PORT_EN);