From: Jesse Barnes Date: Thu, 7 Oct 2010 23:01:17 +0000 (-0700) Subject: drm/i915: use 120MHz refclk in PCH eDP case too X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cb1b75e5e0120cc35c4a9420ce366b84e0cf951;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git drm/i915: use 120MHz refclk in PCH eDP case too CPU eDP needs a different reference clock than PCH eDP, which uses the standard PCH refclk of 120MHz. Signed-off-by: Jesse Barnes Signed-off-by: Chris Wilson --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index d7d59006a846..5f00632d6fcc 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -3625,7 +3625,8 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, refclk / 1000); } else if (!IS_GEN2(dev)) { refclk = 96000; - if (HAS_PCH_SPLIT(dev)) + if (HAS_PCH_SPLIT(dev) && + (!has_edp_encoder || intel_encoder_is_pch_edp(&has_edp_encoder->base))) refclk = 120000; /* 120Mhz refclk */ } else { refclk = 48000;