xref: /openbmc/linux/arch/sh/drivers/dma/Kconfig (revision a1e2833d)
1menu "DMA support"
2
3config SH_DMA_API
4	bool
5
6config SH_DMA
7	bool "SuperH on-chip DMA controller (DMAC) support"
8	select SH_DMA_API
9	default n
10
11config NR_ONCHIP_DMA_CHANNELS
12	depends on SH_DMA
13	int "Number of on-chip DMAC channels"
14	default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R
15	default "12" if CPU_SUBTYPE_SH7780
16	default "4"
17	help
18	  This allows you to specify the number of channels that the on-chip
19	  DMAC supports. This will be 4 for SH7750/SH7751 and 8 for the
20	  SH7750R/SH7751R.
21
22config NR_DMA_CHANNELS_BOOL
23	depends on SH_DMA
24	bool "Override default number of maximum DMA channels"
25	help
26	  This allows you to forcibly update the maximum number of supported
27	  DMA channels for a given board. If this is unset, this will default
28	  to the number of channels that the on-chip DMAC has.
29
30config NR_DMA_CHANNELS
31	int "Maximum number of DMA channels"
32	depends on SH_DMA && NR_DMA_CHANNELS_BOOL
33	default NR_ONCHIP_DMA_CHANNELS
34	help
35	  This allows you to specify the maximum number of DMA channels to
36	  support. Setting this to a higher value allows for cascading DMACs
37	  with additional channels.
38
39config SH_DMABRG
40	bool "SH7760 DMABRG support"
41	depends on CPU_SUBTYPE_SH7760
42	help
43	  The DMABRG does data transfers from main memory to Audio/USB units
44	  of the SH7760.
45	  Say Y if you want to use Audio/USB DMA on your SH7760 board.
46
47endmenu
48