Skip to content

Commit b1574ea

Browse files
committed
dmaengine: add BCM2708 DMA support
This driver provides only DMA_CYCLIC mode. Signed-off-by: Florian Meier <[email protected]>
1 parent 6689589 commit b1574ea

File tree

5 files changed

+730
-0
lines changed

5 files changed

+730
-0
lines changed

arch/arm/mach-bcm2708/include/mach/dma.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
#define BCM2708_DMA_ADDR 0x04
4646
/* the current control block appears in the following registers - read only */
4747
#define BCM2708_DMA_INFO 0x08
48+
#define BCM2708_DMA_SOURCE_AD 0x0c
49+
#define BCM2708_DMA_DEST_AD 0x10
4850
#define BCM2708_DMA_NEXTCB 0x1C
4951
#define BCM2708_DMA_DEBUG 0x20
5052

drivers/dma/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ config DMA_OMAP
313313
select DMA_ENGINE
314314
select DMA_VIRTUAL_CHANNELS
315315

316+
config DMA_BCM2708
317+
tristate "BCM2708 DMA engine support"
318+
depends on MACH_BCM2708
319+
select DMA_ENGINE
320+
select DMA_VIRTUAL_CHANNELS
321+
316322
config MMP_PDMA
317323
bool "MMP PDMA support"
318324
depends on (ARCH_MMP || ARCH_PXA)

drivers/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ obj-$(CONFIG_EP93XX_DMA) += ep93xx_dma.o
3333
obj-$(CONFIG_DMA_SA11X0) += sa11x0-dma.o
3434
obj-$(CONFIG_MMP_TDMA) += mmp_tdma.o
3535
obj-$(CONFIG_DMA_OMAP) += omap-dma.o
36+
obj-$(CONFIG_DMA_BCM2708) += bcm2708-dmaengine.o
3637
obj-$(CONFIG_MMP_PDMA) += mmp_pdma.o

0 commit comments

Comments
 (0)