From patchwork Sun Jul 31 19:42:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9253445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1DE5F6048F for ; Sun, 31 Jul 2016 19:45:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1037F28489 for ; Sun, 31 Jul 2016 19:45:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 045ED28493; Sun, 31 Jul 2016 19:45:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6654728489 for ; Sun, 31 Jul 2016 19:45:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388AbcGaTni (ORCPT ); Sun, 31 Jul 2016 15:43:38 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34729 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbcGaTnT (ORCPT ); Sun, 31 Jul 2016 15:43:19 -0400 Received: by mail-pf0-f196.google.com with SMTP id g202so8922288pfb.1; Sun, 31 Jul 2016 12:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5gcEcslrC1y+t+ZSYhjCiiuyIi7rdEKNdtXZ/DTDgas=; b=PlZvEdoCEblyfqO3HPszOaYszevz58AgX68V5ASXdZyGRnSMQ8WrPFApBxI8H4BzDP 7uJBmnEJX4BLSpOfo9xUKhJqcGytLAuit+FetQM9P99Y4H/NITu5HUEhWj7dvqvR6M7D 92HuxuSaBCuqDDllzDDKVJgBjK262ePrZ7IwEcsgjC6aIeN3fTgCFeJNHcVUBsu9ehrX pOHLnPCuLwGr5WCEx7hL8qq4eY79AAde65sJ0jozZ/lMLs5cBqdCz1s1VD+lbEzkFVvS ISKwAHzCAffCeYv/TDheZyKXZm/M6f10rBv6wovz/ZF8zRS1pl+Xm9Ur9xAFFF1LR/Rs Q87Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5gcEcslrC1y+t+ZSYhjCiiuyIi7rdEKNdtXZ/DTDgas=; b=C1kjHKVqcGkB5cKaFloK/sWfeozolqnWgrwi/A6D9br28qtSVD8Opo1EWwQpBAfSZ5 WUOOjlcbYKST1BWOTlD4Wi8z3xizjYAVbvnTTGup8+F4a2vQrpsaOZkgoHOAZQYo88UM 0oxE3FLjaz2Ln1u+WNM1qSr9RxqduwkxJpdkc4pK048z0SWtdT+jX62yNLXeEWsbu7vy gJVIc/qIGrHssImURTYGbskqrc3m4eAEedFuAC38XB+izaR1eSnrWQZT75ssSYVzRqEc tcPPuGvg8/O9yECua4O3sec85moKnM6O+v4zymlGTyXVih2WxWZZr9mTCw+fX6rbIIUW OnFw== X-Gm-Message-State: AEkoousCIlKmKWPU3hZn8FsE8EKC+W2vJFRe52DqXkd9MOkUZ38WiAJXZy2KTV52GOBqng== X-Received: by 10.98.34.151 with SMTP id p23mr89509261pfj.102.1469994162586; Sun, 31 Jul 2016 12:42:42 -0700 (PDT) Received: from mothership.sklembedded.com (c-73-241-2-21.hsd1.ca.comcast.net. [73.241.2.21]) by smtp.googlemail.com with ESMTPSA id wp4sm39906381pab.15.2016.07.31.12.42.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Jul 2016 12:42:42 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: p.zabel@pengutronix.de, plagnioj@jcrosoft.com, tomi.valkeinen@ti.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, Steve Longerbeam Subject: [PATCH v3 02/12] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize() Date: Sun, 31 Jul 2016 12:42:17 -0700 Message-Id: <1469994147-17549-3-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469994147-17549-1-git-send-email-steve_longerbeam@mentor.com> References: <1469994147-17549-1-git-send-email-steve_longerbeam@mentor.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds ipu_cpmem_get_burstsize(). Signed-off-by: Steve Longerbeam --- v3: no changes v2: no changes --- drivers/gpu/ipu-v3/ipu-cpmem.c | 6 ++++++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c index a36c35e..fcb7dc8 100644 --- a/drivers/gpu/ipu-v3/ipu-cpmem.c +++ b/drivers/gpu/ipu-v3/ipu-cpmem.c @@ -275,6 +275,12 @@ void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id) } EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id); +int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch) +{ + return ipu_ch_param_read_field(ch, IPU_FIELD_NPB) + 1; +} +EXPORT_SYMBOL_GPL(ipu_cpmem_get_burstsize); + void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize) { ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1); diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h index 69c8658..8c4312d 100644 --- a/include/video/imx-ipu-v3.h +++ b/include/video/imx-ipu-v3.h @@ -187,6 +187,7 @@ void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf); void ipu_cpmem_set_uv_offset(struct ipuv3_channel *ch, u32 u_off, u32 v_off); void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride); void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id); +int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch); void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize); void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch); void ipu_cpmem_set_rotation(struct ipuv3_channel *ch,