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@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> Reviewed-by: Simon Glass <sjg@chromium.org>
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
menu "DMA Support"
|
|
|
|
config DMA
|
|
bool "Enable Driver Model for DMA drivers"
|
|
depends on DM
|
|
help
|
|
Enable driver model for DMA. DMA engines can do
|
|
asynchronous data transfers without involving the host
|
|
CPU. Currently, this framework can be used to offload
|
|
memory copies to and from devices like qspi, ethernet
|
|
etc Drivers provide methods to access the DMA devices
|
|
buses that is used to transfer data to and from memory.
|
|
The uclass interface is defined in include/dma.h.
|
|
|
|
config DMA_CHANNELS
|
|
bool "Enable DMA channels support"
|
|
depends on DMA
|
|
help
|
|
Enable channels support for DMA. Some DMA controllers have multiple
|
|
channels which can either transfer data to/from different devices.
|
|
|
|
config TI_EDMA3
|
|
bool "TI EDMA3 driver"
|
|
help
|
|
Enable the TI EDMA3 driver for DRA7xx and AM43xx evms.
|
|
This driver support data transfer between memory
|
|
regions.
|
|
|
|
config APBH_DMA
|
|
bool "Support APBH DMA"
|
|
depends on MX23 || MX28 || MX6 || MX7
|
|
help
|
|
Enable APBH DMA driver.
|
|
|
|
if APBH_DMA
|
|
config APBH_DMA_BURST
|
|
bool "Enable DMA BURST"
|
|
|
|
config APBH_DMA_BURST8
|
|
bool "Enable DMA BURST8"
|
|
|
|
endif
|
|
|
|
endmenu # menu "DMA Support"
|