diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-12-19 13:22:47 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 14:56:38 +0100 |
commit | e976b868f2f77eddf7f61d52dfe2a23075ae272d (patch) | |
tree | 10964743c2b1616a752cbb844579fe1ee4a08265 /drivers/video/videomodes.h | |
parent | 59bb610922257de60e3ece5c0f699bd929c4f1f6 (diff) |
videomodes: Add video_get_ctfb_res_modes helper function
Add a video_get_ctfb_res_modes() helper function, which uses
video_get_video_mode() to parse the 'video-mode' environment variable and then
looks up the matching mode in res_mode_init and returns the matching mode.
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/videomodes.h b/drivers/video/videomodes.h index 579c6850f7..02419cdeac 100644 --- a/drivers/video/videomodes.h +++ b/drivers/video/videomodes.h @@ -79,3 +79,8 @@ int video_get_params (struct ctfb_res_modes *pPar, char *penv); int video_get_video_mode(unsigned int *xres, unsigned int *yres, unsigned int *depth, unsigned int *freq, const char **options); + +void video_get_ctfb_res_modes(int default_mode, unsigned int default_depth, + const struct ctfb_res_modes **mode_ret, + unsigned int *depth_ret, + const char **options); |