Skip to content

Commit 0308591

Browse files
slongerbeampH5
authored andcommitted
gpu: ipu-cpmem: Add ipu_cpmem_get_burstsize()
Adds ipu_cpmem_get_burstsize(). Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
1 parent e5e8690 commit 0308591

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/gpu/ipu-v3/ipu-cpmem.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@ void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id)
275275
}
276276
EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id);
277277

278+
int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch)
279+
{
280+
return ipu_ch_param_read_field(ch, IPU_FIELD_NPB) + 1;
281+
}
282+
EXPORT_SYMBOL_GPL(ipu_cpmem_get_burstsize);
283+
278284
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize)
279285
{
280286
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1);

‎include/video/imx-ipu-v3.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf);
187187
void ipu_cpmem_set_uv_offset(struct ipuv3_channel *ch, u32 u_off, u32 v_off);
188188
void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride);
189189
void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id);
190+
int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch);
190191
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize);
191192
void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch);
192193
void ipu_cpmem_set_rotation(struct ipuv3_channel *ch,

0 commit comments

Comments
 (0)