1268799SpfgSPDX-License-Identifier: GPL-2.0+ 2220422Sgabor/* 3220422Sgabor * (C) Copyright 2000 4210389Sgabor * Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it 5330449Seadler */ 6330449Seadler 7211496Sdes"video-mode" environment variable 8210389Sgabor================================= 9210389Sgabor 10210389SgaborThe 'video-mode' environment variable can be used to enable and configure 11210389Sgaborsome video drivers. The format matches the video= command-line option used 12210389Sgaborfor Linux: 13210389Sgabor 14210389Sgabor video-mode=<driver>:<xres>x<yres>-<depth>@<freq><,option=string> 15210389Sgabor 16210389Sgabor <driver> The video driver name, ignored by U-Boot 17210389Sgabor <xres> The X resolution (in pixels) to use. 18210389Sgabor <yres> The Y resolution (in pixels) to use. 19210389Sgabor <depth> The color depth (in bits) to use. 20210389Sgabor <freq> The frequency (in Hz) to use. 21210389Sgabor <options> A comma-separated list of device-specific options 22210389Sgabor 23210389Sgabor 24210389SgaborU-Boot MPC8xx video controller driver 25210389Sgabor===================================== 26210389Sgabor 27210389SgaborThe driver has been tested with the following configurations: 28210389Sgabor 29210389Sgabor- MPC823FADS with AD7176 on a PAL TV (YCbYCr) - arsenio@tin.it 30210389Sgabor 31210389SgaborExample: video-mode=fslfb:1280x1024-32@60,monitor=dvi 32210389Sgabor 33210389Sgabor 34210389SgaborU-Boot sunxi video controller driver 35210389Sgabor==================================== 36210389Sgabor 37210389SgaborU-Boot supports hdmi and lcd output on Allwinner sunxi SoCs, lcd output 38210389Sgaborrequires the CONFIG_VIDEO_LCD_MODE Kconfig value to be set. 39210389Sgabor 40210389SgaborThe sunxi U-Boot driver supports the following video-mode options: 41210389Sgabor 42210389Sgabor- monitor=[none|dvi|hdmi|lcd|vga|composite-*] - Select the video output to use 43210389Sgabor none: Disable video output. 44210389Sgabor dvi/hdmi: Selects output over the hdmi connector with dvi resp. hdmi output 45210389Sgabor format, if edid is used the format is automatically selected. 46210389Sgabor lcd: Selects video output to a LCD screen. 47210389Sgabor vga: Selects video output over the VGA connector. 48210389Sgabor composite-pal/composite-ntsc/composite-pal-m/composite-pal-nc: 49210389Sgabor Selects composite video output, note the specified resolution is 50210389Sgabor ignored with composite video output. 51210389Sgabor Defaults to monitor=dvi. 52210389Sgabor 53210389Sgabor- hpd=[0|1] - Enable use of the hdmi HotPlug Detect feature 54322607Skevans 0: Disabled. Configure dvi/hdmi output even if no cable is detected 55210389Sgabor 1: Enabled. Fallback to the lcd / vga / none in that order (if available) 56210389Sgabor Defaults to hpd=1. 57210389Sgabor 58322587Skevans- hpd_delay=<int> - How long to wait for the hdmi HPD signal in milliseconds 59322587Skevans When the monitor and the board power up at the same time, it may take some 60322587Skevans time for the monitor to assert the HPD signal. This configures how long to 61322587Skevans wait for the HPD signal before assuming no cable is connected. 62210389Sgabor Defaults to hpd_delay=500. 63210389Sgabor 64210389Sgabor- edid=[0|1] - Enable use of DDC + EDID to get monitor info 65210389Sgabor 0: Disabled. 66210389Sgabor 1: Enabled. If valid EDID info was read from the monitor the EDID info will 67210389Sgabor overrides the xres, yres and refresh from the video-mode env. variable. 68210389Sgabor Defaults to edid=1. 69210389Sgabor 70322610Skevans- overscan_x/overscan_y=<int> - Set x/y overscan value 71210389Sgabor This configures a black border on the left and right resp. top and bottom 72211364Sgabor to deal with overscanning displays. Defaults to overscan_x=32 and 73210389Sgabor overscan_y=20 for composite monitors, 0 for other monitors. 74210389Sgabor 75210389SgaborFor example to always use the hdmi connector, even if no cable is inserted, 76210389Sgaborusing edid info when available and otherwise initalizing it at 1024x768@60Hz, 77268799Spfguse: "setenv video-mode sunxi:1024x768-24@60,monitor=dvi,hpd=0,edid=1". 78268799Spfg 79268799Spfg 80268799SpfgTrueType fonts 81322587Skevans-------------- 82268799Spfg 83322587SkevansU-Boot supports the use of antialiased TrueType fonts on some platforms. This 84210389Sgaborhas been tested in x86, ARMv7 and sandbox. 85210389Sgabor 86210389SgaborTo enable this, select CONFIG_CONSOLE_TRUETYPE. You can choose between several 87210389Sgaborfonts, with CONSOLE_TRUETYPE_NIMBUS being the default. 88210389Sgabor 89210389SgaborTrueType support requires floating point at present. On ARMv7 platforms you 90210389Sgaborneed to disable use of the private libgcc. You can do this by disabling 91210389SgaborCONFIG_USE_PRIVATE_LIBGCC. See chromebook_jerry for an example. Note that this 92210389Sgaborincreases U-Boot's size by about 70KB at present. 93210389Sgabor 94210389SgaborOn ARM you should also make sure your toolchain supports hardfp. This is 95210389Sgabornormally given in the name of your toolchain, e.g. arm-linux-gnueabihf (hf 96210389Sgabormeans hardware floating point). You can also run gcc with -v to see if it has 97210389Sgaborthis option. 98210389Sgabor