summaryrefslogtreecommitdiff
path: root/src/atombios_crtc.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-03-04 10:53:20 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-03-04 11:04:34 -0500
commit592bcac52f113a95923a8f1cb8427e7552d5670b (patch)
tree8e254abbbde8c6c1b19f852238647b4e716c8c72 /src/atombios_crtc.c
parente88b0eac8cab8b54b769fd7b4ad3b3b65a90de09 (diff)
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
Diffstat (limited to 'src/atombios_crtc.c')
-rw-r--r--src/atombios_crtc.c9
1 files changed, 3 insertions, 6 deletions
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);