aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-05-16 07:40:35 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-05-31 14:54:00 -0400
commita62d0834dee83994e41fcd0e5b7f10aad3d80de0 (patch)
tree3bd1930537c7d8afb5335f4fab878403c738e3bc /drivers/gpu/drm
parent982a38667dd9f175f8dd8a78651426ae6baac463 (diff)
drm/i915: merge VLV eDP and DP AUX clock divider calculation
On ValleyView for both eDP and DP the AUX input clock is 200MHz, so we can calculate for both the clock divider for the 2MHz target rate at the same place. Afterwards we can also replace the is_cpu_edp() check with a check for port A. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index ee157091f92e..320bd61ea2f2 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -317,12 +317,12 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,
317 * Note that PCH attached eDP panels should use a 125MHz input 317 * Note that PCH attached eDP panels should use a 125MHz input
318 * clock divider. 318 * clock divider.
319 */ 319 */
320 if (is_cpu_edp(intel_dp)) { 320 if (IS_VALLEYVIEW(dev)) {
321 aux_clock_divider = 100;
322 } else if (intel_dig_port->port == PORT_A) {
321 if (HAS_DDI(dev)) 323 if (HAS_DDI(dev))
322 aux_clock_divider = DIV_ROUND_CLOSEST( 324 aux_clock_divider = DIV_ROUND_CLOSEST(
323 intel_ddi_get_cdclk_freq(dev_priv), 2000); 325 intel_ddi_get_cdclk_freq(dev_priv), 2000);
324 else if (IS_VALLEYVIEW(dev))
325 aux_clock_divider = 100;
326 else if (IS_GEN6(dev) || IS_GEN7(dev)) 326 else if (IS_GEN6(dev) || IS_GEN7(dev))
327 aux_clock_divider = 200; /* SNB & IVB eDP input clock at 400Mhz */ 327 aux_clock_divider = 200; /* SNB & IVB eDP input clock at 400Mhz */
328 else 328 else