Skip to contentSkip to conversation

Add PPC4xx DMA engine library

PATCH New Matt Porter 1 participant 1 message Aug 6, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add PPC4xx DMA engine library

Adds a cleaned up version of the PPC4xx DMA engine library. Converted to new DCR access method and DMA API.

arch/ppc/platforms/4xx/Kconfig +9 -0
diff -Nru a/arch/ppc/platforms/4xx/Kconfig b/arch/ppc/platforms/4xx/Kconfig
@@ -175,6 +175,15 @@
 	depends on ASH || BUBINGA || REDWOOD_5 || REDWOOD_6 || SYCAMORE || WALNUT
 	default y
 
+config PPC4xx_DMA
+	bool "PPC4xx DMA controller support"
+	depends on 4xx
+
+config PPC4xx_EDMA
+	bool
+	depends on !STB03xxx && PPC4xx_DMA
+	default y
+
 config PM
 	bool "Power Management support (EXPERIMENTAL)"
 	depends on 4xx && EXPERIMENTAL
arch/ppc/syslib/Makefile +2 -1
diff -Nru a/arch/ppc/syslib/Makefile b/arch/ppc/syslib/Makefile
@@ -25,7 +25,8 @@
 obj-$(CONFIG_4xx)		+= ppc4xx_pic.o
 obj-$(CONFIG_40x)		+= ppc4xx_setup.o
 obj-$(CONFIG_GEN_RTC)		+= todc_time.o
-obj-$(CONFIG_KGDB)		+= ppc4xx_kgdb.o
+obj-$(CONFIG_PPC4xx_DMA)	+= ppc4xx_dma.o
+obj-$(CONFIG_PPC4xx_EDMA)	+= ppc4xx_sgdma.o
 ifeq ($(CONFIG_40x),y)
 obj-$(CONFIG_KGDB)		+= ppc4xx_kgdb.o
 obj-$(CONFIG_PCI)		+= indirect_pci.o pci_auto.o ppc405_pci.o
arch/ppc/syslib/ppc4xx_dma.c +529 -397

1,000 lines not on this page · raw message

arch/ppc/syslib/ppc4xx_sgdma.c new file +455 -0

455 lines not on this page · raw message

include/asm-ppc/ppc405_dma.h deleted +0 -1271

1,271 lines not on this page · raw message

include/asm-ppc/ppc4xx_dma.h new file +570 -0

250 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.