diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2020-04-08 17:10:11 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-04-18 12:54:43 +0200 |
commit | 10374da7778a6521778c08864379b9b8f0d2573e (patch) | |
tree | 1218a4c3ed0ac186db176c038ef319d3123a4cb3 /drivers/video/videomodes.h | |
parent | ecd8497bcb655390c77928408ba28b22886b286a (diff) |
videomodes: add helper function to convert from ctfb to display_timing
This function converts from "struct ctf_res_modes" to
"struct display_timing".
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/video/videomodes.h')
-rw-r--r-- | drivers/video/videomodes.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/video/videomodes.h b/drivers/video/videomodes.h index 29a3db4ae3..aefe4ef94a 100644 --- a/drivers/video/videomodes.h +++ b/drivers/video/videomodes.h @@ -92,3 +92,14 @@ 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); +/** + * video_ctfb_mode_to_display_timing() - Convert a ctfb(Cathode Tube Frame + * Buffer)_res_modes struct to a + * display_timing struct. + * + * @mode: Input ctfb_res_modes structure pointer to be converted + * from + * @timing: Output display_timing structure pointer to be converted to + */ +void video_ctfb_mode_to_display_timing(const struct ctfb_res_modes *mode, + struct display_timing *timing); |