summaryrefslogtreecommitdiffstats
path: root/drivers/video/videomodes.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 /drivers/video/videomodes.h
parenteb3c0cf8069a004512aac23d85c87c2ee348f8cd (diff)
downloadtalos-obmc-uboot-b7ce12ddd7a7aba80fc8f10a50bfdec4f3aceb52.tar.gz
talos-obmc-uboot-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 'drivers/video/videomodes.h')
-rw-r--r--drivers/video/videomodes.h4
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);
OpenPOWER on IntegriCloud