Merge tag 'dmaengine-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul...
[platform/kernel/linux-rpi.git] / drivers / dma / ti / k3-udma.c
index b8329a2..eb4dc5f 100644 (file)
@@ -4308,6 +4308,15 @@ static struct udma_soc_data am62a_dmss_csi_soc_data = {
        },
 };
 
+static struct udma_soc_data j721s2_bcdma_csi_soc_data = {
+       .oes = {
+               .bcdma_tchan_data = 0x800,
+               .bcdma_tchan_ring = 0xa00,
+               .bcdma_rchan_data = 0xe00,
+               .bcdma_rchan_ring = 0x1000,
+       },
+};
+
 static struct udma_match_data am62a_bcdma_csirx_data = {
        .type = DMA_TYPE_BCDMA,
        .psil_base = 0x3100,
@@ -4346,6 +4355,18 @@ static struct udma_match_data am64_pktdma_data = {
        },
 };
 
+static struct udma_match_data j721s2_bcdma_csi_data = {
+       .type = DMA_TYPE_BCDMA,
+       .psil_base = 0x2000,
+       .enable_memcpy_support = false,
+       .burst_size = {
+               TI_SCI_RM_UDMAP_CHAN_BURST_SIZE_64_BYTES, /* Normal Channels */
+               0, /* No H Channels */
+               0, /* No UH Channels */
+       },
+       .soc_data = &j721s2_bcdma_csi_soc_data,
+};
+
 static const struct of_device_id udma_of_match[] = {
        {
                .compatible = "ti,am654-navss-main-udmap",
@@ -4373,6 +4394,10 @@ static const struct of_device_id udma_of_match[] = {
                .compatible = "ti,am62a-dmss-bcdma-csirx",
                .data = &am62a_bcdma_csirx_data,
        },
+       {
+               .compatible = "ti,j721s2-dmss-bcdma-csi",
+               .data = &j721s2_bcdma_csi_data,
+       },
        { /* Sentinel */ },
 };