summaryrefslogtreecommitdiff
path: root/drivers/video/bridge/video-bridge-uclass.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-10-29 10:11:08 -0400
committerTom Rini <trini@konsulko.com>2017-10-29 10:11:08 -0400
commit2d5e6b4aac59d3a93773f19839fbb86d9e704fb7 (patch)
tree988476ddf97741742c05bf1850a5136f8272a19a /drivers/video/bridge/video-bridge-uclass.c
parent405835645a2db17152e6d6cdb4c9d1893f9501cc (diff)
parent9b73bcc6c3f9a5fdff75159fc8e1ecddf1c290e8 (diff)
downloadu-boot-2d5e6b4aac59d3a93773f19839fbb86d9e704fb7.tar.gz
Merge git://git.denx.de/u-boot-video
Diffstat (limited to 'drivers/video/bridge/video-bridge-uclass.c')
-rw-r--r--drivers/video/bridge/video-bridge-uclass.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c
index 07270bac9e..79facd02a6 100644
--- a/drivers/video/bridge/video-bridge-uclass.c
+++ b/drivers/video/bridge/video-bridge-uclass.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
+#include <edid.h>
#include <video_bridge.h>
int video_bridge_set_backlight(struct udevice *dev, int percent)
@@ -45,6 +46,15 @@ int video_bridge_check_attached(struct udevice *dev)
return ops->check_attached(dev);
}
+int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size)
+{
+ struct video_bridge_ops *ops = video_bridge_get_ops(dev);
+
+ if (!ops || !ops->read_edid)
+ return -ENOSYS;
+ return ops->read_edid(dev, buf, buf_size);
+}
+
static int video_bridge_pre_probe(struct udevice *dev)
{
struct video_bridge_priv *uc_priv = dev_get_uclass_priv(dev);