From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 14 Oct 2011 09:04:52 +0200 Subject: [U-Boot] [PATCH v3 2/2] video: Moving mx3fb.c to CONFIG_VIDEO In-Reply-To: <1318497389-13726-2-git-send-email-agust@denx.de> References: <1315223227-29535-1-git-send-email-helmut.raiger@hale.at> <1318497389-13726-2-git-send-email-agust@denx.de> Message-ID: <20111014090452.6dace603@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 13 Oct 2011 11:16:29 +0200 Anatolij Gustschin wrote: > From: Helmut Raiger > > mx3fb.c was based on CONFIG_LCD and is moved by this patch to > CONFIG_VIDEO, which has greater freedom in selecting videomodes > even at runtime. > > This renders the accumulating list of display defines > (CONFIG_DISPLAY_VBEST..., CONFIG_DISPLAY_C057...) obsolete as > these may be setup through env variables: > > uboot> setenv mydisplay 'video=ctfb:x:240,y:320,depth:16,mode:0,pclk:185925, > le:9,ri:17,up:7,lo:10,hs:1,vs:1,sync:100663296,vmode:0' > uboot> setenv videomode ${mydisplay} > > This commit also fixes the board config files for qong and > imx31_phycore boards as needed. The videomode settings of > previously supported displays are added to CONFIG_EXTRA_ENV_SETTINGS > now. CONFIG_SYS_MALLOC_LEN for imx31_phycore board is increased > to make the frame buffer allocation working with the changed > driver. > > Signed-off-by: Helmut Raiger > Signed-off-by: Anatolij Gustschin > Cc: Stefano Babic > --- > Changes since v2: > - fixed commit message > - added display info for removed display timings of > previously supported displays (in a comment) > - fixed compiler warning showed when compiling with debug > enabled > - added "Video: " prefix before display info output (as > we usually do it in U-Boot) > - fixed board config files for 'qong' and 'imx31_phycore' boards > so that this commit doesn't break compiling (bisectable now) > - added videomode settings for previously supported displays on > 'qong' and 'imx31_phycore' to CONFIG_EXTRA_ENV_SETTINGS > - increased CONFIG_SYS_MALLOC_LEN for 'imx31_phycore' so that > the frame buffer can be allocated now (this is required to make > the display support working with the changed mx3fb driver) > > drivers/video/Makefile | 2 +- > drivers/video/cfb_console.c | 7 + > drivers/video/mx3fb.c | 459 +++++++++++++++++++++++---------------- > include/configs/imx31_phycore.h | 24 +- > include/configs/qong.h | 14 +- > 5 files changed, 297 insertions(+), 209 deletions(-) Applied to u-boot-video master. Anatolij