Skip to content

Commit

Permalink
drm/radeon: use fixed PPL ref divider if needed
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <christian.koenig@amd.com>
  • Loading branch information
Christian König committed Apr 19, 2014
1 parent 76e6dce commit 2431581
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpu/drm/radeon/radeon_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2431581

Please sign in to comment.