summaryrefslogtreecommitdiff
path: root/include/display.h
diff options
context:
space:
mode:
authorJulien Stephan <[email protected]>2025-06-30 12:08:16 +0200
committerTom Rini <[email protected]>2025-12-30 11:22:57 -0600
commit5e9b0b56ad8c2a4289b2b506ad3d0f3acd0d20ba (patch)
tree6a39e7d920a1089506083bb62e794cceca259c66 /include/display.h
parent5b2ee2c4a200961fa92ab1f2f2502ee41905257e (diff)
cmd: add new command to read edid
Add a new command to read EDID info from connected display. When applicable EDID can also be retrieved by commands such as: i2c dev x i2c edid 0x50 but the new read_edid function relies on the implementation of the read_edid callback from DISPLAY driver. Signed-off-by: Julien Stephan <[email protected]>
Diffstat (limited to 'include/display.h')
-rw-r--r--include/display.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/display.h b/include/display.h
index e8d8aaa15fb..26b965daba9 100644
--- a/include/display.h
+++ b/include/display.h
@@ -26,6 +26,16 @@ struct display_plat {
};
/**
+ * display_read_edid() - Read edid from display
+ *
+ * @dev: Device to read from
+ * @buf: Buffer to read into (should be EDID_SIZE bytes)
+ * @buf_size: Buffer size (should be EDID_SIZE)
+ * Return number of bytes read, <= 0 for error
+ */
+int display_read_edid(struct udevice *dev, u8 *buf, int buf_size);
+
+/**
* display_read_timing() - Read timing information
*
* @dev: Device to read from