From a5dbdc81ea70daa04e49eb0004a0441131a029c6 Mon Sep 17 00:00:00 2001 From: Timur Tabi Date: Mon, 21 Mar 2011 16:38:49 -0500 Subject: 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=:x-@<,option=string> The video driver, ignored by U-Boot The X resolution (in pixels) to use. The Y resolution (in pixels) to use. The color depth (in bits) to use. The frequency (in Hz) to use. A comma-separated list of device-specific options Signed-off-by: Timur Tabi --- doc/README.video | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'doc') diff --git a/doc/README.video b/doc/README.video index 34e199c..0c04bea 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=:x-@<,option=string> + + The video driver name, ignored by U-Boot + The X resolution (in pixels) to use. + The Y resolution (in pixels) to use. + The color depth (in bits) to use. + The frequency (in Hz) to use. + A comma-separated list of device-specific options + +Example: video-mode=fslfb:1280x1024-32@60,monitor=dvi -- cgit v1.1