From patchwork Wed Jul 20 01:11:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9238631 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 A85386075D for ; Wed, 20 Jul 2016 01:13:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 996402624C for ; Wed, 20 Jul 2016 01:13:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E0D426A4D; Wed, 20 Jul 2016 01:13:59 +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 0CA412624C for ; Wed, 20 Jul 2016 01:13:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753210AbcGTBL2 (ORCPT ); Tue, 19 Jul 2016 21:11:28 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36425 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619AbcGTBLY (ORCPT ); Tue, 19 Jul 2016 21:11:24 -0400 Received: by mail-pf0-f195.google.com with SMTP id y134so2336722pfg.3; Tue, 19 Jul 2016 18:11:24 -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=5lZjvBtxKe1Lq7y6XOCH1hXN+TqkEjT/A6gOEWTOjvU=; b=XqlyLQ4mgeLIHmQbcPm0Y8mjop47tBnuwEOOrLKb2XBAQ3vJaKMjoOLdsrMc79BXbh 0P2/kPvJa2/SAt0n69Y0+UQWep6LpmCWzlO4Zj5XGPBaz2Z6f94CEv4U7xfb+GRqfVB2 s5y857kozm/pQf2TbXlSaPMqIRZW6kd7oFpsvbp5jgNOpQrQeupFpkIZeedq6yCVJDFY mRSCyI/LIs6UyTULfgMTArAT6sqZgY+UBiUAO5r6v21F9YCAdBszHkrPe6TuVEkY01vb aTfBEFGGYx6lQsfIhdH9q+0MyProF96kLu7ngO6pnfXp63cZpiE91BDYwq8k4aXSRqr4 Fwqg== 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=5lZjvBtxKe1Lq7y6XOCH1hXN+TqkEjT/A6gOEWTOjvU=; b=QZjPfPwCJxKSMVTUFcqK89ZtPS5Hcr4Y/ZOzW79I8Qg3LvDUgTRy+NH8NjBjZ7wCo+ 6RxIj64hnuYTwNhWx1yMwPZ8Foh6uGgn2m90yCXeTPnr4WFQIVKLYEaN7xwX2hk/lsxq Rr5o/aLH2+w66clIw8xT2NDAd+M2k8XZYGkhTEr4L25WDwTLau8qux8HgF8mEzx4eAvg WqEZbcS+iwJKdwSVmpKEI4RGK+IM6ZI5s8EyyOYk5CmSINdUgS0/kANQFVhgFoleJHNR ill+RQ+YICL8hCcjEjUXlsCR1I5kj4JExkkbQbJx/nGLa1ADvgh7QAZvcf4EcRepW3Uc cn6g== X-Gm-Message-State: ALyK8tKoGimUlXvLBRUZfrXdZo2ZY0TZcyf1AMvAdu9OQfBpYxO2fKWBeB/Nsow3iv4jAQ== X-Received: by 10.98.43.68 with SMTP id r65mr60166073pfr.148.1468977083695; Tue, 19 Jul 2016 18:11:23 -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 d1sm84277pas.48.2016.07.19.18.11.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jul 2016 18:11:23 -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-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Steve Longerbeam Subject: [PATCH v2 03/13] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize() Date: Tue, 19 Jul 2016 18:11:01 -0700 Message-Id: <1468977071-29240-4-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468977071-29240-1-git-send-email-steve_longerbeam@mentor.com> References: <1467932621-358-1-git-send-email-steve_longerbeam@mentor.com> <1468977071-29240-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 --- 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 48c8dc5..5d59739 100644 --- a/include/video/imx-ipu-v3.h +++ b/include/video/imx-ipu-v3.h @@ -197,6 +197,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,