drm/panel: Add an API to allow drm to set orientation from panel
[linux-2.6-microblaze.git] / include / drm / drm_panel.h
index d279ee4..3a27112 100644 (file)
@@ -116,6 +116,15 @@ struct drm_panel_funcs {
        int (*get_modes)(struct drm_panel *panel,
                         struct drm_connector *connector);
 
+       /**
+        * @get_orientation:
+        *
+        * Return the panel orientation set by device tree or EDID.
+        *
+        * This function is optional.
+        */
+       enum drm_panel_orientation (*get_orientation)(struct drm_panel *panel);
+
        /**
         * @get_timings:
         *