dmaengine: Add Freescale i.MX SDMA support
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 30 Sep 2010 13:56:34 +0000 (13:56 +0000)
committerDan Williams <dan.j.williams@intel.com>
Tue, 5 Oct 2010 22:49:26 +0000 (15:49 -0700)
commit1ec1e82f2510e2bdcb6268ed74aa79e1a7bc9594
treef274f0b9ff704416492fe420174e65b9b640eff2
parent6e3ecaf0ad49de0bed829d409a164e7107c02993
dmaengine: Add Freescale i.MX SDMA support

This patch adds support for the Freescale i.MX SDMA engine.

The SDMA engine is a scatter/gather DMA engine which is implemented
as a seperate coprocessor. SDMA needs its own firmware which is
requested using the standard request_firmware mechanism. The firmware
has different entry points for each peripheral type, so drivers
have to pass the peripheral type to the DMA engine which in turn
picks the correct firmware entry point from a table contained in
the firmware image itself.
The original Freescale code also supports support for transfering
data to the internal SRAM which needs different entry points to
the firmware. Support for this is currently not implemented. Also,
support for the ASRC (asymmetric sample rate converter) is skipped.

I took a very simple approach to implement dmaengine support. Only
a single descriptor is statically assigned to a each channel. This
means that transfers can't be queued up but only a single transfer
is in progress. This simplifies implementation a lot and is sufficient
for the usual device/memory transfers.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Linus Walleij <linus.ml.walleij@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/arm/mach-imx/include/mach/dma-v1.h
arch/arm/plat-mxc/include/mach/dma.h [new file with mode: 0644]
arch/arm/plat-mxc/include/mach/sdma.h [new file with mode: 0644]
drivers/dma/Kconfig
drivers/dma/Makefile
drivers/dma/imx-sdma.c [new file with mode: 0644]