diff options
author | Clint Taylor <clinton.a.taylor@intel.com> | 2014-09-02 20:03:36 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-15 02:56:30 -0400 |
commit | 697c4078c765c02b9c4ca2d828ae4d7af62453a6 (patch) | |
tree | daa38dc51fbf4a7c9cc7a045f12c7c2c017d864f | |
parent | fb01d28070b711b164d84ff80a28dcc7cca506e7 (diff) |
drm/i915/hdmi: Enable pipe pixel replication for SD interlaced modes
Enable 2x pixel replication for modes the mode flag DBLCLK to double
horizontal timings and pixel clock across TMDS.
Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/intel_hdmi.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 9169786dbbc3..96957683032e 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c | |||
@@ -864,10 +864,15 @@ static enum drm_mode_status | |||
864 | intel_hdmi_mode_valid(struct drm_connector *connector, | 864 | intel_hdmi_mode_valid(struct drm_connector *connector, |
865 | struct drm_display_mode *mode) | 865 | struct drm_display_mode *mode) |
866 | { | 866 | { |
867 | if (mode->clock > hdmi_portclock_limit(intel_attached_hdmi(connector), | 867 | int clock = mode->clock; |
868 | true)) | 868 | |
869 | if (mode->flags & DRM_MODE_FLAG_DBLCLK) | ||
870 | clock *= 2; | ||
871 | |||
872 | if (clock > hdmi_portclock_limit(intel_attached_hdmi(connector), | ||
873 | true)) | ||
869 | return MODE_CLOCK_HIGH; | 874 | return MODE_CLOCK_HIGH; |
870 | if (mode->clock < 20000) | 875 | if (clock < 20000) |
871 | return MODE_CLOCK_LOW; | 876 | return MODE_CLOCK_LOW; |
872 | 877 | ||
873 | if (mode->flags & DRM_MODE_FLAG_DBLSCAN) | 878 | if (mode->flags & DRM_MODE_FLAG_DBLSCAN) |
@@ -921,6 +926,10 @@ bool intel_hdmi_compute_config(struct intel_encoder *encoder, | |||
921 | intel_hdmi->color_range = 0; | 926 | intel_hdmi->color_range = 0; |
922 | } | 927 | } |
923 | 928 | ||
929 | if (adjusted_mode->flags & DRM_MODE_FLAG_DBLCLK) { | ||
930 | pipe_config->pixel_multiplier = 2; | ||
931 | } | ||
932 | |||
924 | if (intel_hdmi->color_range) | 933 | if (intel_hdmi->color_range) |
925 | pipe_config->limited_color_range = true; | 934 | pipe_config->limited_color_range = true; |
926 | 935 | ||