Skip to content

Commit ceb434d

Browse files
vaishnavachathvinodkoul
authored andcommitted
dmaengine: ti: k3-udma: Add support for J721S2 CSI BCDMA instance
J721S2 has dedicated BCDMA instance for Camera Serial Interface RX and TX. The BCDMA instance supports RX and TX channels but block copy channels are not present, add support for the same. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com> Link: https://lore.kernel.org/r/20230505143929.28131-3-vaishnav.a@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 6de80a0 commit ceb434d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

drivers/dma/ti/k3-udma.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4308,6 +4308,15 @@ static struct udma_soc_data am62a_dmss_csi_soc_data = {
43084308
},
43094309
};
43104310

4311+
static struct udma_soc_data j721s2_bcdma_csi_soc_data = {
4312+
.oes = {
4313+
.bcdma_tchan_data = 0x800,
4314+
.bcdma_tchan_ring = 0xa00,
4315+
.bcdma_rchan_data = 0xe00,
4316+
.bcdma_rchan_ring = 0x1000,
4317+
},
4318+
};
4319+
43114320
static struct udma_match_data am62a_bcdma_csirx_data = {
43124321
.type = DMA_TYPE_BCDMA,
43134322
.psil_base = 0x3100,
@@ -4346,6 +4355,18 @@ static struct udma_match_data am64_pktdma_data = {
43464355
},
43474356
};
43484357

4358+
static struct udma_match_data j721s2_bcdma_csi_data = {
4359+
.type = DMA_TYPE_BCDMA,
4360+
.psil_base = 0x2000,
4361+
.enable_memcpy_support = false,
4362+
.burst_size = {
4363+
TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_64_BYTES, /* Normal Channels */
4364+
0, /* No H Channels */
4365+
0, /* No UH Channels */
4366+
},
4367+
.soc_data = &j721s2_bcdma_csi_soc_data,
4368+
};
4369+
43494370
static const struct of_device_id udma_of_match[] = {
43504371
{
43514372
.compatible = "ti,am654-navss-main-udmap",
@@ -4373,6 +4394,10 @@ static const struct of_device_id udma_of_match[] = {
43734394
.compatible = "ti,am62a-dmss-bcdma-csirx",
43744395
.data = &am62a_bcdma_csirx_data,
43754396
},
4397+
{
4398+
.compatible = "ti,j721s2-dmss-bcdma-csi",
4399+
.data = &j721s2_bcdma_csi_data,
4400+
},
43764401
{ /* Sentinel */ },
43774402
};
43784403

0 commit comments

Comments
 (0)