[Intel-gfx] [PATCH v11 22/23] HACK: drm/i915/icl: Configure backlight functions for DSI
Jani Nikula
jani.nikula at intel.com
Thu Nov 29 14:12:37 UTC 2018
From: Madhav Chauhan <madhav.chauhan at intel.com>
Gen11 DSI doesn't use DCS commands based functionality
for enabling/disabling backlight but uses PWM based
functions similar to eDP.
Note by Jani: This should be decided by VBT, not hard coded. DCS
brightness control is still a thing.
Signed-off-by: Madhav Chauhan <madhav.chauhan at intel.com>
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/i915/intel_panel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index e6cd7b55c018..b6df63aa11e3 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -1835,7 +1835,8 @@ intel_panel_init_backlight_funcs(struct intel_panel *panel)
intel_dp_aux_init_backlight_funcs(connector) == 0)
return;
- if (connector->base.connector_type == DRM_MODE_CONNECTOR_DSI &&
+ if (IS_GEN9_LP(dev_priv) &&
+ connector->base.connector_type == DRM_MODE_CONNECTOR_DSI &&
intel_dsi_dcs_init_backlight_funcs(connector) == 0)
return;
--
2.11.0
More information about the Intel-gfx
mailing list