[Intel-gfx] [PATCH 11/14] drm: Add DSI reset sequence

Vidya Srinivas vidya.srinivas at intel.com
Mon Jan 9 09:16:15 UTC 2017


Add the call back for MIPI reset sequence in drm for
fine grained panel control. This is needed to
reset the panel based on the panel schematics.

Signed-off-by: Uma Shankar <uma.shankar at intel.com>
---
 include/drm/drm_panel.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h
index 515595b..c49358e 100644
--- a/include/drm/drm_panel.h
+++ b/include/drm/drm_panel.h
@@ -69,6 +69,7 @@ struct drm_panel_funcs {
 	int (*disable)(struct drm_panel *panel);
 	int (*unprepare)(struct drm_panel *panel);
 	int (*prepare)(struct drm_panel *panel);
+	int (*reset)(struct drm_panel *panel);
 	int (*power_on)(struct drm_panel *panel);
 	int (*power_off)(struct drm_panel *panel);
 	int (*enable)(struct drm_panel *panel);
@@ -132,6 +133,14 @@ static inline int drm_panel_disable(struct drm_panel *panel)
 	return panel ? -ENOSYS : -EINVAL;
 }
 
+static inline int drm_panel_reset(struct drm_panel *panel)
+{
+        if (panel && panel->funcs && panel->funcs->reset)
+                return panel->funcs->reset(panel);
+
+        return panel ? -ENOSYS : -EINVAL;
+}
+
 /**
  * drm_panel_prepare - power on a panel
  * @panel: DRM panel
-- 
1.9.1



More information about the Intel-gfx mailing list