Merge tag 'md/4.1' of git://neil.brown.name/md
[sfrench/cifs-2.6.git] / drivers / dma / Kconfig
1 #
2 # DMA engine configuration
3 #
4
5 menuconfig DMADEVICES
6         bool "DMA Engine support"
7         depends on HAS_DMA
8         help
9           DMA engines can do asynchronous data transfers without
10           involving the host CPU.  Currently, this framework can be
11           used to offload memory copies in the network stack and
12           RAID operations in the MD driver.  This menu only presents
13           DMA Device drivers supported by the configured arch, it may
14           be empty in some cases.
15
16 config DMADEVICES_DEBUG
17         bool "DMA Engine debugging"
18         depends on DMADEVICES != n
19         help
20           This is an option for use by developers; most people should
21           say N here.  This enables DMA engine core and driver debugging.
22
23 config DMADEVICES_VDEBUG
24         bool "DMA Engine verbose debugging"
25         depends on DMADEVICES_DEBUG != n
26         help
27           This is an option for use by developers; most people should
28           say N here.  This enables deeper (more verbose) debugging of
29           the DMA engine core and drivers.
30
31
32 if DMADEVICES
33
34 comment "DMA Devices"
35
36 config INTEL_MIC_X100_DMA
37         tristate "Intel MIC X100 DMA Driver"
38         depends on 64BIT && X86 && INTEL_MIC_BUS
39         select DMA_ENGINE
40         help
41           This enables DMA support for the Intel Many Integrated Core
42           (MIC) family of PCIe form factor coprocessor X100 devices that
43           run a 64 bit Linux OS. This driver will be used by both MIC
44           host and card drivers.
45
46           If you are building host kernel with a MIC device or a card
47           kernel for a MIC device, then say M (recommended) or Y, else
48           say N. If unsure say N.
49
50           More information about the Intel MIC family as well as the Linux
51           OS and tools for MIC to use with this driver are available from
52           <http://software.intel.com/en-us/mic-developer>.
53
54 config ASYNC_TX_ENABLE_CHANNEL_SWITCH
55         bool
56
57 config AMBA_PL08X
58         bool "ARM PrimeCell PL080 or PL081 support"
59         depends on ARM_AMBA
60         select DMA_ENGINE
61         select DMA_VIRTUAL_CHANNELS
62         help
63           Platform has a PL08x DMAC device
64           which can provide DMA engine support
65
66 config INTEL_IOATDMA
67         tristate "Intel I/OAT DMA support"
68         depends on PCI && X86
69         select DMA_ENGINE
70         select DMA_ENGINE_RAID
71         select DCA
72         help
73           Enable support for the Intel(R) I/OAT DMA engine present
74           in recent Intel Xeon chipsets.
75
76           Say Y here if you have such a chipset.
77
78           If unsure, say N.
79
80 config INTEL_IOP_ADMA
81         tristate "Intel IOP ADMA support"
82         depends on ARCH_IOP32X || ARCH_IOP33X || ARCH_IOP13XX
83         select DMA_ENGINE
84         select ASYNC_TX_ENABLE_CHANNEL_SWITCH
85         help
86           Enable support for the Intel(R) IOP Series RAID engines.
87
88 source "drivers/dma/dw/Kconfig"
89
90 config AT_HDMAC
91         tristate "Atmel AHB DMA support"
92         depends on ARCH_AT91
93         select DMA_ENGINE
94         help
95           Support the Atmel AHB DMA controller.
96
97 config AT_XDMAC
98         tristate "Atmel XDMA support"
99         depends on ARCH_AT91
100         select DMA_ENGINE
101         help
102           Support the Atmel XDMA controller.
103
104 config FSL_DMA
105         tristate "Freescale Elo series DMA support"
106         depends on FSL_SOC
107         select DMA_ENGINE
108         select ASYNC_TX_ENABLE_CHANNEL_SWITCH
109         ---help---
110           Enable support for the Freescale Elo series DMA controllers.
111           The Elo is the DMA controller on some mpc82xx and mpc83xx parts, the
112           EloPlus is on mpc85xx and mpc86xx and Pxxx parts, and the Elo3 is on
113           some Txxx and Bxxx parts.
114
115 source "drivers/dma/hsu/Kconfig"
116
117 config MPC512X_DMA
118         tristate "Freescale MPC512x built-in DMA engine support"
119         depends on PPC_MPC512x || PPC_MPC831x
120         select DMA_ENGINE
121         ---help---
122           Enable support for the Freescale MPC512x built-in DMA engine.
123
124 source "drivers/dma/bestcomm/Kconfig"
125
126 config MV_XOR
127         bool "Marvell XOR engine support"
128         depends on PLAT_ORION
129         select DMA_ENGINE
130         select DMA_ENGINE_RAID
131         select ASYNC_TX_ENABLE_CHANNEL_SWITCH
132         ---help---
133           Enable support for the Marvell XOR engine.
134
135 config MX3_IPU
136         bool "MX3x Image Processing Unit support"
137         depends on ARCH_MXC
138         select DMA_ENGINE
139         default y
140         help
141           If you plan to use the Image Processing unit in the i.MX3x, say
142           Y here. If unsure, select Y.
143
144 config MX3_IPU_IRQS
145         int "Number of dynamically mapped interrupts for IPU"
146         depends on MX3_IPU
147         range 2 137
148         default 4
149         help
150           Out of 137 interrupt sources on i.MX31 IPU only very few are used.
151           To avoid bloating the irq_desc[] array we allocate a sufficient
152           number of IRQ slots and map them dynamically to specific sources.
153
154 config TXX9_DMAC
155         tristate "Toshiba TXx9 SoC DMA support"
156         depends on MACH_TX49XX || MACH_TX39XX
157         select DMA_ENGINE
158         help
159           Support the TXx9 SoC internal DMA controller.  This can be
160           integrated in chips such as the Toshiba TX4927/38/39.
161
162 config TEGRA20_APB_DMA
163         bool "NVIDIA Tegra20 APB DMA support"
164         depends on ARCH_TEGRA
165         select DMA_ENGINE
166         help
167           Support for the NVIDIA Tegra20 APB DMA controller driver. The
168           DMA controller is having multiple DMA channel which can be
169           configured for different peripherals like audio, UART, SPI,
170           I2C etc which is in APB bus.
171           This DMA controller transfers data from memory to peripheral fifo
172           or vice versa. It does not support memory to memory data transfer.
173
174 config S3C24XX_DMAC
175         tristate "Samsung S3C24XX DMA support"
176         depends on ARCH_S3C24XX
177         select DMA_ENGINE
178         select DMA_VIRTUAL_CHANNELS
179         help
180           Support for the Samsung S3C24XX DMA controller driver. The
181           DMA controller is having multiple DMA channels which can be
182           configured for different peripherals like audio, UART, SPI.
183           The DMA controller can transfer data from memory to peripheral,
184           periphal to memory, periphal to periphal and memory to memory.
185
186 source "drivers/dma/sh/Kconfig"
187
188 config COH901318
189         bool "ST-Ericsson COH901318 DMA support"
190         select DMA_ENGINE
191         depends on ARCH_U300
192         help
193           Enable support for ST-Ericsson COH 901 318 DMA.
194
195 config STE_DMA40
196         bool "ST-Ericsson DMA40 support"
197         depends on ARCH_U8500
198         select DMA_ENGINE
199         help
200           Support for ST-Ericsson DMA40 controller
201
202 config AMCC_PPC440SPE_ADMA
203         tristate "AMCC PPC440SPe ADMA support"
204         depends on 440SPe || 440SP
205         select DMA_ENGINE
206         select DMA_ENGINE_RAID
207         select ARCH_HAS_ASYNC_TX_FIND_CHANNEL
208         select ASYNC_TX_ENABLE_CHANNEL_SWITCH
209         help
210           Enable support for the AMCC PPC440SPe RAID engines.
211
212 config TIMB_DMA
213         tristate "Timberdale FPGA DMA support"
214         depends on MFD_TIMBERDALE
215         select DMA_ENGINE
216         help
217           Enable support for the Timberdale FPGA DMA engine.
218
219 config SIRF_DMA
220         tristate "CSR SiRFprimaII/SiRFmarco DMA support"
221         depends on ARCH_SIRF
222         select DMA_ENGINE
223         help
224           Enable support for the CSR SiRFprimaII DMA engine.
225
226 config TI_EDMA
227         bool "TI EDMA support"
228         depends on ARCH_DAVINCI || ARCH_OMAP || ARCH_KEYSTONE
229         select DMA_ENGINE
230         select DMA_VIRTUAL_CHANNELS
231         select TI_PRIV_EDMA
232         default n
233         help
234           Enable support for the TI EDMA controller. This DMA
235           engine is found on TI DaVinci and AM33xx parts.
236
237 config ARCH_HAS_ASYNC_TX_FIND_CHANNEL
238         bool
239
240 config PL330_DMA
241         tristate "DMA API Driver for PL330"
242         select DMA_ENGINE
243         depends on ARM_AMBA
244         help
245           Select if your platform has one or more PL330 DMACs.
246           You need to provide platform specific settings via
247           platform_data for a dma-pl330 device.
248
249 config PCH_DMA
250         tristate "Intel EG20T PCH / LAPIS Semicon IOH(ML7213/ML7223/ML7831) DMA"
251         depends on PCI && (X86_32 || COMPILE_TEST)
252         select DMA_ENGINE
253         help
254           Enable support for Intel EG20T PCH DMA engine.
255
256           This driver also can be used for LAPIS Semiconductor IOH(Input/
257           Output Hub), ML7213, ML7223 and ML7831.
258           ML7213 IOH is for IVI(In-Vehicle Infotainment) use, ML7223 IOH is
259           for MP(Media Phone) use and ML7831 IOH is for general purpose use.
260           ML7213/ML7223/ML7831 is companion chip for Intel Atom E6xx series.
261           ML7213/ML7223/ML7831 is completely compatible for Intel EG20T PCH.
262
263 config IMX_SDMA
264         tristate "i.MX SDMA support"
265         depends on ARCH_MXC
266         select DMA_ENGINE
267         help
268           Support the i.MX SDMA engine. This engine is integrated into
269           Freescale i.MX25/31/35/51/53/6 chips.
270
271 config IMX_DMA
272         tristate "i.MX DMA support"
273         depends on ARCH_MXC
274         select DMA_ENGINE
275         help
276           Support the i.MX DMA engine. This engine is integrated into
277           Freescale i.MX1/21/27 chips.
278
279 config MXS_DMA
280         bool "MXS DMA support"
281         depends on SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q
282         select STMP_DEVICE
283         select DMA_ENGINE
284         help
285           Support the MXS DMA engine. This engine including APBH-DMA
286           and APBX-DMA is integrated into Freescale i.MX23/28/MX6Q/MX6DL chips.
287
288 config EP93XX_DMA
289         bool "Cirrus Logic EP93xx DMA support"
290         depends on ARCH_EP93XX
291         select DMA_ENGINE
292         help
293           Enable support for the Cirrus Logic EP93xx M2P/M2M DMA controller.
294
295 config DMA_SA11X0
296         tristate "SA-11x0 DMA support"
297         depends on ARCH_SA1100
298         select DMA_ENGINE
299         select DMA_VIRTUAL_CHANNELS
300         help
301           Support the DMA engine found on Intel StrongARM SA-1100 and
302           SA-1110 SoCs.  This DMA engine can only be used with on-chip
303           devices.
304
305 config MMP_TDMA
306         bool "MMP Two-Channel DMA support"
307         depends on ARCH_MMP
308         select DMA_ENGINE
309         select MMP_SRAM
310         help
311           Support the MMP Two-Channel DMA engine.
312           This engine used for MMP Audio DMA and pxa910 SQU.
313           It needs sram driver under mach-mmp.
314
315           Say Y here if you enabled MMP ADMA, otherwise say N.
316
317 config DMA_OMAP
318         tristate "OMAP DMA support"
319         depends on ARCH_OMAP
320         select DMA_ENGINE
321         select DMA_VIRTUAL_CHANNELS
322
323 config DMA_BCM2835
324         tristate "BCM2835 DMA engine support"
325         depends on ARCH_BCM2835
326         select DMA_ENGINE
327         select DMA_VIRTUAL_CHANNELS
328
329 config TI_CPPI41
330         tristate "AM33xx CPPI41 DMA support"
331         depends on ARCH_OMAP
332         select DMA_ENGINE
333         help
334           The Communications Port Programming Interface (CPPI) 4.1 DMA engine
335           is currently used by the USB driver on AM335x platforms.
336
337 config MMP_PDMA
338         bool "MMP PDMA support"
339         depends on (ARCH_MMP || ARCH_PXA)
340         select DMA_ENGINE
341         help
342           Support the MMP PDMA engine for PXA and MMP platform.
343
344 config DMA_JZ4740
345         tristate "JZ4740 DMA support"
346         depends on MACH_JZ4740
347         select DMA_ENGINE
348         select DMA_VIRTUAL_CHANNELS
349
350 config K3_DMA
351         tristate "Hisilicon K3 DMA support"
352         depends on ARCH_HI3xxx
353         select DMA_ENGINE
354         select DMA_VIRTUAL_CHANNELS
355         help
356           Support the DMA engine for Hisilicon K3 platform
357           devices.
358
359 config MOXART_DMA
360         tristate "MOXART DMA support"
361         depends on ARCH_MOXART
362         select DMA_ENGINE
363         select DMA_OF
364         select DMA_VIRTUAL_CHANNELS
365         help
366           Enable support for the MOXA ART SoC DMA controller.
367  
368 config FSL_EDMA
369         tristate "Freescale eDMA engine support"
370         depends on OF
371         select DMA_ENGINE
372         select DMA_VIRTUAL_CHANNELS
373         help
374           Support the Freescale eDMA engine with programmable channel
375           multiplexing capability for DMA request sources(slot).
376           This module can be found on Freescale Vybrid and LS-1 SoCs.
377
378 config XILINX_VDMA
379         tristate "Xilinx AXI VDMA Engine"
380         depends on (ARCH_ZYNQ || MICROBLAZE)
381         select DMA_ENGINE
382         help
383           Enable support for Xilinx AXI VDMA Soft IP.
384
385           This engine provides high-bandwidth direct memory access
386           between memory and AXI4-Stream video type target
387           peripherals including peripherals which support AXI4-
388           Stream Video Protocol.  It has two stream interfaces/
389           channels, Memory Mapped to Stream (MM2S) and Stream to
390           Memory Mapped (S2MM) for the data transfers.
391
392 config DMA_SUN6I
393         tristate "Allwinner A31 SoCs DMA support"
394         depends on MACH_SUN6I || MACH_SUN8I || COMPILE_TEST
395         depends on RESET_CONTROLLER
396         select DMA_ENGINE
397         select DMA_VIRTUAL_CHANNELS
398         help
399           Support for the DMA engine first found in Allwinner A31 SoCs.
400
401 config NBPFAXI_DMA
402         tristate "Renesas Type-AXI NBPF DMA support"
403         select DMA_ENGINE
404         depends on ARM || COMPILE_TEST
405         help
406           Support for "Type-AXI" NBPF DMA IPs from Renesas
407
408 config IMG_MDC_DMA
409         tristate "IMG MDC support"
410         depends on MIPS || COMPILE_TEST
411         depends on MFD_SYSCON
412         select DMA_ENGINE
413         select DMA_VIRTUAL_CHANNELS
414         help
415           Enable support for the IMG multi-threaded DMA controller (MDC).
416
417 config DMA_ENGINE
418         bool
419
420 config DMA_VIRTUAL_CHANNELS
421         tristate
422
423 config DMA_ACPI
424         def_bool y
425         depends on ACPI
426
427 config DMA_OF
428         def_bool y
429         depends on OF
430         select DMA_ENGINE
431
432 comment "DMA Clients"
433         depends on DMA_ENGINE
434
435 config ASYNC_TX_DMA
436         bool "Async_tx: Offload support for the async_tx api"
437         depends on DMA_ENGINE
438         help
439           This allows the async_tx api to take advantage of offload engines for
440           memcpy, memset, xor, and raid6 p+q operations.  If your platform has
441           a dma engine that can perform raid operations and you have enabled
442           MD_RAID456 say Y.
443
444           If unsure, say N.
445
446 config DMATEST
447         tristate "DMA Test client"
448         depends on DMA_ENGINE
449         help
450           Simple DMA test client. Say N unless you're debugging a
451           DMA Device driver.
452
453 config DMA_ENGINE_RAID
454         bool
455
456 config QCOM_BAM_DMA
457         tristate "QCOM BAM DMA support"
458         depends on ARCH_QCOM || (COMPILE_TEST && OF && ARM)
459         select DMA_ENGINE
460         select DMA_VIRTUAL_CHANNELS
461         ---help---
462           Enable support for the QCOM BAM DMA controller.  This controller
463           provides DMA capabilities for a variety of on-chip devices.
464
465 endif