All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Longerbeam <slongerbeam@gmail.com>
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 <steve_longerbeam@mentor.com>
Subject: [PATCH v3 02/12] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()
Date: Sun, 31 Jul 2016 12:42:17 -0700	[thread overview]
Message-ID: <1469994147-17549-3-git-send-email-steve_longerbeam@mentor.com> (raw)
In-Reply-To: <1469994147-17549-1-git-send-email-steve_longerbeam@mentor.com>

Adds ipu_cpmem_get_burstsize().

Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>

---

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,
-- 
1.9.1

WARNING: multiple messages have this Message-ID (diff)
From: Steve Longerbeam <slongerbeam@gmail.com>
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 <steve_longerbeam@mentor.com>
Subject: [PATCH v3 02/12] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()
Date: Sun, 31 Jul 2016 19:42:17 +0000	[thread overview]
Message-ID: <1469994147-17549-3-git-send-email-steve_longerbeam@mentor.com> (raw)
In-Reply-To: <1469994147-17549-1-git-send-email-steve_longerbeam@mentor.com>

Adds ipu_cpmem_get_burstsize().

Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>

---

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,
-- 
1.9.1


  parent reply	other threads:[~2016-07-31 19:44 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-31 19:42 [PATCH v3 00/12] IPUv3 prep for i.MX5/6 v4l2 staging drivers, v3 Steve Longerbeam
2016-07-31 19:42 ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 01/12] gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset() Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-08-01  9:13   ` Philipp Zabel
2016-08-01  9:13     ` Philipp Zabel
2016-08-01  9:13     ` Philipp Zabel
2016-08-01 20:15     ` Steve Longerbeam
2016-08-01 20:15       ` Steve Longerbeam
2016-08-01 20:15       ` Steve Longerbeam
2016-07-31 19:42 ` Steve Longerbeam [this message]
2016-07-31 19:42   ` [PATCH v3 02/12] gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize() Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 03/12] gpu: ipu-v3: Add ipu_get_num() Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 04/12] gpu: ipu-v3: Add VDI input IDMAC channels Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 05/12] gpu: ipu-v3: set correct full sensor frame for PAL/NTSC Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 06/12] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 07/12] gpu: ipu-v3: Fix IRT usage Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 08/12] gpu: ipu-v3: rename CSI client device Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 09/12] gpu: ipu-v3: Add Video Deinterlacer unit Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-08-01  9:13   ` Philipp Zabel
2016-08-01  9:13     ` Philipp Zabel
2016-08-01  9:13     ` Philipp Zabel
2016-08-01 21:02     ` Steve Longerbeam
2016-08-01 21:02       ` Steve Longerbeam
2016-08-01 21:02       ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 10/12] gpu: ipu-v3: Add FSU channel linking support Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-08-01  9:13   ` Philipp Zabel
2016-08-01  9:13     ` Philipp Zabel
2016-08-01 20:35     ` Steve Longerbeam
2016-08-01 20:35       ` Steve Longerbeam
2016-08-01 20:35       ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 11/12] gpu: ipu-ic: Add complete image conversion support with tiling Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-07-31 19:42 ` [PATCH v3 12/12] gpu: ipu-ic: allow multiple handles to ic Steve Longerbeam
2016-07-31 19:42   ` Steve Longerbeam
2016-07-31 19:55 ` [PATCH v3 00/12] IPUv3 prep for i.MX5/6 v4l2 staging drivers, v3 Steve Longerbeam
2016-07-31 19:55   ` Steve Longerbeam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1469994147-17549-3-git-send-email-steve_longerbeam@mentor.com \
    --to=slongerbeam@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=plagnioj@jcrosoft.com \
    --cc=steve_longerbeam@mentor.com \
    --cc=tomi.valkeinen@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.