summaryrefslogtreecommitdiff
path: root/include/dma-uclass.h
AgeCommit message (Collapse)Author
2018-12-07dma: add channels supportÁlvaro Fernández Rojas
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 <[email protected]> Signed-off-by: Álvaro Fernández Rojas <[email protected]> [[email protected]: 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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2018-12-07dma: move dma_ops to dma-uclass.hÁ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 <[email protected]> Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Álvaro Fernández Rojas <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]>