summaryrefslogtreecommitdiffstats
path: root/include/edid.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-11-24 13:47:13 +0100
committerHans de Goede <hdegoede@redhat.com>2015-01-14 14:56:38 +0100
commite745d064b441dbf48eac4bc2c494263d54262dec (patch)
tree8a8013e88fa5f3ac9c2143fc1f204c50f837bcc5 /include/edid.h
parentb7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52 (diff)
downloadblackbird-obmc-uboot-e745d064b441dbf48eac4bc2c494263d54262dec.tar.gz
blackbird-obmc-uboot-e745d064b441dbf48eac4bc2c494263d54262dec.zip
edid: Add an edid_check_checksum() helper function
Add a helper function to check the checksum of an EDID data block. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/edid.h')
-rw-r--r--include/edid.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/edid.h b/include/edid.h
index d3cc5232de..a69f43a206 100644
--- a/include/edid.h
+++ b/include/edid.h
@@ -246,6 +246,15 @@ void edid_print_info(struct edid1_info *edid_info);
int edid_check_info(struct edid1_info *info);
/**
+ * Check checksum of a 128 bytes EDID data block
+ *
+ * @param edid_block EDID block data
+ *
+ * @return 0 on success, or a negative errno on error
+ */
+int edid_check_checksum(u8 *edid_block);
+
+/**
* Get the horizontal and vertical rate ranges of the monitor.
*
* @param edid The EDID info
OpenPOWER on IntegriCloud