diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-18 04:15:31 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-22 16:34:47 -0400 |
commit | 3b5c662e8f536ca47396116de82f08d771727076 (patch) | |
tree | 18c5696ab98584d7331dadd9cb054b21f8e13d2a /drivers/gpu/drm/i915/intel_dp.c | |
parent | a7c9655fdd89fae1749c2e5beadae8b7d32093af (diff) |
drm: extract dp link bw helpers
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 3cb180e38ca1..f7b7bfc455e2 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -108,10 +108,7 @@ intel_edp_link_config(struct intel_encoder *intel_encoder, | |||
108 | struct intel_dp *intel_dp = container_of(intel_encoder, struct intel_dp, base); | 108 | struct intel_dp *intel_dp = container_of(intel_encoder, struct intel_dp, base); |
109 | 109 | ||
110 | *lane_num = intel_dp->lane_count; | 110 | *lane_num = intel_dp->lane_count; |
111 | if (intel_dp->link_bw == DP_LINK_BW_1_62) | 111 | *link_bw = drm_dp_bw_code_to_link_rate(intel_dp->link_bw); |
112 | *link_bw = 162000; | ||
113 | else if (intel_dp->link_bw == DP_LINK_BW_2_7) | ||
114 | *link_bw = 270000; | ||
115 | } | 112 | } |
116 | 113 | ||
117 | int | 114 | int |