diff options
author | Yannick Fertré <yannick.fertre@st.com> | 2018-07-13 14:11:09 +0200 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2018-08-01 18:03:58 +0200 |
commit | 28576f81823d9fbb9edc525aba5cb130882b8b1f (patch) | |
tree | 41d383f7eb44c8cfdf3b0ba67b71a67de78ad7c4 /drivers/video | |
parent | ba71ab8246d1d1c4778ebe5dd892d569c8d6219c (diff) | |
download | u-boot-28576f81823d9fbb9edc525aba5cb130882b8b1f.tar.gz |
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 'drivers/video')
-rw-r--r-- | drivers/video/panel-uclass.c | 11 |
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", |