Panel Power On/Off sequences are part of Panel spec.
These are present in VBT v3 of the Intel VBT spec.
Enabling the support of same.

Signed-off-by: Uma Shankar <[email protected]>
---
 drivers/gpu/drm/i915/intel_dsi_panel_vbt.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c 
b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
index 8f683b8..d476b94 100644
--- a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
+++ b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
@@ -547,10 +547,26 @@ static int vbt_panel_get_modes(struct drm_panel *panel)
        return 1;
 }
 
+static int vbt_panel_power_on(struct drm_panel *panel)
+{
+        generic_exec_sequence(panel, MIPI_SEQ_POWER_ON);
+
+        return 0;
+}
+
+static int vbt_panel_power_off(struct drm_panel *panel)
+{
+        generic_exec_sequence(panel, MIPI_SEQ_POWER_OFF);
+
+        return 0;
+}
+
 static const struct drm_panel_funcs vbt_panel_funcs = {
        .disable = vbt_panel_disable,
        .unprepare = vbt_panel_unprepare,
        .prepare = vbt_panel_prepare,
+       .power_on = vbt_panel_power_on,
+       .power_off = vbt_panel_power_off,
        .enable = vbt_panel_enable,
        .get_modes = vbt_panel_get_modes,
 };
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to