mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
a5dbdc81ea
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>
49 lines
1.8 KiB
Text
49 lines
1.8 KiB
Text
/*
|
|
* (C) Copyright 2000
|
|
* Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it
|
|
*
|
|
* See file CREDITS for list of people who contributed to this
|
|
* project.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of
|
|
* the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*/
|
|
|
|
U-Boot MPC8xx video controller driver
|
|
======================================
|
|
|
|
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
|