diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2017-09-20 23:29:07 -0700 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2017-10-26 14:17:01 +0200 |
commit | fdb5525572ec7dc240ccc960888ae969253fede4 (patch) | |
tree | 647dfc8451b384d2c1310f2ba883c0f97490a4e0 /include/video_bridge.h | |
parent | be5b96f0e4110976a284aefe8b43fe09dee40957 (diff) | |
download | u-boot-fdb5525572ec7dc240ccc960888ae969253fede4.tar.gz u-boot-fdb5525572ec7dc240ccc960888ae969253fede4.tar.bz2 u-boot-fdb5525572ec7dc240ccc960888ae969253fede4.zip |
dm: video: bridge: add operation to read EDID
Add an operation to read EDID, since bridge may have ability to read
EDID from the panel that is connected to it, for example LCD<->eDP bridge.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Diffstat (limited to 'include/video_bridge.h')
-rw-r--r-- | include/video_bridge.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/video_bridge.h b/include/video_bridge.h index c7b8681849..0699a8dda8 100644 --- a/include/video_bridge.h +++ b/include/video_bridge.h @@ -53,6 +53,16 @@ struct video_bridge_ops { * @return 0 if OK, -ve on error */ int (*set_backlight)(struct udevice *dev, int percent); + + /** + * read_edid() - Read information from EDID + * + * @dev: Device to read from + * @buf: Buffer to read into + * @buf_size: Buffer size + * @return number of bytes read, <=0 for error + */ + int (*read_edid)(struct udevice *dev, u8 *buf, int buf_size); }; #define video_bridge_get_ops(dev) \ @@ -89,4 +99,14 @@ int video_bridge_set_active(struct udevice *dev, bool active); */ int video_bridge_check_attached(struct udevice *dev); +/** + * video_bridge_read_edid() - Read information from EDID + * + * @dev: Device to read from + * @buf: Buffer to read into + * @buf_size: Buffer size + * @return number of bytes read, <=0 for error + */ +int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size); + #endif |