Skip to contentSkip to conversation

dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)

PATCH Superseded Angelo Dureghello 1 participant 1 message Jun 22, 2018

Subsystems (2)

v5 of 10 Superseded Latest is v10 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/2 dmaengine: fsl-edma: extract common fsl-edma code (no changes in behavior intended)

This patch adds a new fsl-edma-common module to allow new mcf-edma module code to use most of the fsl-edma code.

Due to some differences between ColdFire edma (64 channels) and fsl-edma (32 channels), as register set offsets and some other points as the different interrupt organization and other minor things, a common module can collect most of the code for both 32 and 64 channel edma module versions.

---
Changes for v2:
- patch splitted into 4
- add fsl-edma-common module

Changes for v3:
none

Changes for v4:
- patch simplified from 4/4 into 2/2
- collecting all the fsl-edma-related changes

Changes for v5:
- add EXPORT_SYMBOL_GPL for all common functions

---
 drivers/dma/Makefile          |   2 +-
 drivers/dma/fsl-edma-common.c | 683 +++++++++++++++++++++++++++++++
 drivers/dma/fsl-edma-common.h | 175 ++++++++
 drivers/dma/fsl-edma.c        | 739 ++--------------------------------
 4 files changed, 889 insertions(+), 710 deletions(-)
 create mode 100644 drivers/dma/fsl-edma-common.c
 create mode 100644 drivers/dma/fsl-edma-common.h
drivers/dma/Makefile +1 -1
index 203a99d68315..66022f59fca4 100644
@@ -31,7 +31,7 @@ obj-$(CONFIG_DW_AXI_DMAC) += dw-axi-dmac/
 obj-$(CONFIG_DW_DMAC_CORE) += dw/
 obj-$(CONFIG_EP93XX_DMA) += ep93xx_dma.o
 obj-$(CONFIG_FSL_DMA) += fsldma.o
-obj-$(CONFIG_FSL_EDMA) += fsl-edma.o
+obj-$(CONFIG_FSL_EDMA) += fsl-edma.o fsl-edma-common.o
 obj-$(CONFIG_FSL_RAID) += fsl_raid.o
 obj-$(CONFIG_HSU_DMA) += hsu/
 obj-$(CONFIG_IMG_MDC_DMA) += img-mdc-dma.o
drivers/dma/fsl-edma-common.c new file +683 -0

683 lines not on this page · raw message

drivers/dma/fsl-edma-common.h new file +175 -0

175 lines not on this page · raw message

drivers/dma/fsl-edma.c +30 -709

875 lines not on this page · raw message