drm/i915: s/update/compute/ for gmch dpll register functions
I was momentarily confused until I've double-checked that these functions really only compute state and don't update the hardware state. They once did that, but since Ander's rework of the dpll computation flow that's no longer the case. Rename them to avoid further confusion. Note that the ilk code already follows the compute_dpll naming scheme for computing the actual register value. DDI code goes with _calc_, but that is close enough. Cc: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
parent
9a851789e8
commit
251ac86219
1 changed files with 20 additions and 20 deletions
|
@ -7160,7 +7160,7 @@ void intel_dp_set_m_n(struct intel_crtc *crtc, enum link_m_n_set m_n)
|
|||
intel_cpu_transcoder_set_m_n(crtc, dp_m_n, dp_m2_n2);
|
||||
}
|
||||
|
||||
static void vlv_update_pll(struct intel_crtc *crtc,
|
||||
static void vlv_compute_dpll(struct intel_crtc *crtc,
|
||||
struct intel_crtc_state *pipe_config)
|
||||
{
|
||||
u32 dpll, dpll_md;
|
||||
|
@ -7274,7 +7274,7 @@ static void vlv_prepare_pll(struct intel_crtc *crtc,
|
|||
mutex_unlock(&dev_priv->sb_lock);
|
||||
}
|
||||
|
||||
static void chv_update_pll(struct intel_crtc *crtc,
|
||||
static void chv_compute_dpll(struct intel_crtc *crtc,
|
||||
struct intel_crtc_state *pipe_config)
|
||||
{
|
||||
pipe_config->dpll_hw_state.dpll = DPLL_SSC_REF_CLOCK_CHV |
|
||||
|
@ -7414,11 +7414,11 @@ void vlv_force_pll_on(struct drm_device *dev, enum pipe pipe,
|
|||
};
|
||||
|
||||
if (IS_CHERRYVIEW(dev)) {
|
||||
chv_update_pll(crtc, &pipe_config);
|
||||
chv_compute_dpll(crtc, &pipe_config);
|
||||
chv_prepare_pll(crtc, &pipe_config);
|
||||
chv_enable_pll(crtc, &pipe_config);
|
||||
} else {
|
||||
vlv_update_pll(crtc, &pipe_config);
|
||||
vlv_compute_dpll(crtc, &pipe_config);
|
||||
vlv_prepare_pll(crtc, &pipe_config);
|
||||
vlv_enable_pll(crtc, &pipe_config);
|
||||
}
|
||||
|
@ -7440,7 +7440,7 @@ void vlv_force_pll_off(struct drm_device *dev, enum pipe pipe)
|
|||
vlv_disable_pll(to_i915(dev), pipe);
|
||||
}
|
||||
|
||||
static void i9xx_update_pll(struct intel_crtc *crtc,
|
||||
static void i9xx_compute_dpll(struct intel_crtc *crtc,
|
||||
struct intel_crtc_state *crtc_state,
|
||||
intel_clock_t *reduced_clock,
|
||||
int num_connectors)
|
||||
|
@ -7517,7 +7517,7 @@ static void i9xx_update_pll(struct intel_crtc *crtc,
|
|||
}
|
||||
}
|
||||
|
||||
static void i8xx_update_pll(struct intel_crtc *crtc,
|
||||
static void i8xx_compute_dpll(struct intel_crtc *crtc,
|
||||
struct intel_crtc_state *crtc_state,
|
||||
intel_clock_t *reduced_clock,
|
||||
int num_connectors)
|
||||
|
@ -7830,15 +7830,15 @@ static int i9xx_crtc_compute_clock(struct intel_crtc *crtc,
|
|||
}
|
||||
|
||||
if (IS_GEN2(dev)) {
|
||||
i8xx_update_pll(crtc, crtc_state,
|
||||
i8xx_compute_dpll(crtc, crtc_state,
|
||||
has_reduced_clock ? &reduced_clock : NULL,
|
||||
num_connectors);
|
||||
} else if (IS_CHERRYVIEW(dev)) {
|
||||
chv_update_pll(crtc, crtc_state);
|
||||
chv_compute_dpll(crtc, crtc_state);
|
||||
} else if (IS_VALLEYVIEW(dev)) {
|
||||
vlv_update_pll(crtc, crtc_state);
|
||||
vlv_compute_dpll(crtc, crtc_state);
|
||||
} else {
|
||||
i9xx_update_pll(crtc, crtc_state,
|
||||
i9xx_compute_dpll(crtc, crtc_state,
|
||||
has_reduced_clock ? &reduced_clock : NULL,
|
||||
num_connectors);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue