07 Dec, 2018

2 commits

  • 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
    Signed-off-by: Álvaro Fernández Rojas
    [grygorii.strashko@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
    Reviewed-by: Simon Glass

    Álvaro Fernández Rojas
     
  • Move dma_ops to a separate header file, following other uclass
    implementations. While doing so, this patch also improves dma_ops
    documentation.

    Reviewed-by: Tom Rini
    Reviewed-by: Simon Glass
    Signed-off-by: Álvaro Fernández Rojas
    Signed-off-by: Grygorii Strashko

    Álvaro Fernández Rojas