summaryrefslogtreecommitdiff
path: root/drivers/video/videomodes.h
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2011-03-21 16:38:49 -0500
committerAnatolij Gustschin <agust@denx.de>2011-04-28 21:31:02 +0200
commita5dbdc81ea70daa04e49eb0004a0441131a029c6 (patch)
tree82c8239819c405c007953a3b8d3353d4115f6496 /drivers/video/videomodes.h
parent74446b63dd4ec386fc5de554d5c4a3536096072f (diff)
video: parse the video-mode environment variable
Add function video_get_video_mode(), which parses the "video-mode" environment variable and returns each of its components. The format matches the video= command-line option used for Linux: video-mode=<driver>:<xres>x<yres>-<depth>@<freq><,option=string> <driver> The video driver, ignored by U-Boot <xres> The X resolution (in pixels) to use. <yres> The Y resolution (in pixels) to use. <depth> The color depth (in bits) to use. <freq> The frequency (in Hz) to use. <options> A comma-separated list of device-specific options Signed-off-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'drivers/video/videomodes.h')
-rw-r--r--drivers/video/videomodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/videomodes.h b/drivers/video/videomodes.h
index 0d7c335410c..e546ab44f17 100644
--- a/drivers/video/videomodes.h
+++ b/drivers/video/videomodes.h
@@ -86,3 +86,6 @@ extern const struct ctfb_vesa_modes vesa_modes[];
extern const struct ctfb_res_modes res_mode_init[];
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);