Author: Jassi Brar <firstname.lastname@example.org>
AuthorDate: Tue May 18 11:59:06 2010 +0900
Committer: Ben Dooks <email@example.com>
CommitDate: Tue May 18 18:00:12 2010 +0900
S3C: DMA: Add api driver for PL330
Latest Samsung SoCs have one or more PL330 as their DMACs. This patch
implements the S3C DMA API for PL330 core driver.
The design has been kept as generic as possible while keeping effort to
add support for new SoCs to the minimum possible level.
Some of the salient features of this driver are:-
o Automatic scheduling of client requests onto DMAC if more than
one DMAC can reach the peripheral. Factors, such as current load
and number of exclusive but inactive peripherals that are
supported by the DMAC, are used to decide suitability of a DMAC
for a particular client.
o CIRCULAR buffer option is supported.
o The driver scales transparently with the number of DMACs and total
peripherals in the platform, since all peripherals are added to
the peripheral pool and DMACs to the controller pool.
For most conservative use of memory, smallest driver size and best
performance, we don't employ legacy data structures of the S3C DMA API.
That should not have any affect since those data structures are completely
invisible to the DMA clients.
Signed-off-by: Jassi Brar <firstname.lastname@example.org>
Signed-off-by: Ben Dooks <email@example.com>
arch/arm/plat-samsung/Kconfig | 6 +
arch/arm/plat-samsung/Makefile | 2 +
arch/arm/plat-samsung/include/plat/s3c-dma-pl330.h | 78 ++
.../plat-samsung/include/plat/s3c-pl330-pdata.h | 32 +
arch/arm/plat-samsung/s3c-pl330.c | 1224 ...