Commit 4d19505e authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Allow ICL+ DSI on any pipe

There are no longer any pipe<->DSI port limitations on icl+.
Populate the pipe_mask accordingly.

Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191002162505.30716-4-ville.syrjala@linux.intel.comReviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent 981329ce
...@@ -1552,6 +1552,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv) ...@@ -1552,6 +1552,7 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)
struct drm_connector *connector; struct drm_connector *connector;
struct drm_display_mode *fixed_mode; struct drm_display_mode *fixed_mode;
enum port port; enum port port;
enum pipe pipe;
if (!intel_bios_is_dsi_present(dev_priv, &port)) if (!intel_bios_is_dsi_present(dev_priv, &port))
return; return;
...@@ -1584,7 +1585,8 @@ void icl_dsi_init(struct drm_i915_private *dev_priv) ...@@ -1584,7 +1585,8 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)
encoder->get_hw_state = gen11_dsi_get_hw_state; encoder->get_hw_state = gen11_dsi_get_hw_state;
encoder->type = INTEL_OUTPUT_DSI; encoder->type = INTEL_OUTPUT_DSI;
encoder->cloneable = 0; encoder->cloneable = 0;
encoder->pipe_mask = BIT(PIPE_A) | BIT(PIPE_B) | BIT(PIPE_C); for_each_pipe(dev_priv, pipe)
encoder->pipe_mask |= BIT(pipe);
encoder->power_domain = POWER_DOMAIN_PORT_DSI; encoder->power_domain = POWER_DOMAIN_PORT_DSI;
encoder->get_power_domains = gen11_dsi_get_power_domains; encoder->get_power_domains = gen11_dsi_get_power_domains;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment