diff options
author | Madhav Chauhan <madhav.chauhan@intel.com> | 2018-11-29 15:12:21 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2018-12-03 14:54:01 +0100 |
commit | 972d607c59ed4170cd25350d22ded19477360cb9 (patch) | |
tree | c8a74d9a85f13b528e667d9fda53f3d627475656 /drivers/gpu/drm/i915/icl_dsi.c | |
parent | drm/i915/icl: Use the same pll functions for dsi (diff) | |
download | linux-972d607c59ed4170cd25350d22ded19477360cb9.tar.xz linux-972d607c59ed4170cd25350d22ded19477360cb9.zip |
drm/i915/icl: Fill DSI ports info
This patch fills backlight, CABC and general port
info for Gen11 DSI.
Signed-off-by: Madhav Chauhan <madhav.chauhan@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/48c9f867d61a60dc7c2ce744ac2325655652c55f.1543500286.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/icl_dsi.c')
-rw-r--r-- | drivers/gpu/drm/i915/icl_dsi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/icl_dsi.c b/drivers/gpu/drm/i915/icl_dsi.c index 9d6cbe35259a..dc3fcc67814b 100644 --- a/drivers/gpu/drm/i915/icl_dsi.c +++ b/drivers/gpu/drm/i915/icl_dsi.c @@ -1074,6 +1074,14 @@ void icl_dsi_init(struct drm_i915_private *dev_priv) intel_panel_init(&intel_connector->panel, fixed_mode, NULL); intel_panel_setup_backlight(connector, INVALID_PIPE); + if (dev_priv->vbt.dsi.config->dual_link) + intel_dsi->ports = BIT(PORT_A) | BIT(PORT_B); + else + intel_dsi->ports = BIT(port); + + intel_dsi->dcs_backlight_ports = dev_priv->vbt.dsi.bl_ports; + intel_dsi->dcs_cabc_ports = dev_priv->vbt.dsi.cabc_ports; + if (!intel_dsi_vbt_init(intel_dsi, MIPI_DSI_GENERIC_PANEL_ID)) { DRM_DEBUG_KMS("no device found\n"); goto err; |