summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_ddi.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2012-11-20 13:27:43 -0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-11-21 17:47:11 +0100
commitd567b07fce8f55f82e2cfe040cd74f7b4997ff38 (patch)
tree7f25f959da356ad1fba176f522f87b45f5034d4b /drivers/gpu/drm/i915/intel_ddi.c
parent54075a7d75732147c32f7a99af5218f7d0f62596 (diff)
downloadlwn-d567b07fce8f55f82e2cfe040cd74f7b4997ff38.tar.gz
lwn-d567b07fce8f55f82e2cfe040cd74f7b4997ff38.zip
drm/i915: fix intel_ddi_get_cdclk_freq for ULT machines
For now, this code is just used by the eDP AUX channel frequency. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ddi.c')
-rw-r--r--drivers/gpu/drm/i915/intel_ddi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index d706d538e8b7..852012b6fc5b 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1309,6 +1309,8 @@ int intel_ddi_get_cdclk_freq(struct drm_i915_private *dev_priv)
else if ((I915_READ(LCPLL_CTL) & LCPLL_CLK_FREQ_MASK) ==
LCPLL_CLK_FREQ_450)
return 450;
+ else if (IS_ULT(dev_priv->dev))
+ return 338;
else
return 540;
}