aboutsummaryrefslogtreecommitdiff
path: root/doc
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 /doc
parent74446b63dd4ec386fc5de554d5c4a3536096072f (diff)
downloadu-boot-linaro-stable-a5dbdc81ea70daa04e49eb0004a0441131a029c6.tar.gz
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 'doc')
-rw-r--r--doc/README.video19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/README.video b/doc/README.video
index 34e199c2d..0c04bea57 100644
--- a/doc/README.video
+++ b/doc/README.video
@@ -28,3 +28,22 @@ The driver has been tested with the following configurations:
- MPC823FADS with AD7176 on a PAL TV (YCbYCr) - arsenio@tin.it
- GENIETV with AD7177 on a PAL TV (YCbYCr) - arsenio@tin.it
+
+
+"video-mode" environment variable
+===============================
+
+The 'video-mode' environment variable can be used to enable and configure
+some video drivers. 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 name, 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
+
+Example: video-mode=fslfb:1280x1024-32@60,monitor=dvi