mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
dma: ti: k3-udma: Switch to exposed ring mode
Exposed ring mode works well with 32 bit and 64 bit cores without need for Proxies for 32 bit cores. Therefore switch to exposed ring mode. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
c16cdd4247
commit
ce1a307358
1 changed files with 2 additions and 2 deletions
|
@ -781,7 +781,7 @@ static int udma_alloc_tx_resources(struct udma_chan *uc)
|
||||||
memset(&ring_cfg, 0, sizeof(ring_cfg));
|
memset(&ring_cfg, 0, sizeof(ring_cfg));
|
||||||
ring_cfg.size = 16;
|
ring_cfg.size = 16;
|
||||||
ring_cfg.elm_size = K3_NAV_RINGACC_RING_ELSIZE_8;
|
ring_cfg.elm_size = K3_NAV_RINGACC_RING_ELSIZE_8;
|
||||||
ring_cfg.mode = K3_NAV_RINGACC_RING_MODE_MESSAGE;
|
ring_cfg.mode = K3_NAV_RINGACC_RING_MODE_RING;
|
||||||
|
|
||||||
ret = k3_nav_ringacc_ring_cfg(uc->tchan->t_ring, &ring_cfg);
|
ret = k3_nav_ringacc_ring_cfg(uc->tchan->t_ring, &ring_cfg);
|
||||||
ret |= k3_nav_ringacc_ring_cfg(uc->tchan->tc_ring, &ring_cfg);
|
ret |= k3_nav_ringacc_ring_cfg(uc->tchan->tc_ring, &ring_cfg);
|
||||||
|
@ -858,7 +858,7 @@ static int udma_alloc_rx_resources(struct udma_chan *uc)
|
||||||
memset(&ring_cfg, 0, sizeof(ring_cfg));
|
memset(&ring_cfg, 0, sizeof(ring_cfg));
|
||||||
ring_cfg.size = 16;
|
ring_cfg.size = 16;
|
||||||
ring_cfg.elm_size = K3_NAV_RINGACC_RING_ELSIZE_8;
|
ring_cfg.elm_size = K3_NAV_RINGACC_RING_ELSIZE_8;
|
||||||
ring_cfg.mode = K3_NAV_RINGACC_RING_MODE_MESSAGE;
|
ring_cfg.mode = K3_NAV_RINGACC_RING_MODE_RING;
|
||||||
|
|
||||||
ret = k3_nav_ringacc_ring_cfg(uc->rchan->fd_ring, &ring_cfg);
|
ret = k3_nav_ringacc_ring_cfg(uc->rchan->fd_ring, &ring_cfg);
|
||||||
ret |= k3_nav_ringacc_ring_cfg(uc->rchan->r_ring, &ring_cfg);
|
ret |= k3_nav_ringacc_ring_cfg(uc->rchan->r_ring, &ring_cfg);
|
||||||
|
|
Loading…
Reference in a new issue