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

Simon Glass sjg at chromium.org
Tue Nov 13 19:53:54 UTC 2018


On 10 November 2018 at 13:06, Grygorii Strashko
<grygorii.strashko at ti.com> wrote:
> From: Álvaro Fernández Rojas <noltari at 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 at konsulko.com>
> Signed-off-by: Álvaro Fernández Rojas <noltari at 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 at 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 at chromium.org>


More information about the U-Boot mailing list