提交 134ffa44 编写于 作者: D Damien Lespiau 提交者: Daniel Vetter

drm/i915/skl: Use the pipe config DPLL tracking to query the link clock

Signed-off-by: NDamien Lespiau <damien.lespiau@intel.com>
Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 5416d871
......@@ -735,14 +735,10 @@ static void skl_ddi_clock_get(struct intel_encoder *encoder,
struct intel_crtc_config *pipe_config)
{
struct drm_i915_private *dev_priv = encoder->base.dev->dev_private;
enum port port = intel_ddi_get_encoder_port(encoder);
int link_clock = 0;
uint32_t dpll_ctl1, dpll;
/* FIXME: This should be tracked in the pipe config. */
dpll = I915_READ(DPLL_CTRL2);
dpll &= DPLL_CTRL2_DDI_CLK_SEL_MASK(port);
dpll >>= DPLL_CTRL2_DDI_CLK_SEL_SHIFT(port);
dpll = pipe_config->ddi_pll_sel;
dpll_ctl1 = I915_READ(DPLL_CTRL1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册