From 8ae69c496eba701e744cca0605f73242673f7b3f Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 18 Sep 2007 20:12:21 -0400 Subject: RADEON: adjust pll restore some chips seem to be pickier than others. fixes bug 12467 --- src/radeon_crtc.c | 1 + src/radeon_driver.c | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 47e46f38..042d14bf 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -862,6 +862,7 @@ radeon_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode, case 1: RADEONAdjustCrtc2RegistersForTV(pScrn, &info->ModeReg, adjusted_mode, output); RADEONAdjustPLL2RegistersForTV(pScrn, &info->ModeReg, adjusted_mode, output); + update_tv_routing = TRUE; break; } } diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 4c3a6918..8a113fdd 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -4679,10 +4679,10 @@ void RADEONRestorePLLRegisters(ScrnInfoPtr pScrn, usleep(50000); /* Let the clock to lock */ - /* OUTPLLP(pScrn, RADEON_VCLK_ECP_CNTL, + OUTPLLP(pScrn, RADEON_VCLK_ECP_CNTL, RADEON_VCLK_SRC_SEL_PPLLCLK, - ~(RADEON_VCLK_SRC_SEL_MASK));*/ - OUTPLL(pScrn, RADEON_VCLK_ECP_CNTL, restore->vclk_ecp_cntl); + ~(RADEON_VCLK_SRC_SEL_MASK)); + /*OUTPLL(pScrn, RADEON_VCLK_ECP_CNTL, restore->vclk_ecp_cntl);*/ ErrorF("finished PLL1\n"); @@ -4753,10 +4753,10 @@ void RADEONRestorePLL2Registers(ScrnInfoPtr pScrn, usleep(5000); /* Let the clock to lock */ - /*OUTPLLP(pScrn, RADEON_PIXCLKS_CNTL, + OUTPLLP(pScrn, RADEON_PIXCLKS_CNTL, RADEON_PIX2CLK_SRC_SEL_P2PLLCLK, - ~(RADEON_PIX2CLK_SRC_SEL_MASK));*/ - OUTPLL(pScrn, RADEON_PIXCLKS_CNTL, restore->pixclks_cntl); + ~(RADEON_PIX2CLK_SRC_SEL_MASK)); + /*OUTPLL(pScrn, RADEON_PIXCLKS_CNTL, restore->pixclks_cntl);*/ ErrorF("finished PLL2\n"); -- cgit v1.2.3