summaryrefslogtreecommitdiff
path: root/include/edid.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-12-19 15:47:37 +0100
committerHans de Goede <hdegoede@redhat.com>2015-01-14 14:56:38 +0100
commitb7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52 (patch)
treed026782302bbb7b03b37629fa80114a3ce5c8d77 /include/edid.h
parenteb3c0cf8069a004512aac23d85c87c2ee348f8cd (diff)
downloadu-boot-imx-b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52.zip
u-boot-imx-b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52.tar.gz
u-boot-imx-b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52.tar.bz2
videomodes: Add video_edid_dtd_to_ctfb_res_modes helper function
Add a video_edid_dtd_to_ctfb_res_modes helper function to convert an EDID detailed timing to a struct ctfb_res_modes. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/edid.h b/include/edid.h
index 480a773..d3cc523 100644
--- a/include/edid.h
+++ b/include/edid.h
@@ -86,6 +86,10 @@ struct edid_detailed_timing {
GET_BITS((_x).flags, 4, 3)
#define EDID_DETAILED_TIMING_FLAG_POLARITY(_x) \
GET_BITS((_x).flags, 2, 1)
+#define EDID_DETAILED_TIMING_FLAG_VSYNC_POLARITY(_x) \
+ GET_BIT((_x).flags, 2)
+#define EDID_DETAILED_TIMING_FLAG_HSYNC_POLARITY(_x) \
+ GET_BIT((_x).flags, 1)
#define EDID_DETAILED_TIMING_FLAG_INTERLEAVED(_x) \
GET_BIT((_x).flags, 0)
} __attribute__ ((__packed__));