aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYannick Fertré <yannick.fertre@st.com>2018-07-13 14:11:09 +0200
committerAnatolij Gustschin <agust@denx.de>2018-08-01 18:03:58 +0200
commit28576f81823d9fbb9edc525aba5cb130882b8b1f (patch)
tree41d383f7eb44c8cfdf3b0ba67b71a67de78ad7c4 /include
parentba71ab8246d1d1c4778ebe5dd892d569c8d6219c (diff)
downloadu-boot-28576f81823d9fbb9edc525aba5cb130882b8b1f.zip
u-boot-28576f81823d9fbb9edc525aba5cb130882b8b1f.tar.gz
u-boot-28576f81823d9fbb9edc525aba5cb130882b8b1f.tar.bz2
dm: panel: get timings from panel
Get timings from panel instead of read device tree. Signed-off-by: Yannick Fertré <yannick.fertre@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/panel.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/panel.h b/include/panel.h
index 46dca48b..6237d32 100644
--- a/include/panel.h
+++ b/include/panel.h
@@ -15,6 +15,15 @@ struct panel_ops {
* @return 0 if OK, -ve on error
*/
int (*enable_backlight)(struct udevice *dev);
+ /**
+ * get_timings() - Get display timings from panel.
+ *
+ * @dev: Panel device containing the display timings
+ * @tim: Place to put timings
+ * @return 0 if OK, -ve on error
+ */
+ int (*get_display_timing)(struct udevice *dev,
+ struct display_timing *timing);
};
#define panel_get_ops(dev) ((struct panel_ops *)(dev)->driver->ops)
@@ -27,4 +36,13 @@ struct panel_ops {
*/
int panel_enable_backlight(struct udevice *dev);
+/**
+ * panel_get_display_timing() - Get display timings from panel.
+ *
+ * @dev: Panel device containing the display timings
+ * @return 0 if OK, -ve on error
+ */
+int panel_get_display_timing(struct udevice *dev,
+ struct display_timing *timing);
+
#endif