From 592bcac52f113a95923a8f1cb8427e7552d5670b Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 4 Mar 2009 10:53:20 -0500 Subject: ATOM: don't use fixed ref div for LVDS The bios doesn't provide one. If there are problems with certain panels, we may need to adjust the PLL flags in certain cases. Should fix bug 20458 --- src/atombios_crtc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/atombios_crtc.c') diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c index af791458..bf207bf6 100644 --- a/src/atombios_crtc.c +++ b/src/atombios_crtc.c @@ -203,7 +203,7 @@ atombios_set_crtc_timing(atomBiosHandlePtr atomBIOS, SET_CRTC_TIMING_PARAMETERS_ } void -atombios_crtc_set_pll(xf86CrtcPtr crtc, DisplayModePtr mode, int pll_flags) +atombios_crtc_set_pll(xf86CrtcPtr crtc, DisplayModePtr mode) { RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private; RADEONInfoPtr info = RADEONPTR(crtc->scrn); @@ -219,6 +219,7 @@ atombios_crtc_set_pll(xf86CrtcPtr crtc, DisplayModePtr mode, int pll_flags) xf86OutputPtr output; RADEONOutputPrivatePtr radeon_output = NULL; radeon_encoder_ptr radeon_encoder = NULL; + int pll_flags = 0; void *ptr; AtomBiosArgRec data; @@ -350,7 +351,6 @@ atombios_crtc_mode_set(xf86CrtcPtr crtc, int i, ret; SET_CRTC_TIMING_PARAMETERS_PS_ALLOCATION crtc_timing; Bool tilingChanged = FALSE; - int pll_flags = 0; memset(&crtc_timing, 0, sizeof(crtc_timing)); if (info->allowColorTiling) { @@ -373,9 +373,6 @@ atombios_crtc_mode_set(xf86CrtcPtr crtc, need_tv_timings = 2; } - - if (radeon_output->MonType == MT_LCD) - pll_flags |= RADEON_PLL_USE_REF_DIV; } } @@ -484,7 +481,7 @@ atombios_crtc_mode_set(xf86CrtcPtr crtc, 0); } - atombios_crtc_set_pll(crtc, adjusted_mode, pll_flags); + atombios_crtc_set_pll(crtc, adjusted_mode); atombios_set_crtc_timing(info->atomBIOS, &crtc_timing); -- cgit v1.2.3