xref: /linux/drivers/dma/Kconfig (revision 20bed0d6ff62d985fe8222958825504b8aad4e88)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# DMA engine configuration
4#
5
6menuconfig DMADEVICES
7	bool "DMA Engine support"
8	depends on HAS_DMA
9	help
10	  DMA engines can do asynchronous data transfers without
11	  involving the host CPU.  Currently, this framework can be
12	  used to offload memory copies in the network stack and
13	  RAID operations in the MD driver.  This menu only presents
14	  DMA Device drivers supported by the configured arch, it may
15	  be empty in some cases.
16
17config DMADEVICES_DEBUG
18	bool "DMA Engine debugging"
19	depends on DMADEVICES != n
20	help
21	  This is an option for use by developers; most people should
22	  say N here.  This enables DMA engine core and driver debugging.
23
24config DMADEVICES_VDEBUG
25	bool "DMA Engine verbose debugging"
26	depends on DMADEVICES_DEBUG != n
27	help
28	  This is an option for use by developers; most people should
29	  say N here.  This enables deeper (more verbose) debugging of
30	  the DMA engine core and drivers.
31
32
33if DMADEVICES
34
35comment "DMA Devices"
36
37#core
38config ASYNC_TX_ENABLE_CHANNEL_SWITCH
39	bool
40
41config ARCH_HAS_ASYNC_TX_FIND_CHANNEL
42	bool
43
44config DMA_ENGINE
45	bool
46
47config DMA_VIRTUAL_CHANNELS
48	tristate
49
50config DMA_ACPI
51	def_bool y
52	depends on ACPI
53
54config DMA_OF
55	def_bool y
56	depends on OF
57	select DMA_ENGINE
58
59#devices
60config ALTERA_MSGDMA
61	tristate "Altera / Intel mSGDMA Engine"
62	depends on HAS_IOMEM
63	select DMA_ENGINE
64	help
65	  Enable support for Altera / Intel mSGDMA controller.
66
67config AMBA_PL08X
68	bool "ARM PrimeCell PL080 or PL081 support"
69	depends on ARM_AMBA
70	select DMA_ENGINE
71	select DMA_VIRTUAL_CHANNELS
72	help
73	  Say yes if your platform has a PL08x DMAC device which can
74	  provide DMA engine support. This includes the original ARM
75	  PL080 and PL081, Samsungs PL080 derivative and Faraday
76	  Technology's FTDMAC020 PL080 derivative.
77
78config AMCC_PPC440SPE_ADMA
79	tristate "AMCC PPC440SPe ADMA support"
80	depends on 440SPe || 440SP
81	select DMA_ENGINE
82	select DMA_ENGINE_RAID
83	select ARCH_HAS_ASYNC_TX_FIND_CHANNEL
84	select ASYNC_TX_ENABLE_CHANNEL_SWITCH
85	help
86	  Enable support for the AMCC PPC440SPe RAID engines.
87
88config AMLOGIC_DMA
89	tristate "Amlogic general DMA support"
90	depends on ARCH_MESON || COMPILE_TEST
91	select DMA_ENGINE
92	select DMA_VIRTUAL_CHANNELS
93	select REGMAP_MMIO
94	help
95	  Enable support for the Amlogic general DMA engines. THis DMA
96	  controller is used some Amlogic SoCs, such as A9.
97
98config APPLE_ADMAC
99	tristate "Apple ADMAC support"
100	depends on ARCH_APPLE || COMPILE_TEST
101	select DMA_ENGINE
102	help
103	  Enable support for Audio DMA Controller found on Apple Silicon SoCs.
104
105config ARM_DMA350
106	tristate "Arm DMA-350 support"
107	depends on ARM || ARM64 || COMPILE_TEST
108	select DMA_ENGINE
109	select DMA_VIRTUAL_CHANNELS
110	help
111	  Enable support for the Arm DMA-350 controller.
112
113config AT_HDMAC
114	tristate "Atmel AHB DMA support"
115	depends on ARCH_AT91 || COMPILE_TEST
116	select DMA_ENGINE
117	select DMA_VIRTUAL_CHANNELS
118	help
119	  Support the Atmel AHB DMA controller.
120
121config AT_XDMAC
122	tristate "Atmel XDMA support"
123	depends on ARCH_MICROCHIP
124	select DMA_ENGINE
125	help
126	  Support the Atmel XDMA controller.
127
128config AXI_DMAC
129	tristate "Analog Devices AXI-DMAC DMA support"
130	depends on MICROBLAZE || NIOS2 || ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_INTEL_SOCFPGA || COMPILE_TEST
131	select DMA_ENGINE
132	select DMA_VIRTUAL_CHANNELS
133	select REGMAP_MMIO
134	help
135	  Enable support for the Analog Devices AXI-DMAC peripheral. This DMA
136	  controller is often used in Analog Devices' reference designs for FPGA
137	  platforms.
138
139config BCM_SBA_RAID
140	tristate "Broadcom SBA RAID engine support"
141	depends on ARM64 || COMPILE_TEST
142	depends on MAILBOX && RAID6_PQ
143	select DMA_ENGINE
144	select DMA_ENGINE_RAID
145	select ASYNC_TX_DISABLE_XOR_VAL_DMA
146	select ASYNC_TX_DISABLE_PQ_VAL_DMA
147	default m if ARCH_BCM_IPROC
148	help
149	  Enable support for Broadcom SBA RAID Engine. The SBA RAID
150	  engine is available on most of the Broadcom iProc SoCs. It
151	  has the capability to offload memcpy, xor and pq computation
152	  for raid5/6.
153
154config DMA_BCM2835
155	tristate "BCM2835 DMA engine support"
156	depends on ARCH_BCM2835 || COMPILE_TEST
157	select DMA_ENGINE
158	select DMA_VIRTUAL_CHANNELS
159
160config DMA_JZ4780
161	tristate "JZ4780 DMA support"
162	depends on MIPS || COMPILE_TEST
163	select DMA_ENGINE
164	select DMA_VIRTUAL_CHANNELS
165	help
166	  This selects support for the DMA controller in Ingenic JZ4780 SoCs.
167	  If you have a board based on such a SoC and wish to use DMA for
168	  devices which can use the DMA controller, say Y or M here.
169
170config DMA_SA11X0
171	tristate "SA-11x0 DMA support"
172	depends on ARCH_SA1100 || COMPILE_TEST
173	select DMA_ENGINE
174	select DMA_VIRTUAL_CHANNELS
175	help
176	  Support the DMA engine found on Intel StrongARM SA-1100 and
177	  SA-1110 SoCs.  This DMA engine can only be used with on-chip
178	  devices.
179
180config DMA_SUN4I
181	tristate "Allwinner A10 DMA SoCs support"
182	depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUNIV
183	default (MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUNIV)
184	select DMA_ENGINE
185	select DMA_VIRTUAL_CHANNELS
186	help
187	  Enable support for the DMA controller present in the sun4i,
188	  sun5i and sun7i Allwinner ARM SoCs.
189
190config DMA_SUN6I
191	tristate "Allwinner A31 SoCs DMA support"
192	depends on ARCH_SUNXI || COMPILE_TEST
193	depends on RESET_CONTROLLER
194	select DMA_ENGINE
195	select DMA_VIRTUAL_CHANNELS
196	help
197	  Support for the DMA engine first found in Allwinner A31 SoCs.
198
199config DW_AXI_DMAC
200	tristate "Synopsys DesignWare AXI DMA support"
201	depends on OF
202	depends on HAS_IOMEM
203	select DMA_ENGINE
204	select DMA_VIRTUAL_CHANNELS
205	help
206	  Enable support for Synopsys DesignWare AXI DMA controller.
207	  NOTE: This driver wasn't tested on 64 bit platform because
208	  of lack 64 bit platform with Synopsys DW AXI DMAC.
209
210config EP93XX_DMA
211	bool "Cirrus Logic EP93xx DMA support"
212	depends on ARCH_EP93XX || COMPILE_TEST
213	select DMA_ENGINE
214	help
215	  Enable support for the Cirrus Logic EP93xx M2P/M2M DMA controller.
216
217config FSL_DMA
218	tristate "Freescale Elo series DMA support"
219	depends on FSL_SOC
220	select DMA_ENGINE
221	select ASYNC_TX_ENABLE_CHANNEL_SWITCH
222	help
223	  Enable support for the Freescale Elo series DMA controllers.
224	  The Elo is the DMA controller on some mpc82xx and mpc83xx parts, the
225	  EloPlus is on mpc85xx and mpc86xx and Pxxx parts, and the Elo3 is on
226	  some Txxx and Bxxx parts.
227
228config FSL_EDMA
229	tristate "Freescale eDMA engine support"
230	depends on OF
231	depends on HAS_IOMEM
232	select DMA_ENGINE
233	select DMA_VIRTUAL_CHANNELS
234	help
235	  Support the Freescale eDMA engine with programmable channel
236	  multiplexing capability for DMA request sources(slot).
237	  This module can be found on Freescale Vybrid and LS-1 SoCs.
238
239config FSL_QDMA
240	tristate "NXP Layerscape qDMA engine support"
241	depends on ARM || ARM64
242	select DMA_ENGINE
243	select DMA_VIRTUAL_CHANNELS
244	select DMA_ENGINE_RAID
245	select ASYNC_TX_ENABLE_CHANNEL_SWITCH
246	help
247	 Support the NXP Layerscape qDMA engine with command queue and legacy mode.
248	 Channel virtualization is supported through enqueuing of DMA jobs to,
249	 or dequeuing DMA jobs from, different work queues.
250	 This module can be found on NXP Layerscape SoCs.
251	  The qdma driver only work on  SoCs with a DPAA hardware block.
252
253config FSL_RAID
254	tristate "Freescale RAID engine Support"
255	depends on FSL_SOC && !ASYNC_TX_ENABLE_CHANNEL_SWITCH
256	select DMA_ENGINE
257	select DMA_ENGINE_RAID
258	help
259	  Enable support for Freescale RAID Engine. RAID Engine is
260	  available on some QorIQ SoCs (like P5020/P5040). It has
261	  the capability to offload memcpy, xor and pq computation
262	  for raid5/6.
263
264config HISI_DMA
265	tristate "HiSilicon DMA Engine support"
266	depends on ARCH_HISI || COMPILE_TEST
267	depends on PCI_MSI
268	select DMA_ENGINE
269	select DMA_VIRTUAL_CHANNELS
270	help
271	  Support HiSilicon Kunpeng DMA engine.
272
273config IMG_MDC_DMA
274	tristate "IMG MDC support"
275	depends on MIPS || COMPILE_TEST
276	depends on MFD_SYSCON
277	select DMA_ENGINE
278	select DMA_VIRTUAL_CHANNELS
279	help
280	  Enable support for the IMG multi-threaded DMA controller (MDC).
281
282config IMX_DMA
283	tristate "i.MX DMA support"
284	depends on ARCH_MXC
285	select DMA_ENGINE
286	help
287	  Support the i.MX DMA engine. This engine is integrated into
288	  Freescale i.MX1/21/27 chips.
289
290config IMX_SDMA
291	tristate "i.MX SDMA support"
292	depends on ARCH_MXC
293	select DMA_ENGINE
294	select DMA_VIRTUAL_CHANNELS
295	help
296	  Support the i.MX SDMA engine. This engine is integrated into
297	  Freescale i.MX25/31/35/51/53/6 chips.
298
299config INTEL_IDMA64
300	tristate "Intel integrated DMA 64-bit support"
301	depends on HAS_IOMEM
302	select DMA_ENGINE
303	select DMA_VIRTUAL_CHANNELS
304	help
305	  Enable DMA support for Intel Low Power Subsystem such as found on
306	  Intel Skylake PCH.
307
308config INTEL_IDXD_BUS
309	tristate
310	default INTEL_IDXD
311
312config INTEL_IDXD
313	tristate "Intel Data Accelerators support"
314	depends on PCI && X86_64 && !UML
315	depends on PCI_MSI
316	depends on PCI_PASID
317	depends on SBITMAP
318	select DMA_ENGINE
319	help
320	  Enable support for the Intel(R) data accelerators present
321	  in Intel Xeon CPU.
322
323	  Say Y if you have such a platform.
324
325	  If unsure, say N.
326
327config INTEL_IDXD_COMPAT
328	bool "Legacy behavior for idxd driver"
329	depends on PCI && X86_64
330	select INTEL_IDXD_BUS
331	help
332	  Compatible driver to support old /sys/bus/dsa/drivers/dsa behavior.
333	  The old behavior performed driver bind/unbind for device and wq
334	  devices all under the dsa driver. The compat driver will emulate
335	  the legacy behavior in order to allow existing support apps (i.e.
336	  accel-config) to continue function. It is expected that accel-config
337	  v3.2 and earlier will need the compat mode. A distro with later
338	  accel-config version can disable this compat config.
339
340	  Say Y if you have old applications that require such behavior.
341
342	  If unsure, say N.
343
344# Config symbol that collects all the dependencies that's necessary to
345# support shared virtual memory for the devices supported by idxd.
346config INTEL_IDXD_SVM
347	bool "Accelerator Shared Virtual Memory Support"
348	depends on INTEL_IDXD
349	depends on INTEL_IOMMU_SVM
350	depends on PCI_PRI
351	depends on PCI_PASID
352	depends on PCI_IOV
353
354config INTEL_IDXD_PERFMON
355	bool "Intel Data Accelerators performance monitor support"
356	depends on INTEL_IDXD
357	help
358	  Enable performance monitor (pmu) support for the Intel(R)
359	  data accelerators present in Intel Xeon CPU.  With this
360	  enabled, perf can be used to monitor the DSA (Intel Data
361	  Streaming Accelerator) events described in the Intel DSA
362	  spec.
363
364	  If unsure, say N.
365
366config INTEL_IOATDMA
367	tristate "Intel I/OAT DMA support"
368	depends on PCI && X86_64 && !UML
369	select DMA_ENGINE
370	select DMA_ENGINE_RAID
371	select DCA
372	help
373	  Enable support for the Intel(R) I/OAT DMA engine present
374	  in recent Intel Xeon chipsets.
375
376	  Say Y here if you have such a chipset.
377
378	  If unsure, say N.
379
380config K3_DMA
381	tristate "Hisilicon K3 DMA support"
382	depends on ARCH_HISI || COMPILE_TEST
383	select DMA_ENGINE
384	select DMA_VIRTUAL_CHANNELS
385	help
386	  Support the DMA engine for Hisilicon K3 platform
387	  devices.
388
389config LPC18XX_DMAMUX
390	bool "NXP LPC18xx/43xx DMA MUX for PL080"
391	depends on ARCH_LPC18XX || COMPILE_TEST
392	depends on OF && AMBA_PL08X
393	select MFD_SYSCON
394	help
395	  Enable support for DMA on NXP LPC18xx/43xx platforms
396	  with PL080 and multiplexed DMA request lines.
397
398config LPC32XX_DMAMUX
399	bool "NXP LPC32xx DMA MUX for PL080"
400	depends on ARCH_LPC32XX || COMPILE_TEST
401	depends on OF && AMBA_PL08X
402	select MFD_SYSCON
403	help
404	  Support for PL080 multiplexed DMA request lines on
405	  LPC32XX platrofm.
406
407config MCF_EDMA
408	tristate "Freescale eDMA engine support, ColdFire mcf5441x SoCs"
409	depends on M5441x || (COMPILE_TEST && FSL_EDMA=n)
410	select DMA_ENGINE
411	select DMA_VIRTUAL_CHANNELS
412	help
413	  Support the Freescale ColdFire eDMA engine, 64-channel
414	  implementation that performs complex data transfers with
415	  minimal intervention from a host processor.
416	  This module can be found on Freescale ColdFire mcf5441x SoCs.
417
418config MILBEAUT_HDMAC
419	tristate "Milbeaut AHB DMA support"
420	depends on ARCH_MILBEAUT || COMPILE_TEST
421	depends on OF
422	select DMA_ENGINE
423	select DMA_VIRTUAL_CHANNELS
424	help
425	  Say yes here to support the Socionext Milbeaut
426	  HDMAC device.
427
428config MILBEAUT_XDMAC
429	tristate "Milbeaut AXI DMA support"
430	depends on ARCH_MILBEAUT || COMPILE_TEST
431	depends on OF
432	select DMA_ENGINE
433	select DMA_VIRTUAL_CHANNELS
434	help
435	  Say yes here to support the Socionext Milbeaut
436	  XDMAC device.
437
438config MMP_PDMA
439	tristate "MMP PDMA support"
440	depends on ARCH_MMP || ARCH_PXA || ARCH_SPACEMIT || COMPILE_TEST
441	select DMA_ENGINE
442	help
443	  Support the MMP PDMA engine for PXA and MMP platform.
444
445config MMP_TDMA
446	tristate "MMP Two-Channel DMA support"
447	depends on ARCH_MMP || COMPILE_TEST
448	select DMA_ENGINE
449	select GENERIC_ALLOCATOR
450	help
451	  Support the MMP Two-Channel DMA engine.
452	  This engine used for MMP Audio DMA and pxa910 SQU.
453
454config MOXART_DMA
455	tristate "MOXART DMA support"
456	depends on ARCH_MOXART
457	select DMA_ENGINE
458	select DMA_VIRTUAL_CHANNELS
459	help
460	  Enable support for the MOXA ART SoC DMA controller.
461
462	  Say Y here if you enabled MMP ADMA, otherwise say N.
463
464config MPC512X_DMA
465	tristate "Freescale MPC512x built-in DMA engine support"
466	depends on PPC_MPC512x || PPC_MPC831x
467	select DMA_ENGINE
468	help
469	  Enable support for the Freescale MPC512x built-in DMA engine.
470
471config MV_XOR
472	bool "Marvell XOR engine support"
473	depends on PLAT_ORION || ARCH_MVEBU || COMPILE_TEST
474	select DMA_ENGINE
475	select DMA_ENGINE_RAID
476	select ASYNC_TX_ENABLE_CHANNEL_SWITCH
477	help
478	  Enable support for the Marvell XOR engine.
479
480config MV_XOR_V2
481	bool "Marvell XOR engine version 2 support "
482	depends on ARM64
483	select DMA_ENGINE
484	select DMA_ENGINE_RAID
485	select ASYNC_TX_ENABLE_CHANNEL_SWITCH
486	select GENERIC_MSI_IRQ
487	help
488	  Enable support for the Marvell version 2 XOR engine.
489
490	  This engine provides acceleration for copy, XOR and RAID6
491	  operations, and is available on Marvell Armada 7K and 8K
492	  platforms.
493
494config MXS_DMA
495	tristate "MXS DMA support"
496	depends on ARCH_MXS || ARCH_MXC || COMPILE_TEST
497	select STMP_DEVICE
498	select DMA_ENGINE
499	help
500	  Support the MXS DMA engine. This engine including APBH-DMA
501	  and APBX-DMA is integrated into some Freescale chips.
502
503config NBPFAXI_DMA
504	tristate "Renesas Type-AXI NBPF DMA support"
505	select DMA_ENGINE
506	depends on ARM || COMPILE_TEST
507	help
508	  Support for "Type-AXI" NBPF DMA IPs from Renesas
509
510config OWL_DMA
511	tristate "Actions Semi Owl SoCs DMA support"
512	depends on ARCH_ACTIONS
513	select DMA_ENGINE
514	select DMA_VIRTUAL_CHANNELS
515	help
516	  Enable support for the Actions Semi Owl SoCs DMA controller.
517
518config PCH_DMA
519	tristate "Intel EG20T PCH / LAPIS Semicon IOH(ML7213/ML7223/ML7831) DMA"
520	depends on PCI && (X86_32 || COMPILE_TEST)
521	select DMA_ENGINE
522	help
523	  Enable support for Intel EG20T PCH DMA engine.
524
525	  This driver also can be used for LAPIS Semiconductor IOH(Input/
526	  Output Hub), ML7213, ML7223 and ML7831.
527	  ML7213 IOH is for IVI(In-Vehicle Infotainment) use, ML7223 IOH is
528	  for MP(Media Phone) use and ML7831 IOH is for general purpose use.
529	  ML7213/ML7223/ML7831 is companion chip for Intel Atom E6xx series.
530	  ML7213/ML7223/ML7831 is completely compatible for Intel EG20T PCH.
531
532config PL330_DMA
533	tristate "DMA API Driver for PL330"
534	select DMA_ENGINE
535	depends on ARM_AMBA
536	help
537	  Select if your platform has one or more PL330 DMACs.
538	  You need to provide platform specific settings via
539	  platform_data for a dma-pl330 device.
540
541config PXA_DMA
542	bool "PXA DMA support"
543	depends on ARCH_MMP || ARCH_PXA || COMPILE_TEST
544	select DMA_ENGINE
545	select DMA_VIRTUAL_CHANNELS
546	help
547	  Support the DMA engine for PXA. It is also compatible with MMP PDMA
548	  platform. The internal DMA IP of all PXA variants is supported, with
549	  16 to 32 channels for peripheral to memory or memory to memory
550	  transfers.
551
552config PLX_DMA
553	tristate "PLX ExpressLane PEX Switch DMA Engine Support"
554	depends on PCI
555	select DMA_ENGINE
556	help
557	  Some PLX ExpressLane PCI Switches support additional DMA engines.
558	  These are exposed via extra functions on the switch's
559	  upstream port. Each function exposes one DMA channel.
560
561config SOPHGO_CV1800B_DMAMUX
562	tristate "Sophgo CV1800/SG2000 series SoC DMA multiplexer support"
563	depends on MFD_SYSCON
564	depends on ARCH_SOPHGO || COMPILE_TEST
565	help
566	  Support for the DMA multiplexer on Sophgo CV1800/SG2000
567	  series SoCs.
568	  Say Y here if your board have this soc.
569
570config STE_DMA40
571	bool "ST-Ericsson DMA40 support"
572	depends on ARCH_U8500
573	select DMA_ENGINE
574	select SRAM
575	help
576	  Support for ST-Ericsson DMA40 controller
577
578config ST_FDMA
579	tristate "ST FDMA dmaengine support"
580	depends on ARCH_STI || COMPILE_TEST
581	depends on REMOTEPROC
582	select ST_SLIM_REMOTEPROC
583	select DMA_ENGINE
584	select DMA_VIRTUAL_CHANNELS
585	help
586	  Enable support for ST FDMA controller.
587	  It supports 16 independent DMA channels, accepts up to 32 DMA requests
588
589	  Say Y here if you have such a chipset.
590	  If unsure, say N.
591
592config SPRD_DMA
593	tristate "Spreadtrum DMA support"
594	depends on ARCH_SPRD || COMPILE_TEST
595	select DMA_ENGINE
596	select DMA_VIRTUAL_CHANNELS
597	help
598	  Enable support for the on-chip DMA controller on Spreadtrum platform.
599
600config SWITCHTEC_DMA
601	tristate "Switchtec PSX/PFX Switch DMA Engine Support"
602	depends on PCI
603	select DMA_ENGINE
604	help
605	  Some Switchtec PSX/PFX PCIe Switches support additional DMA engines.
606	  These are exposed via an extra function on the switch's upstream
607	  port.
608
609config TXX9_DMAC
610	tristate "Toshiba TXx9 SoC DMA support"
611	depends on MACH_TX49XX
612	select DMA_ENGINE
613	help
614	  Support the TXx9 SoC internal DMA controller.  This can be
615	  integrated in chips such as the Toshiba TX4927/38/39.
616
617config TEGRA186_GPC_DMA
618	tristate "NVIDIA Tegra GPC DMA support"
619	depends on (ARCH_TEGRA || COMPILE_TEST) && ARCH_DMA_ADDR_T_64BIT
620	depends on IOMMU_API
621	select DMA_ENGINE
622	select DMA_VIRTUAL_CHANNELS
623	help
624	  Support for the NVIDIA Tegra General Purpose Central DMA controller.
625	  The DMA controller has multiple DMA channels which can be configured
626	  for different peripherals like UART, SPI, etc which are on APB bus.
627	  This DMA controller transfers data from memory to peripheral FIFO
628	  or vice versa. It also supports memory to memory data transfer.
629
630config TEGRA20_APB_DMA
631	tristate "NVIDIA Tegra20 APB DMA support"
632	depends on ARCH_TEGRA || COMPILE_TEST
633	select DMA_ENGINE
634	help
635	  Support for the NVIDIA Tegra20 APB DMA controller driver. The
636	  DMA controller is having multiple DMA channel which can be
637	  configured for different peripherals like audio, UART, SPI,
638	  I2C etc which is in APB bus.
639	  This DMA controller transfers data from memory to peripheral fifo
640	  or vice versa. It does not support memory to memory data transfer.
641
642config TEGRA210_ADMA
643	tristate "NVIDIA Tegra210 ADMA support"
644	depends on (ARCH_TEGRA || COMPILE_TEST)
645	select DMA_ENGINE
646	select DMA_VIRTUAL_CHANNELS
647	help
648	  Support for the NVIDIA Tegra210/Tegra186/Tegra194/Tegra234 ADMA
649	  controller driver. The DMA controller has multiple DMA channels
650	  and is used to service various audio clients in the Tegra210
651	  audio processing engine (APE). This DMA controller transfers
652	  data from memory to peripheral and vice versa. It does not
653	  support memory to memory data transfer.
654
655config TIMB_DMA
656	tristate "Timberdale FPGA DMA support"
657	depends on MFD_TIMBERDALE || COMPILE_TEST
658	select DMA_ENGINE
659	help
660	  Enable support for the Timberdale FPGA DMA engine.
661
662config UNIPHIER_MDMAC
663	tristate "UniPhier MIO DMAC"
664	depends on ARCH_UNIPHIER || COMPILE_TEST
665	depends on OF
666	select DMA_ENGINE
667	select DMA_VIRTUAL_CHANNELS
668	help
669	  Enable support for the MIO DMAC (Media I/O DMA controller) on the
670	  UniPhier platform.  This DMA controller is used as the external
671	  DMA engine of the SD/eMMC controllers of the LD4, Pro4, sLD8 SoCs.
672
673config UNIPHIER_XDMAC
674	tristate "UniPhier XDMAC support"
675	depends on ARCH_UNIPHIER || COMPILE_TEST
676	depends on OF
677	select DMA_ENGINE
678	select DMA_VIRTUAL_CHANNELS
679	help
680	  Enable support for the XDMAC (external DMA controller) on the
681	  UniPhier platform. This DMA controller can transfer data from
682	  memory to memory, memory to peripheral and peripheral to memory.
683
684config XGENE_DMA
685	tristate "APM X-Gene DMA support"
686	depends on ARCH_XGENE || COMPILE_TEST
687	select DMA_ENGINE
688	select DMA_ENGINE_RAID
689	select ASYNC_TX_ENABLE_CHANNEL_SWITCH
690	help
691	  Enable support for the APM X-Gene SoC DMA engine.
692
693config XILINX_DMA
694	tristate "Xilinx AXI DMAS Engine"
695	depends on HAS_IOMEM
696	select DMA_ENGINE
697	help
698	  Enable support for Xilinx AXI VDMA Soft IP.
699
700	  AXI VDMA engine provides high-bandwidth direct memory access
701	  between memory and AXI4-Stream video type target
702	  peripherals including peripherals which support AXI4-
703	  Stream Video Protocol.  It has two stream interfaces/
704	  channels, Memory Mapped to Stream (MM2S) and Stream to
705	  Memory Mapped (S2MM) for the data transfers.
706	  AXI CDMA engine provides high-bandwidth direct memory access
707	  between a memory-mapped source address and a memory-mapped
708	  destination address.
709	  AXI DMA engine provides high-bandwidth one dimensional direct
710	  memory access between memory and AXI4-Stream target peripherals.
711	  AXI MCDMA engine provides high-bandwidth direct memory access
712	  between memory and AXI4-Stream target peripherals. It provides
713	  the scatter gather interface with multiple channels independent
714	  configuration support.
715
716config XILINX_XDMA
717	tristate "Xilinx DMA/Bridge Subsystem DMA Engine"
718	depends on HAS_IOMEM
719	select DMA_ENGINE
720	select DMA_VIRTUAL_CHANNELS
721	select REGMAP_MMIO
722	help
723	  Enable support for Xilinx DMA/Bridge Subsystem DMA engine. The DMA
724	  provides high performance block data movement between Host memory
725	  and the DMA subsystem. These direct memory transfers can be both in
726	  the Host to Card (H2C) and Card to Host (C2H) transfers.
727	  The core also provides up to 16 user interrupt wires that generate
728	  interrupts to the host.
729
730config XILINX_ZYNQMP_DMA
731	tristate "Xilinx ZynqMP DMA Engine"
732	depends on ARCH_ZYNQ || MICROBLAZE || ARM64 || COMPILE_TEST
733	select DMA_ENGINE
734	help
735	  Enable support for Xilinx ZynqMP DMA controller.
736
737config XILINX_ZYNQMP_DPDMA
738	tristate "Xilinx DPDMA Engine"
739	depends on HAS_IOMEM && OF
740	select DMA_ENGINE
741	select DMA_VIRTUAL_CHANNELS
742	help
743	  Enable support for Xilinx ZynqMP DisplayPort DMA. Choose this option
744	  if you have a Xilinx ZynqMP SoC with a DisplayPort subsystem. The
745	  driver provides the dmaengine required by the DisplayPort subsystem
746	  display driver.
747
748# driver files
749source "drivers/dma/amd/Kconfig"
750
751source "drivers/dma/bestcomm/Kconfig"
752
753source "drivers/dma/mediatek/Kconfig"
754
755source "drivers/dma/qcom/Kconfig"
756
757source "drivers/dma/dw/Kconfig"
758
759source "drivers/dma/dw-edma/Kconfig"
760
761source "drivers/dma/hsu/Kconfig"
762
763source "drivers/dma/sf-pdma/Kconfig"
764
765source "drivers/dma/sh/Kconfig"
766
767source "drivers/dma/ti/Kconfig"
768
769source "drivers/dma/fsl-dpaa2-qdma/Kconfig"
770
771source "drivers/dma/lgm/Kconfig"
772
773source "drivers/dma/loongson/Kconfig"
774
775source "drivers/dma/stm32/Kconfig"
776
777# clients
778comment "DMA Clients"
779	depends on DMA_ENGINE
780
781config ASYNC_TX_DMA
782	bool "Async_tx: Offload support for the async_tx api"
783	depends on DMA_ENGINE
784	help
785	  This allows the async_tx api to take advantage of offload engines for
786	  memcpy, memset, xor, and raid6 p+q operations.  If your platform has
787	  a dma engine that can perform raid operations and you have enabled
788	  MD_RAID456 say Y.
789
790	  If unsure, say N.
791
792config DMATEST
793	tristate "DMA Test client"
794	depends on DMA_ENGINE
795	select DMA_ENGINE_RAID
796	help
797	  Simple DMA test client. Say N unless you're debugging a
798	  DMA Device driver.
799
800config DMA_ENGINE_RAID
801	bool
802
803endif
804