diff options
author | Chon Ming Lee <chon.ming.lee@intel.com> | 2013-11-06 01:36:35 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-11-11 04:57:45 -0500 |
commit | e4607fcfb1cd5d869425e190a85f841fc910c4ca (patch) | |
tree | 6b7b542956709d4d656e8ed435fec3e0007c8cdf /drivers/gpu/drm/i915/intel_dp.c | |
parent | 00fe639a56b40930bf27eabeef9a826344d8f4c4 (diff) |
drm/i915/vlv: Make the vlv_dpio_read/vlv_dpio_write more PHY centric
vlv_dpio_read/write should be describe more in PHY centric instead of
display controller centric.
Create a enum dpio_channel for channel index and enum dpio_phy for PHY
index. This should better to gather for upcoming platform.
v2: Rebase the code based on
drm/i915/vlv: Fix typo in the DPIO register define.
v3: Rename vlv_phy to dpio_phy_iosf_port and define additional macro
DPIO_PHY, and remove unrelated change. (Ville)
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 2584eb4bbf0b..34d605762a60 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -1839,7 +1839,7 @@ static void vlv_pre_enable_dp(struct intel_encoder *encoder) | |||
1839 | struct drm_device *dev = encoder->base.dev; | 1839 | struct drm_device *dev = encoder->base.dev; |
1840 | struct drm_i915_private *dev_priv = dev->dev_private; | 1840 | struct drm_i915_private *dev_priv = dev->dev_private; |
1841 | struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc); | 1841 | struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc); |
1842 | int port = vlv_dport_to_channel(dport); | 1842 | enum dpio_channel port = vlv_dport_to_channel(dport); |
1843 | int pipe = intel_crtc->pipe; | 1843 | int pipe = intel_crtc->pipe; |
1844 | struct edp_power_seq power_seq; | 1844 | struct edp_power_seq power_seq; |
1845 | u32 val; | 1845 | u32 val; |
@@ -1866,7 +1866,7 @@ static void vlv_pre_enable_dp(struct intel_encoder *encoder) | |||
1866 | 1866 | ||
1867 | intel_enable_dp(encoder); | 1867 | intel_enable_dp(encoder); |
1868 | 1868 | ||
1869 | vlv_wait_port_ready(dev_priv, port); | 1869 | vlv_wait_port_ready(dev_priv, dport); |
1870 | } | 1870 | } |
1871 | 1871 | ||
1872 | static void vlv_dp_pre_pll_enable(struct intel_encoder *encoder) | 1872 | static void vlv_dp_pre_pll_enable(struct intel_encoder *encoder) |
@@ -1876,7 +1876,7 @@ static void vlv_dp_pre_pll_enable(struct intel_encoder *encoder) | |||
1876 | struct drm_i915_private *dev_priv = dev->dev_private; | 1876 | struct drm_i915_private *dev_priv = dev->dev_private; |
1877 | struct intel_crtc *intel_crtc = | 1877 | struct intel_crtc *intel_crtc = |
1878 | to_intel_crtc(encoder->base.crtc); | 1878 | to_intel_crtc(encoder->base.crtc); |
1879 | int port = vlv_dport_to_channel(dport); | 1879 | enum dpio_channel port = vlv_dport_to_channel(dport); |
1880 | int pipe = intel_crtc->pipe; | 1880 | int pipe = intel_crtc->pipe; |
1881 | 1881 | ||
1882 | /* Program Tx lane resets to default */ | 1882 | /* Program Tx lane resets to default */ |
@@ -2033,7 +2033,7 @@ static uint32_t intel_vlv_signal_levels(struct intel_dp *intel_dp) | |||
2033 | unsigned long demph_reg_value, preemph_reg_value, | 2033 | unsigned long demph_reg_value, preemph_reg_value, |
2034 | uniqtranscale_reg_value; | 2034 | uniqtranscale_reg_value; |
2035 | uint8_t train_set = intel_dp->train_set[0]; | 2035 | uint8_t train_set = intel_dp->train_set[0]; |
2036 | int port = vlv_dport_to_channel(dport); | 2036 | enum dpio_channel port = vlv_dport_to_channel(dport); |
2037 | int pipe = intel_crtc->pipe; | 2037 | int pipe = intel_crtc->pipe; |
2038 | 2038 | ||
2039 | switch (train_set & DP_TRAIN_PRE_EMPHASIS_MASK) { | 2039 | switch (train_set & DP_TRAIN_PRE_EMPHASIS_MASK) { |