gpu: ipu-cpmem: Add ipu_cpmem_set_axi_id()
Adds ipu_cpmem_set_axi_id() to set which AXI bus master the channel will use to transfer data onto AXI bus. Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:

gecommit door
Philipp Zabel

bovenliggende
9b9da0be37
commit
555f0e6690
@@ -254,6 +254,13 @@ void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride)
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(ipu_cpmem_interlaced_scan);
|
||||
|
||||
void ipu_cpmem_set_axi_id(struct ipuv3_channel *ch, u32 id)
|
||||
{
|
||||
id &= 0x3;
|
||||
ipu_ch_param_write_field(ch, IPU_FIELD_ID, id);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ipu_cpmem_set_axi_id);
|
||||
|
||||
void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize)
|
||||
{
|
||||
ipu_ch_param_write_field(ch, IPU_FIELD_NPB, burstsize - 1);
|
||||
|
Verwijs in nieuw issue
Block a user