From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Dooks Subject: [PATCH] FB: Ensure S3C2410 framebuffer clears initial memory to black Date: Mon, 19 Nov 2007 18:06:54 +0000 Message-ID: <20071119180725.952723164@fluff.org> References: <20071119180650.568288237@fluff.org> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1IuB23-0006ht-Oz for linux-fbdev-devel@lists.sourceforge.net; Mon, 19 Nov 2007 10:07:40 -0800 Received: from 87-194-8-8.bethere.co.uk ([87.194.8.8] helo=kira.home.fluff.org) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1IuB22-00021D-AN for linux-fbdev-devel@lists.sourceforge.net; Mon, 19 Nov 2007 10:07:39 -0800 Content-Disposition: inline; filename=simtec/simtec-drivers-fb-s3c2410-cleartoblack.patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: linux-fbdev-devel@lists.sourceforge.net Cc: vince@simtec.co.uk, Ben Dooks Change the initial pattern in the s3c2410 framebuffer driver to black. Signed-off-by: Ben Dooks Index: linux-2.6.24-rc3-fb1/drivers/video/s3c2410fb.c =================================================================== --- linux-2.6.24-rc3-fb1.orig/drivers/video/s3c2410fb.c +++ linux-2.6.24-rc3-fb1/drivers/video/s3c2410fb.c @@ -672,7 +672,7 @@ static int __init s3c2410fb_map_video_me /* prevent initial garbage on screen */ dprintk("map_video_memory: clear %p:%08x\n", info->screen_base, map_size); - memset(info->screen_base, 0xf0, map_size); + memset(info->screen_base, 0x00, map_size); info->fix.smem_start = map_dma; -- Ben (ben@fluff.org, http://www.fluff.org/) 'a smiley only costs 4 bytes' ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/