xref: /openbmc/linux/arch/sh/drivers/dma/Kconfig (revision 61f4d204)
1# SPDX-License-Identifier: GPL-2.0
2menu "DMA support"
3
4
5config SH_DMA
6	bool "SuperH on-chip DMA controller (DMAC) support"
7	depends on CPU_SH3 || CPU_SH4
8	default n
9
10config SH_DMA_IRQ_MULTI
11	bool
12	depends on SH_DMA
13	default y if CPU_SUBTYPE_SH7750  || CPU_SUBTYPE_SH7751  || \
14		     CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
15		     CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091  || \
16		     CPU_SUBTYPE_SH7763  || CPU_SUBTYPE_SH7780  || \
17		     CPU_SUBTYPE_SH7785  || CPU_SUBTYPE_SH7760
18
19config SH_DMA_API
20	depends on SH_DMA
21	bool "SuperH DMA API support"
22	default n
23	help
24	  SH_DMA_API always enabled DMA API of used SuperH.
25	  If you want to use DMA ENGINE, you must not enable this.
26	  Please enable DMA_ENGINE and SH_DMAE.
27
28config NR_ONCHIP_DMA_CHANNELS
29	int
30	depends on SH_DMA
31	default "4" if CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7750  || \
32		       CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7751 || \
33		       CPU_SUBTYPE_SH7091
34	default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
35		       CPU_SUBTYPE_SH7760
36	default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7724  || \
37			CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
38	default "6"
39	help
40	  This allows you to specify the number of channels that the on-chip
41	  DMAC supports. This will be 4 for SH7709/SH7750/SH7750S/SH7751/SH7091,
42	  8 for SH7750R/SH7751R/SH7760, and 12 for SH7723/SH7724/SH7780/SH7785.
43	  Default is 6.
44
45config SH_DMABRG
46	bool "SH7760 DMABRG support"
47	depends on CPU_SUBTYPE_SH7760
48	help
49	  The DMABRG does data transfers from main memory to Audio/USB units
50	  of the SH7760.
51	  Say Y if you want to use Audio/USB DMA on your SH7760 board.
52
53config PVR2_DMA
54	tristate "PowerVR 2 DMAC support"
55	depends on SH_DREAMCAST && SH_DMA
56	help
57	  Selecting this will enable support for the PVR2 DMA controller.
58	  As this chains off of the on-chip DMAC, that must also be
59	  enabled by default.
60
61	  This is primarily used by the pvr2fb framebuffer driver for
62	  certain optimizations, but is not necessary for functionality.
63
64	  If in doubt, say N.
65
66config G2_DMA
67	tristate "G2 Bus DMA support"
68	depends on SH_DREAMCAST && SH_DMA_API
69	help
70	  This enables support for the DMA controller for the Dreamcast's
71	  G2 bus. Drivers that want this will generally enable this on
72	  their own.
73
74	  If in doubt, say N.
75
76endmenu
77