From patchwork Tue Jun 14 22:48:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9177141 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 87C506021C for ; Tue, 14 Jun 2016 22:53:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 788C828307 for ; Tue, 14 Jun 2016 22:53:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D8342833B; Tue, 14 Jun 2016 22:53:14 +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 B6E9D28338 for ; Tue, 14 Jun 2016 22:53:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752984AbcFNWvP (ORCPT ); Tue, 14 Jun 2016 18:51:15 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33439 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752274AbcFNWvH (ORCPT ); Tue, 14 Jun 2016 18:51:07 -0400 Received: by mail-pf0-f195.google.com with SMTP id c74so306098pfb.0 for ; Tue, 14 Jun 2016 15:51:06 -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=TZ+ncV/bSq/yxUQtp/oLK0wfg918vC8TbFSyUy5No+s=; b=ETUPCJziPiFWE+qcZNNl8YzC8O3CTdmxt6KlRoLWX1GhlVRVHUarHmoiH+i4UubNu8 cTDxtVQHLy/buHocj9I3yJEJbahpFYhDf8nRnsUv6t2m+uBZxRF3kvYTAdQ23bzkN51A BtZlKpepdbq4KScJKRmys2Tq3D/EHuC77i7vPEPR9fLS2j3bEVfqvOa39CILDd7sJPDd trxic1UscU7HK6E0B5I+SqLoHA5MhlivB00ffcpU2LYnXQTncF6uwE/rbDvuyxnWrUpO ugyjI0Apc5ToXqOJnWj1hGMM4WXAOA0O+Jf2pFuoWJmOFdNk9W2UVh9+wo0kAX5yt+Cq cw/g== 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=TZ+ncV/bSq/yxUQtp/oLK0wfg918vC8TbFSyUy5No+s=; b=ZhFfpGm7Wn0rldBRAGfnivFAO2SheHccM5subl/UnQOwM/OQvGEZe0ySHhQa6glndv 68XTum1v+LA3OJRqFFrTpQINgbBstjxeoHUopj0doNTWAQZlBvuA5dzOjXwaXxtGhAb8 cMhE8PG50aHzj7p+mnUkaCHIzTlaqXBRdg1/qFlg84ECwz73jHahvTaL3Ut61Ik/KZh4 7qToXLqY/ooUzvTMvsiQFDbK2IGUI4hnKCVfMXJz0PLCnAmAyJW1X/erpa/+HTQ2NId4 Uo9xFINcgFZYVuN6slRX/Buerwhl2O7suGuvKkrGS4kyYI6OXWqbd6gdx6bDsOd30oZq hYOQ== X-Gm-Message-State: ALyK8tK4E6FDg3rqTZeA/kCp/K1AGu+X687xocsVRSBfyiYcX17sykGVg0eNR9s8NgOHcA== X-Received: by 10.98.12.134 with SMTP id 6mr56872pfm.15.1465944666258; Tue, 14 Jun 2016 15:51:06 -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 v184sm47829999pfb.24.2016.06.14.15.51.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 15:51:05 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Steve Longerbeam Subject: [PATCH 03/38] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize() Date: Tue, 14 Jun 2016 15:48:59 -0700 Message-Id: <1465944574-15745-4-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465944574-15745-1-git-send-email-steve_longerbeam@mentor.com> References: <1465944574-15745-1-git-send-email-steve_longerbeam@mentor.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 904fd12..60540ead 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,