diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-10-07 19:01:09 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-08 04:21:50 -0400 |
commit | 814948adec172dbc41252b1815e4e83aedfe91b9 (patch) | |
tree | 295e5ea7bb3f7878925febee6fd5fece9e92eebb /drivers/gpu/drm/i915/intel_dp.c | |
parent | 51190667b3c6927356e594cdf6955980ff47bb16 (diff) |
drm/i915: add eDP checking functions for the display code
The display code needs to distinguish between CPU and PCH attached eDP
panels, so add some helpers to handle that.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 714e553960fd..da71263f6fab 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -95,6 +95,25 @@ static struct intel_dp *intel_attached_dp(struct drm_connector *connector) | |||
95 | struct intel_dp, base); | 95 | struct intel_dp, base); |
96 | } | 96 | } |
97 | 97 | ||
98 | /** | ||
99 | * intel_encoder_is_pch_edp - is the given encoder a PCH attached eDP? | ||
100 | * @encoder: DRM encoder | ||
101 | * | ||
102 | * Return true if @encoder corresponds to a PCH attached eDP panel. Needed | ||
103 | * by intel_display.c. | ||
104 | */ | ||
105 | bool intel_encoder_is_pch_edp(struct drm_encoder *encoder) | ||
106 | { | ||
107 | struct intel_dp *intel_dp; | ||
108 | |||
109 | if (!encoder) | ||
110 | return false; | ||
111 | |||
112 | intel_dp = enc_to_intel_dp(encoder); | ||
113 | |||
114 | return is_pch_edp(intel_dp); | ||
115 | } | ||
116 | |||
98 | static void intel_dp_start_link_train(struct intel_dp *intel_dp); | 117 | static void intel_dp_start_link_train(struct intel_dp *intel_dp); |
99 | static void intel_dp_complete_link_train(struct intel_dp *intel_dp); | 118 | static void intel_dp_complete_link_train(struct intel_dp *intel_dp); |
100 | static void intel_dp_link_down(struct intel_dp *intel_dp); | 119 | static void intel_dp_link_down(struct intel_dp *intel_dp); |