[U-Boot] [PATCH v7 2/5] dma: add channels support

Simon Glass
2018-11-13T19:53:54Z

On 10 November 2018 at 13:06, Grygorii Strashko
<grygorii.strashko@ti.com> wrote:
> From: Álvaro Fernández Rojas <noltari@gmail.com>
>
> This adds channels support for dma controllers that have multiple channels
> which can transfer data to/from different devices (enet, usb...).
>
> DMA channle API:
> dma_get_by_index()
> dma_get_by_name()
> dma_request()
> dma_free()
> dma_enable()
> dma_disable()
> dma_prepare_rcv_buf()
> dma_receive()
> dma_send()
>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
> [grygorii.strashko at ti.com: drop unused dma_get_by_index_platdata(),
> add metadata to send/receive ops, add dma_prepare_rcv_buf(),
> minor clean up]
> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
> ---
> drivers/dma/Kconfig | 7 ++
> drivers/dma/dma-uclass.c | 181 ++++++++++++++++++++++++++++++++-
> include/dma-uclass.h | 91 ++++++++++++++++-
> include/dma.h | 260 ++++++++++++++++++++++++++++++++++++++++++++++-
> 4 files changed, 532 insertions(+), 7 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>