diff options
author | Mathias Fröhlich <Mathias.Froehlich@web.de> | 2009-10-19 17:49:49 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-25 23:28:20 -0400 |
commit | bc293e58cb4095f2ad43fe672ae269e31d1a18e2 (patch) | |
tree | 910e8cfc41ce81f11113bf8e86b79611201babf2 /drivers/gpu | |
parent | 790cfb34ad645be3bf69265cb05d824aeabcfa11 (diff) |
drm/radeon/kms/atom: get better min pixel clock info
Where supported use ulMinPixelClockPLL_Output rather than
usMinPixelClockPLL_Output for pll_out_min. This seems to
improve pll selection on some boards.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_atombios.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index 79d4b771c770..cec67917179f 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c | |||
@@ -641,8 +641,12 @@ bool radeon_atom_get_clock_info(struct drm_device *dev) | |||
641 | le16_to_cpu(firmware_info->info.usReferenceClock); | 641 | le16_to_cpu(firmware_info->info.usReferenceClock); |
642 | p1pll->reference_div = 0; | 642 | p1pll->reference_div = 0; |
643 | 643 | ||
644 | p1pll->pll_out_min = | 644 | if (crev < 2) |
645 | le16_to_cpu(firmware_info->info.usMinPixelClockPLL_Output); | 645 | p1pll->pll_out_min = |
646 | le16_to_cpu(firmware_info->info.usMinPixelClockPLL_Output); | ||
647 | else | ||
648 | p1pll->pll_out_min = | ||
649 | le32_to_cpu(firmware_info->info_12.ulMinPixelClockPLL_Output); | ||
646 | p1pll->pll_out_max = | 650 | p1pll->pll_out_max = |
647 | le32_to_cpu(firmware_info->info.ulMaxPixelClockPLL_Output); | 651 | le32_to_cpu(firmware_info->info.ulMaxPixelClockPLL_Output); |
648 | 652 | ||