summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_display.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-04-19 18:57:14 +0200
committerChristian König <christian.koenig@amd.com>2014-04-19 18:57:14 +0200
commit24315814239a3fdb306244c99bd076bc79db4ade (patch)
treede70b306aad48d7439321bd8b4a234bc3bb65fe2 /drivers/gpu/drm/radeon/radeon_display.c
parent76e6dcece841faebbee78895780e8209ff40d922 (diff)
downloadlinux-24315814239a3fdb306244c99bd076bc79db4ade.tar.gz
linux-24315814239a3fdb306244c99bd076bc79db4ade.tar.bz2
linux-24315814239a3fdb306244c99bd076bc79db4ade.zip
drm/radeon: use fixed PPL ref divider if needed
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_display.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 2f7cbb901fb1..e6c3c5488259 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -880,7 +880,12 @@ void radeon_compute_pll_avivo(struct radeon_pll *pll,
ref_div_min = pll->reference_div;
else
ref_div_min = pll->min_ref_div;
- ref_div_max = pll->max_ref_div;
+
+ if (pll->flags & RADEON_PLL_USE_FRAC_FB_DIV &&
+ pll->flags & RADEON_PLL_USE_REF_DIV)
+ ref_div_max = pll->reference_div;
+ else
+ ref_div_max = pll->max_ref_div;
/* determine allowed post divider range */
if (pll->flags & RADEON_PLL_USE_POST_DIV) {