]> git.sur5r.net Git - u-boot/commit
video: parse the video-mode environment variable
authorTimur Tabi <timur@freescale.com>
Mon, 21 Mar 2011 21:38:49 +0000 (16:38 -0500)
committerAnatolij Gustschin <agust@denx.de>
Thu, 28 Apr 2011 19:31:02 +0000 (21:31 +0200)
commita5dbdc81ea70daa04e49eb0004a0441131a029c6
tree82c8239819c405c007953a3b8d3353d4115f6496
parent74446b63dd4ec386fc5de554d5c4a3536096072f
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>
doc/README.video
drivers/video/videomodes.c
drivers/video/videomodes.h