mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 23:53:55 +08:00
drm/radeon: use fixed PPL ref divider if needed
Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
76e6dcece8
commit
2431581423
@ -880,7 +880,12 @@ void radeon_compute_pll_avivo(struct radeon_pll *pll,
|
|||||||
ref_div_min = pll->reference_div;
|
ref_div_min = pll->reference_div;
|
||||||
else
|
else
|
||||||
ref_div_min = pll->min_ref_div;
|
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 */
|
/* determine allowed post divider range */
|
||||||
if (pll->flags & RADEON_PLL_USE_POST_DIV) {
|
if (pll->flags & RADEON_PLL_USE_POST_DIV) {
|
||||||
|
Loading…
Reference in New Issue
Block a user