xref: /linux/arch/sh/drivers/dma/Kconfig (revision da62e71d13ad0b76011491e36cb58999c464516a)
1menu "DMA support"
2
3config SH_DMA_API
4	bool
5
6config SH_DMA
7	bool "SuperH on-chip DMA controller (DMAC) support"
8	depends on CPU_SH3 || CPU_SH4
9	select SH_DMA_API
10	default n
11
12config SH_DMA_IRQ_MULTI
13	bool
14	depends on SH_DMA
15	default y if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \
16		CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
17		CPU_SUBTYPE_SH7091 || CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7764 || \
18		CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
19
20config NR_ONCHIP_DMA_CHANNELS
21	int
22	depends on SH_DMA
23	default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7750S
24	default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7760
25	default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
26	default "6"
27	help
28	  This allows you to specify the number of channels that the on-chip
29	  DMAC supports. This will be 4 for SH7750/SH7751 and 8 for the
30	  SH7750R/SH7751R.
31
32config NR_DMA_CHANNELS_BOOL
33	depends on SH_DMA
34	bool "Override default number of maximum DMA channels"
35	help
36	  This allows you to forcibly update the maximum number of supported
37	  DMA channels for a given board. If this is unset, this will default
38	  to the number of channels that the on-chip DMAC has.
39
40config NR_DMA_CHANNELS
41	int "Maximum number of DMA channels"
42	depends on SH_DMA && NR_DMA_CHANNELS_BOOL
43	default NR_ONCHIP_DMA_CHANNELS
44	help
45	  This allows you to specify the maximum number of DMA channels to
46	  support. Setting this to a higher value allows for cascading DMACs
47	  with additional channels.
48
49config SH_DMABRG
50	bool "SH7760 DMABRG support"
51	depends on CPU_SUBTYPE_SH7760
52	help
53	  The DMABRG does data transfers from main memory to Audio/USB units
54	  of the SH7760.
55	  Say Y if you want to use Audio/USB DMA on your SH7760 board.
56
57config PVR2_DMA
58	tristate "PowerVR 2 DMAC support"
59	depends on SH_DREAMCAST && SH_DMA
60	help
61	  Selecting this will enable support for the PVR2 DMA controller.
62	  As this chains off of the on-chip DMAC, that must also be
63	  enabled by default.
64
65	  This is primarily used by the pvr2fb framebuffer driver for
66	  certain optimizations, but is not necessary for functionality.
67
68	  If in doubt, say N.
69
70endmenu
71