-/*
- * To be called after intel_ddi_pll_select(). That one selects the PLL to be
- * used, this one actually enables the PLL.
- */
-void intel_ddi_pll_enable(struct intel_crtc *crtc)
-{
- struct drm_device *dev = crtc->base.dev;
- struct drm_i915_private *dev_priv = dev->dev_private;
- struct intel_ddi_plls *plls = &dev_priv->ddi_plls;
- int refcount;
- struct intel_shared_dpll *pll = intel_crtc_to_shared_dpll(crtc);
-
- switch (crtc->config.ddi_pll_sel) {
- case PORT_CLK_SEL_WRPLL1:
- case PORT_CLK_SEL_WRPLL2:
- if (crtc->config.ddi_pll_sel == PORT_CLK_SEL_WRPLL1) {
- refcount = plls->wrpll1_refcount;
- } else {
- refcount = plls->wrpll2_refcount;
- }
- break;
- default:
- return;
- }
-
- if (refcount == 1) {
- pll->enable(dev_priv, pll);
- }
-}
-