summaryrefslogtreecommitdiff
path: root/drivers/video/panel-uclass.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/panel-uclass.c')
-rw-r--r--drivers/video/panel-uclass.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c
index 2841bb3f3a..aec44a8bf7 100644
--- a/drivers/video/panel-uclass.c
+++ b/drivers/video/panel-uclass.c
@@ -18,6 +18,17 @@ int panel_enable_backlight(struct udevice *dev)
return ops->enable_backlight(dev);
}
+int panel_get_display_timing(struct udevice *dev,
+ struct display_timing *timings)
+{
+ struct panel_ops *ops = panel_get_ops(dev);
+
+ if (!ops->get_display_timing)
+ return -ENOSYS;
+
+ return ops->get_display_timing(dev, timings);
+}
+
UCLASS_DRIVER(panel) = {
.id = UCLASS_PANEL,
.name = "panel",