mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-17 14:30:00 +00:00
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>
This commit is contained in:
parent
e5e8690ff0
commit
03085911d7
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user