From patchwork Wed Jan 26 01:52:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying-B17645 X-Patchwork-Id: 80438 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 66680B70F1 for ; Wed, 26 Jan 2011 13:07:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9E8662809F; Wed, 26 Jan 2011 03:07:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U3v+zokB8cjn; Wed, 26 Jan 2011 03:07:57 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9DD7128096; Wed, 26 Jan 2011 03:07:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1F8B428096 for ; Wed, 26 Jan 2011 03:07:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rEMF8jsiHoBY for ; Wed, 26 Jan 2011 03:07:50 +0100 (CET) X-Greylist: delayed 907 seconds by postgrey-1.27 at theia; Wed, 26 Jan 2011 03:07:48 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from VA3EHSOBE003.bigfish.com (va3ehsobe003.messaging.microsoft.com [216.32.180.13]) by theia.denx.de (Postfix) with ESMTPS id 0C35628094 for ; Wed, 26 Jan 2011 03:07:48 +0100 (CET) Received: from mail139-va3-R.bigfish.com (10.7.14.236) by VA3EHSOBE003.bigfish.com (10.7.40.23) with Microsoft SMTP Server id 14.1.225.8; Wed, 26 Jan 2011 01:52:40 +0000 Received: from mail139-va3 (localhost.localdomain [127.0.0.1]) by mail139-va3-R.bigfish.com (Postfix) with ESMTP id A79645B828D; Wed, 26 Jan 2011 01:52:39 +0000 (UTC) X-SpamScore: -19 X-BigFish: VS-19(zz542Ndf9M9371Pzz1202hzz8275bhz2dh2a8h668h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:az33egw02.freescale.net; RD:az33egw02.freescale.net; EFVD:NLI Received: from mail139-va3 (localhost.localdomain [127.0.0.1]) by mail139-va3 (MessageSwitch) id 1296006759545058_20155; Wed, 26 Jan 2011 01:52:39 +0000 (UTC) Received: from VA3EHSMHS029.bigfish.com (unknown [10.7.14.243]) by mail139-va3.bigfish.com (Postfix) with ESMTP id 806CE70804F; Wed, 26 Jan 2011 01:52:39 +0000 (UTC) Received: from az33egw02.freescale.net (192.88.158.103) by VA3EHSMHS029.bigfish.com (10.7.99.39) with Microsoft SMTP Server (TLS) id 14.1.225.8; Wed, 26 Jan 2011 01:52:39 +0000 Received: from de01smr02.am.mot.com (de01smr02.freescale.net [10.208.0.151]) by az33egw02.freescale.net (8.14.3/8.14.3) with ESMTP id p0Q1qbqU022436; Tue, 25 Jan 2011 18:52:37 -0700 (MST) Received: from mail.freescale.net ([10.84.1.13]) by de01smr02.am.mot.com (8.13.1/8.13.0) with ESMTP id p0Q1qVE7010299; Tue, 25 Jan 2011 19:52:37 -0600 (CST) Received: from 039-SN1MPN1-006.039d.mgd.msft.net ([169.254.8.102]) by 039-SN1MMR1-001.039d.mgd.msft.net ([10.84.1.13]) with mapi; Tue, 25 Jan 2011 19:52:36 -0600 From: Liu Ying-B17645 To: "u-boot@lists.denx.de" Thread-Topic: [U-Boot][PATCH 1/1] lcd: align fb writing address for horizontal display offset Thread-Index: AQHLsWELQFqH5OYs5UOFq9k6Dbg4Q5Pik5YQ Date: Wed, 26 Jan 2011 01:52:33 +0000 Message-ID: References: <1294730998-7737-1-git-send-email-Ying.Liu@freescale.com> In-Reply-To: <1294730998-7737-1-git-send-email-Ying.Liu@freescale.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: MIME-Version: 1.0 X-OriginatorOrg: freescale.com Subject: Re: [U-Boot] [PATCH 1/1] lcd: align fb writing address for horizontal display offset X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Hello, I sent the following patch for view about 2 weeks ago and haven't got any comment till now. Could anyone help to give comments? Thanks. Best Regards, Liu Ying -----Original Message----- From: Liu Ying-B17645 Sent: Tuesday, January 11, 2011 3:30 PM To: u-boot@lists.denx.de Cc: Liu Ying-B17645 Subject: [U-Boot][PATCH 1/1] lcd: align fb writing address for horizontal display offset CONFIG_SPLASH_SCREEN_ALIGN makes uboot support display offset for splashimage. The framebuffer writing address should be calculated according to different kinds of framebuffer pixel format, i.e., bits per pixel value. Signed-off-by: Liu Ying --- common/lcd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- 1.6.3.3 diff --git a/common/lcd.c b/common/lcd.c index d854c21..0555ab4 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -731,7 +731,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y) bmap = (uchar *)bmp + le32_to_cpu (bmp->header.data_offset); fb = (uchar *) (lcd_base + - (y + height - 1) * lcd_line_length + x); + (y + height - 1) * lcd_line_length + x * bpix / 8); switch (bmp_bpix) { case 1: /* pass through */