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