From patchwork Sun Jun 9 08:44:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jett.Zhou" X-Patchwork-Id: 2693881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id B9A21DF2A1 for ; Sun, 9 Jun 2013 08:51:20 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UlbJD-0003MC-RS; Sun, 09 Jun 2013 08:49:09 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UlbIL-0002RC-7o; Sun, 09 Jun 2013 08:48:13 +0000 Received: from na3sys009aog108.obsmtp.com ([74.125.149.199]) by merlin.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UlbI5-0002OO-Gh for linux-arm-kernel@lists.infradead.org; Sun, 09 Jun 2013 08:47:58 +0000 Received: from SC-OWA.marvell.com ([199.233.58.135]) (using TLSv1) by na3sys009aob108.postini.com ([74.125.148.12]) with SMTP ID DSNKUbRBJCtQcHlToksz9508Nd0UdFzmK0MO@postini.com; Sun, 09 Jun 2013 01:47:57 PDT Received: from maili.marvell.com (10.93.76.43) by SC-OWA.marvell.com (10.93.76.28) with Microsoft SMTP Server id 8.3.213.0; Sun, 9 Jun 2013 01:44:51 -0700 Received: from localhost (unknown [10.38.164.229]) by maili.marvell.com (Postfix) with ESMTP id 781BE1CCDAE; Sun, 9 Jun 2013 01:44:51 -0700 (PDT) From: Jett.Zhou To: , Subject: [V1 5/7] video: mmp: add pitch info in mmp_win structure Date: Sun, 9 Jun 2013 16:44:46 +0800 Message-ID: <1370767486-11729-1-git-send-email-jtzhou@marvell.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130609_044757_789628_31980465 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.199 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Jing Xiang , linux-fbdev@vger.kernel.org, jett.zhou@gmail.com, haojian.zhuang@gmail.com, jtzhou@marvell.com, linux-arm-kernel@lists.infradead.org, cxie4@marvell.com, zzhu3@marvell.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Jing Xiang Add pitch length info of graphics/video layer for mmp_win, if it is YUV format of video layer, u/v pitch will non-zero. Signed-off-by: Jing Xiang Signed-off-by: Jett.Zhou --- include/video/mmp_disp.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/video/mmp_disp.h b/include/video/mmp_disp.h index b9dd1fb..5708d26 100644 --- a/include/video/mmp_disp.h +++ b/include/video/mmp_disp.h @@ -91,6 +91,9 @@ struct mmp_win { u16 up_crop; u16 bottom_crop; int pix_fmt; + /* pitch[0]: graphics/video layer line length or y pitch + * pitch[1]/pitch[2]: video u/v pitch if non-zero */ + u32 pitch[3]; }; struct mmp_addr {