]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Limit CHV max cdclk
authorMika Kahola <mika.kahola@intel.com>
Fri, 12 Jun 2015 07:11:32 +0000 (10:11 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 15 Jun 2015 16:38:02 +0000 (18:38 +0200)
Limit CHV maximum cdclk to 320MHz.

v2: Rebase to the latest
v3: Clean up of if-else tree

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index a806f1598a4632229a32fb103457d8176f875c09..3f4891782cf6860b07efde7a0fcc680955f2d3a1 100644 (file)
@@ -5271,6 +5271,8 @@ static void intel_update_max_cdclk(struct drm_device *dev)
                        dev_priv->max_cdclk_freq = 540000;
                else
                        dev_priv->max_cdclk_freq = 675000;
+       } else if (IS_CHERRYVIEW(dev)) {
+               dev_priv->max_cdclk_freq = 320000;
        } else if (IS_VALLEYVIEW(dev)) {
                dev_priv->max_cdclk_freq = 400000;
        } else {