diff options
author | Shobhit Kumar <shobhit.kumar@intel.com> | 2012-06-29 15:03:35 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-07-25 12:23:45 -0400 |
commit | 54d63ca6605d5eb5d2ed52673b523f5781ead71b (patch) | |
tree | 7bd0cff2d56344611b581fe82867bbaa757924d1 /drivers/gpu/drm/i915/intel_dp.c | |
parent | e8aeaee7b012f1cdb382765d17307445385aa87c (diff) |
drm/i915: Move DP structs to shared location
Move the DP structure to shared location so that it can be used from
within the ddi module.
Changes from Paulo:
- Move less code to intel_drv.h
- Remove #include statement
- Replace a tab with a space in train_set
Signed-off-by: Shobhit Kumar <shobhit.kumar@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.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 | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 0a56b9ab0f58..9f415643c8e2 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -36,42 +36,10 @@ | |||
36 | #include "intel_drv.h" | 36 | #include "intel_drv.h" |
37 | #include "i915_drm.h" | 37 | #include "i915_drm.h" |
38 | #include "i915_drv.h" | 38 | #include "i915_drv.h" |
39 | #include "drm_dp_helper.h" | ||
40 | 39 | ||
41 | #define DP_RECEIVER_CAP_SIZE 0xf | ||
42 | #define DP_LINK_STATUS_SIZE 6 | 40 | #define DP_LINK_STATUS_SIZE 6 |
43 | #define DP_LINK_CHECK_TIMEOUT (10 * 1000) | 41 | #define DP_LINK_CHECK_TIMEOUT (10 * 1000) |
44 | 42 | ||
45 | #define DP_LINK_CONFIGURATION_SIZE 9 | ||
46 | |||
47 | struct intel_dp { | ||
48 | struct intel_encoder base; | ||
49 | uint32_t output_reg; | ||
50 | uint32_t DP; | ||
51 | uint8_t link_configuration[DP_LINK_CONFIGURATION_SIZE]; | ||
52 | bool has_audio; | ||
53 | enum hdmi_force_audio force_audio; | ||
54 | uint32_t color_range; | ||
55 | int dpms_mode; | ||
56 | uint8_t link_bw; | ||
57 | uint8_t lane_count; | ||
58 | uint8_t dpcd[DP_RECEIVER_CAP_SIZE]; | ||
59 | struct i2c_adapter adapter; | ||
60 | struct i2c_algo_dp_aux_data algo; | ||
61 | bool is_pch_edp; | ||
62 | uint8_t train_set[4]; | ||
63 | int panel_power_up_delay; | ||
64 | int panel_power_down_delay; | ||
65 | int panel_power_cycle_delay; | ||
66 | int backlight_on_delay; | ||
67 | int backlight_off_delay; | ||
68 | struct drm_display_mode *panel_fixed_mode; /* for eDP */ | ||
69 | struct delayed_work panel_vdd_work; | ||
70 | bool want_panel_vdd; | ||
71 | struct edid *edid; /* cached EDID for eDP */ | ||
72 | int edid_mode_count; | ||
73 | }; | ||
74 | |||
75 | /** | 43 | /** |
76 | * is_edp - is the given port attached to an eDP panel (either CPU or PCH) | 44 | * is_edp - is the given port attached to an eDP panel (either CPU or PCH) |
77 | * @intel_dp: DP struct | 45 | * @intel_dp: DP struct |