diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-12-19 17:47:37 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 16:56:38 +0300 |
commit | b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52 (patch) | |
tree | d026782302bbb7b03b37629fa80114a3ce5c8d77 /drivers/video/videomodes.h | |
parent | eb3c0cf8069a004512aac23d85c87c2ee348f8cd (diff) | |
download | u-boot-b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52.tar.xz |
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 'drivers/video/videomodes.h')
-rw-r--r-- | drivers/video/videomodes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/videomodes.h b/drivers/video/videomodes.h index 047b8a9838..82190a2aec 100644 --- a/drivers/video/videomodes.h +++ b/drivers/video/videomodes.h @@ -5,6 +5,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include <edid.h> #ifndef CONFIG_SYS_DEFAULT_VIDEO_MODE #define CONFIG_SYS_DEFAULT_VIDEO_MODE 0x301 @@ -89,3 +90,6 @@ void video_get_option_string(const char *options, const char *name, char *dest, int dest_len, const char *def); int video_get_option_int(const char *options, const char *name, int def); + +int video_edid_dtd_to_ctfb_res_modes(struct edid_detailed_timing *t, + struct ctfb_res_modes *mode); |