From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PAhku-0007kZ-Hg for barebox@lists.infradead.org; Tue, 26 Oct 2010 11:31:53 +0000 Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.71) (envelope-from ) id 1PAhks-0005KP-BY for barebox@lists.infradead.org; Tue, 26 Oct 2010 13:31:50 +0200 Received: from jbe by octopus.hi.pengutronix.de with local (Exim 4.69) (envelope-from ) id 1PAhks-00086Q-AR for barebox@lists.infradead.org; Tue, 26 Oct 2010 13:31:50 +0200 From: Juergen Beisert Date: Tue, 26 Oct 2010 13:31:36 +0200 Message-Id: <1288092708-5187-1-git-send-email-jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCHv2] Add dynamic video initialization to barebox To: barebox@lists.infradead.org Currently barebox uses a fixed videomode setup. Everything is compiled in. This change adds the possibility to select a videomode according to a connected display at runtime. The current behaviour is still present if not otherwise configured. If configured for runtime setup, initialization of the video hardware will be delayed until the required videomode will be selected from the shell code. If more than one videomode is supported by the platform, running the 'devinfo' command on the framebuffer device shows the supported videomode list. After selecting the videomode, the output can be enabled. On my hardware I can connect a regular monitor, which supports more than one videomode. The runtime setup sequence looks like that: tx28:/ devinfo framebuffer0 base : 0x00000000 size : 0x00000000 driver: framebuffer Video/Mode info: Video output not enabled Current video mode: No video mode selected yet Supported video mode(s): 'VGA' 'SVGA' 'XGA' 'SXGA' Parameters: cdepth = 16 mode = enable = tx28:/ framebuffer0.mode=SVGA tx28:/ bmp splash.bmp tx28:/ framebuffer0.enable=1 After the last command the monitor shows the splash screen. This is revision 2 of this patch stack. - enabling the video output is now always required to get a picture - driver specific data can now be added on a per videomode base - documentation is adapted to the new behaviour jbe _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox