diff options
| -rw-r--r-- | drivers/gpu/ipu-v3/ipu-cpmem.c | 6 | ||||
| -rw-r--r-- | include/video/imx-ipu-v3.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-cpmem.c b/drivers/gpu/ipu-v3/ipu-cpmem.c index a36c35e04a6d..fcb7dc86167b 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) | |||
| 275 | } | 275 | } |
| 276 | EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id); | 276 | EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id); |
| 277 | 277 | ||
| 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 | |||
| 278 | void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize) | 284 | void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize) |
| 279 | { | 285 | { |
| 280 | ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1); | 286 | 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 69c86585452a..8c4312ddc46c 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); | |||
| 187 | void ipu_cpmem_set_uv_offset(struct ipuv3_channel *ch, u32 u_off, u32 v_off); | 187 | void ipu_cpmem_set_uv_offset(struct ipuv3_channel *ch, u32 u_off, u32 v_off); |
| 188 | void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride); | 188 | void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride); |
| 189 | void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id); | 189 | void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id); |
| 190 | int ipu_cpmem_get_burstsize(struct ipuv3_channel *ch); | ||
| 190 | void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize); | 191 | void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize); |
| 191 | void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch); | 192 | void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch); |
| 192 | void ipu_cpmem_set_rotation(struct ipuv3_channel *ch, | 193 | void ipu_cpmem_set_rotation(struct ipuv3_channel *ch, |
