Skip to content

Commit 9cade1a

Browse files
andy-shevVinod Koul
authored andcommitted
dma: dw: split driver to library part and platform code
To simplify the driver development let's split driver to library and platform code parts. It helps us to add PCI driver in future. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> [Fixed compile error and few checkpatch issues] Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 61a7649 commit 9cade1a

File tree

7 files changed

+436
-279
lines changed

7 files changed

+436
-279
lines changed

drivers/dma/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ obj-$(CONFIG_FSL_DMA) += fsldma.o
1515
obj-$(CONFIG_MPC512X_DMA) += mpc512x_dma.o
1616
obj-$(CONFIG_PPC_BESTCOMM) += bestcomm/
1717
obj-$(CONFIG_MV_XOR) += mv_xor.o
18-
obj-$(CONFIG_DW_DMAC) += dw/
18+
obj-$(CONFIG_DW_DMAC_CORE) += dw/
1919
obj-$(CONFIG_AT_HDMAC) += at_hdmac.o
2020
obj-$(CONFIG_MX3_IPU) += ipu/
2121
obj-$(CONFIG_TXX9_DMAC) += txx9dmac.o

drivers/dma/dw/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
# DMA engine configuration for dw
33
#
44

5-
config DW_DMAC
5+
config DW_DMAC_CORE
66
tristate "Synopsys DesignWare AHB DMA support"
77
depends on GENERIC_HARDIRQS
88
select DMA_ENGINE
9+
10+
config DW_DMAC
11+
tristate "Synopsys DesignWare AHB DMA platform driver"
12+
select DW_DMAC_CORE
913
default y if CPU_AT32AP7000
1014
help
1115
Support the Synopsys DesignWare AHB DMA controller. This
@@ -14,7 +18,7 @@ config DW_DMAC
1418
config DW_DMAC_BIG_ENDIAN_IO
1519
bool "Use big endian I/O register access"
1620
default y if AVR32
17-
depends on DW_DMAC
21+
depends on DW_DMAC_CORE
1822
help
1923
Say yes here to use big endian I/O access when reading and writing
2024
to the DMA controller registers. This is needed on some platforms,

drivers/dma/dw/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
obj-$(CONFIG_DW_DMAC) += dw_dmac.o
1+
obj-$(CONFIG_DW_DMAC_CORE) += dw_dmac_core.o
2+
dw_dmac_core-objs := core.o
3+
4+
obj-$(CONFIG_DW_DMAC) += dw_dmac.o
5+
dw_dmac-objs := platform.o

0 commit comments

Comments
 (0)