diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-12-19 15:47:37 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 14:56:38 +0100 |
commit | b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52 (patch) | |
tree | d026782302bbb7b03b37629fa80114a3ce5c8d77 /include/edid.h | |
parent | eb3c0cf8069a004512aac23d85c87c2ee348f8cd (diff) | |
download | u-boot-b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52.tar.gz u-boot-b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52.tar.bz2 u-boot-b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52.zip |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/edid.h b/include/edid.h index 480a773d0f..d3cc5232de 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__)); |