diff options
author | Vinod Koul <vkoul@kernel.org> | 2018-06-04 00:59:16 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-06-04 00:59:16 -0400 |
commit | f1e3b4ce3a6d786abd73efc418658d61a0c45962 (patch) | |
tree | c0e500562fec7857e393aeb5bafbc6d08405c3e3 | |
parent | d97594f16c9f30ba94e6f575b2bb92bb0aa88dd2 (diff) | |
parent | d88b1397c674178e595319fab4a3cd434c915639 (diff) |
Merge branch 'topic/ti' into for-linus
-rw-r--r-- | drivers/dma/Kconfig | 31 | ||||
-rw-r--r-- | drivers/dma/Makefile | 5 | ||||
-rw-r--r-- | drivers/dma/ti/Kconfig | 37 | ||||
-rw-r--r-- | drivers/dma/ti/Makefile | 5 | ||||
-rw-r--r-- | drivers/dma/ti/cppi41.c (renamed from drivers/dma/cppi41.c) | 2 | ||||
-rw-r--r-- | drivers/dma/ti/dma-crossbar.c (renamed from drivers/dma/ti-dma-crossbar.c) | 0 | ||||
-rw-r--r-- | drivers/dma/ti/edma.c (renamed from drivers/dma/edma.c) | 4 | ||||
-rw-r--r-- | drivers/dma/ti/omap-dma.c (renamed from drivers/dma/omap-dma.c) | 2 |
8 files changed, 49 insertions, 37 deletions
diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 6d61cd023633..ca1680afa20a 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig | |||
@@ -151,13 +151,6 @@ config DMA_JZ4780 | |||
151 | If you have a board based on such a SoC and wish to use DMA for | 151 | If you have a board based on such a SoC and wish to use DMA for |
152 | devices which can use the DMA controller, say Y or M here. | 152 | devices which can use the DMA controller, say Y or M here. |
153 | 153 | ||
154 | config DMA_OMAP | ||
155 | tristate "OMAP DMA support" | ||
156 | depends on ARCH_OMAP || COMPILE_TEST | ||
157 | select DMA_ENGINE | ||
158 | select DMA_VIRTUAL_CHANNELS | ||
159 | select TI_DMA_CROSSBAR if (SOC_DRA7XX || COMPILE_TEST) | ||
160 | |||
161 | config DMA_SA11X0 | 154 | config DMA_SA11X0 |
162 | tristate "SA-11x0 DMA support" | 155 | tristate "SA-11x0 DMA support" |
163 | depends on ARCH_SA1100 || COMPILE_TEST | 156 | depends on ARCH_SA1100 || COMPILE_TEST |
@@ -574,28 +567,6 @@ config TIMB_DMA | |||
574 | help | 567 | help |
575 | Enable support for the Timberdale FPGA DMA engine. | 568 | Enable support for the Timberdale FPGA DMA engine. |
576 | 569 | ||
577 | config TI_CPPI41 | ||
578 | tristate "CPPI 4.1 DMA support" | ||
579 | depends on (ARCH_OMAP || ARCH_DAVINCI_DA8XX) | ||
580 | select DMA_ENGINE | ||
581 | help | ||
582 | The Communications Port Programming Interface (CPPI) 4.1 DMA engine | ||
583 | is currently used by the USB driver on AM335x and DA8xx platforms. | ||
584 | |||
585 | config TI_DMA_CROSSBAR | ||
586 | bool | ||
587 | |||
588 | config TI_EDMA | ||
589 | bool "TI EDMA support" | ||
590 | depends on ARCH_DAVINCI || ARCH_OMAP || ARCH_KEYSTONE || COMPILE_TEST | ||
591 | select DMA_ENGINE | ||
592 | select DMA_VIRTUAL_CHANNELS | ||
593 | select TI_DMA_CROSSBAR if (ARCH_OMAP || COMPILE_TEST) | ||
594 | default n | ||
595 | help | ||
596 | Enable support for the TI EDMA controller. This DMA | ||
597 | engine is found on TI DaVinci and AM33xx parts. | ||
598 | |||
599 | config XGENE_DMA | 570 | config XGENE_DMA |
600 | tristate "APM X-Gene DMA support" | 571 | tristate "APM X-Gene DMA support" |
601 | depends on ARCH_XGENE || COMPILE_TEST | 572 | depends on ARCH_XGENE || COMPILE_TEST |
@@ -653,6 +624,8 @@ source "drivers/dma/hsu/Kconfig" | |||
653 | 624 | ||
654 | source "drivers/dma/sh/Kconfig" | 625 | source "drivers/dma/sh/Kconfig" |
655 | 626 | ||
627 | source "drivers/dma/ti/Kconfig" | ||
628 | |||
656 | # clients | 629 | # clients |
657 | comment "DMA Clients" | 630 | comment "DMA Clients" |
658 | depends on DMA_ENGINE | 631 | depends on DMA_ENGINE |
diff --git a/drivers/dma/Makefile b/drivers/dma/Makefile index 0f62a4d49aab..203a99d68315 100644 --- a/drivers/dma/Makefile +++ b/drivers/dma/Makefile | |||
@@ -24,7 +24,6 @@ obj-$(CONFIG_COH901318) += coh901318.o coh901318_lli.o | |||
24 | obj-$(CONFIG_DMA_BCM2835) += bcm2835-dma.o | 24 | obj-$(CONFIG_DMA_BCM2835) += bcm2835-dma.o |
25 | obj-$(CONFIG_DMA_JZ4740) += dma-jz4740.o | 25 | obj-$(CONFIG_DMA_JZ4740) += dma-jz4740.o |
26 | obj-$(CONFIG_DMA_JZ4780) += dma-jz4780.o | 26 | obj-$(CONFIG_DMA_JZ4780) += dma-jz4780.o |
27 | obj-$(CONFIG_DMA_OMAP) += omap-dma.o | ||
28 | obj-$(CONFIG_DMA_SA11X0) += sa11x0-dma.o | 27 | obj-$(CONFIG_DMA_SA11X0) += sa11x0-dma.o |
29 | obj-$(CONFIG_DMA_SUN4I) += sun4i-dma.o | 28 | obj-$(CONFIG_DMA_SUN4I) += sun4i-dma.o |
30 | obj-$(CONFIG_DMA_SUN6I) += sun6i-dma.o | 29 | obj-$(CONFIG_DMA_SUN6I) += sun6i-dma.o |
@@ -69,13 +68,11 @@ obj-$(CONFIG_TXX9_DMAC) += txx9dmac.o | |||
69 | obj-$(CONFIG_TEGRA20_APB_DMA) += tegra20-apb-dma.o | 68 | obj-$(CONFIG_TEGRA20_APB_DMA) += tegra20-apb-dma.o |
70 | obj-$(CONFIG_TEGRA210_ADMA) += tegra210-adma.o | 69 | obj-$(CONFIG_TEGRA210_ADMA) += tegra210-adma.o |
71 | obj-$(CONFIG_TIMB_DMA) += timb_dma.o | 70 | obj-$(CONFIG_TIMB_DMA) += timb_dma.o |
72 | obj-$(CONFIG_TI_CPPI41) += cppi41.o | ||
73 | obj-$(CONFIG_TI_DMA_CROSSBAR) += ti-dma-crossbar.o | ||
74 | obj-$(CONFIG_TI_EDMA) += edma.o | ||
75 | obj-$(CONFIG_XGENE_DMA) += xgene-dma.o | 71 | obj-$(CONFIG_XGENE_DMA) += xgene-dma.o |
76 | obj-$(CONFIG_ZX_DMA) += zx_dma.o | 72 | obj-$(CONFIG_ZX_DMA) += zx_dma.o |
77 | obj-$(CONFIG_ST_FDMA) += st_fdma.o | 73 | obj-$(CONFIG_ST_FDMA) += st_fdma.o |
78 | 74 | ||
79 | obj-y += mediatek/ | 75 | obj-y += mediatek/ |
80 | obj-y += qcom/ | 76 | obj-y += qcom/ |
77 | obj-y += ti/ | ||
81 | obj-y += xilinx/ | 78 | obj-y += xilinx/ |
diff --git a/drivers/dma/ti/Kconfig b/drivers/dma/ti/Kconfig new file mode 100644 index 000000000000..e5e74e1361dc --- /dev/null +++ b/drivers/dma/ti/Kconfig | |||
@@ -0,0 +1,37 @@ | |||
1 | # | ||
2 | # Texas Instruments DMA drivers | ||
3 | # | ||
4 | |||
5 | config TI_CPPI41 | ||
6 | tristate "Texas Instruments CPPI 4.1 DMA support" | ||
7 | depends on (ARCH_OMAP || ARCH_DAVINCI_DA8XX) | ||
8 | select DMA_ENGINE | ||
9 | help | ||
10 | The Communications Port Programming Interface (CPPI) 4.1 DMA engine | ||
11 | is currently used by the USB driver on AM335x and DA8xx platforms. | ||
12 | |||
13 | config TI_EDMA | ||
14 | tristate "Texas Instruments EDMA support" | ||
15 | depends on ARCH_DAVINCI || ARCH_OMAP || ARCH_KEYSTONE || COMPILE_TEST | ||
16 | select DMA_ENGINE | ||
17 | select DMA_VIRTUAL_CHANNELS | ||
18 | select TI_DMA_CROSSBAR if (ARCH_OMAP || COMPILE_TEST) | ||
19 | default y | ||
20 | help | ||
21 | Enable support for the TI EDMA (Enhanced DMA) controller. This DMA | ||
22 | engine is found on TI DaVinci, AM33xx, AM43xx, DRA7xx and Keystone 2 | ||
23 | parts. | ||
24 | |||
25 | config DMA_OMAP | ||
26 | tristate "Texas Instruments sDMA (omap-dma) support" | ||
27 | depends on ARCH_OMAP || COMPILE_TEST | ||
28 | select DMA_ENGINE | ||
29 | select DMA_VIRTUAL_CHANNELS | ||
30 | select TI_DMA_CROSSBAR if (SOC_DRA7XX || COMPILE_TEST) | ||
31 | default y | ||
32 | help | ||
33 | Enable support for the TI sDMA (System DMA or DMA4) controller. This | ||
34 | DMA engine is found on OMAP and DRA7xx parts. | ||
35 | |||
36 | config TI_DMA_CROSSBAR | ||
37 | bool | ||
diff --git a/drivers/dma/ti/Makefile b/drivers/dma/ti/Makefile new file mode 100644 index 000000000000..113e59ec9c32 --- /dev/null +++ b/drivers/dma/ti/Makefile | |||
@@ -0,0 +1,5 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | ||
2 | obj-$(CONFIG_TI_CPPI41) += cppi41.o | ||
3 | obj-$(CONFIG_TI_EDMA) += edma.o | ||
4 | obj-$(CONFIG_DMA_OMAP) += omap-dma.o | ||
5 | obj-$(CONFIG_TI_DMA_CROSSBAR) += dma-crossbar.o | ||
diff --git a/drivers/dma/cppi41.c b/drivers/dma/ti/cppi41.c index d9bee65a18a4..1497da367710 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/ti/cppi41.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
12 | #include <linux/of_address.h> | 12 | #include <linux/of_address.h> |
13 | #include <linux/pm_runtime.h> | 13 | #include <linux/pm_runtime.h> |
14 | #include "dmaengine.h" | 14 | #include "../dmaengine.h" |
15 | 15 | ||
16 | #define DESC_TYPE 27 | 16 | #define DESC_TYPE 27 |
17 | #define DESC_TYPE_HOST 0x10 | 17 | #define DESC_TYPE_HOST 0x10 |
diff --git a/drivers/dma/ti-dma-crossbar.c b/drivers/dma/ti/dma-crossbar.c index 9272b173c746..9272b173c746 100644 --- a/drivers/dma/ti-dma-crossbar.c +++ b/drivers/dma/ti/dma-crossbar.c | |||
diff --git a/drivers/dma/edma.c b/drivers/dma/ti/edma.c index 85ea92fcea54..93a5cbf13319 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/ti/edma.c | |||
@@ -33,8 +33,8 @@ | |||
33 | 33 | ||
34 | #include <linux/platform_data/edma.h> | 34 | #include <linux/platform_data/edma.h> |
35 | 35 | ||
36 | #include "dmaengine.h" | 36 | #include "../dmaengine.h" |
37 | #include "virt-dma.h" | 37 | #include "../virt-dma.h" |
38 | 38 | ||
39 | /* Offsets matching "struct edmacc_param" */ | 39 | /* Offsets matching "struct edmacc_param" */ |
40 | #define PARM_OPT 0x00 | 40 | #define PARM_OPT 0x00 |
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/ti/omap-dma.c index d21c19822feb..b73fb51fbc81 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/ti/omap-dma.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/of_dma.h> | 21 | #include <linux/of_dma.h> |
22 | #include <linux/of_device.h> | 22 | #include <linux/of_device.h> |
23 | 23 | ||
24 | #include "virt-dma.h" | 24 | #include "../virt-dma.h" |
25 | 25 | ||
26 | #define OMAP_SDMA_REQUESTS 127 | 26 | #define OMAP_SDMA_REQUESTS 127 |
27 | #define OMAP_SDMA_CHANNELS 32 | 27 | #define OMAP_SDMA_CHANNELS 32 |