xref: /linux/arch/sh/drivers/dma/Kconfig (revision d8902adcc1a9fd484c8cb5e575152e32192c1ff8)
11da177e4SLinus Torvaldsmenu "DMA support"
21da177e4SLinus Torvalds
31da177e4SLinus Torvalds
4fc467a26SManuel Laussconfig SH_DMA
5fc467a26SManuel Lauss	bool "SuperH on-chip DMA controller (DMAC) support"
63e767833SPaul Mundt	depends on CPU_SH3 || CPU_SH4
7fc467a26SManuel Lauss	default n
81da177e4SLinus Torvalds
9988f831dSNobuhiro Iwamatsuconfig SH_DMA_IRQ_MULTI
10988f831dSNobuhiro Iwamatsu	bool
11988f831dSNobuhiro Iwamatsu	depends on SH_DMA
12988f831dSNobuhiro Iwamatsu	default y if CPU_SUBTYPE_SH7750  || CPU_SUBTYPE_SH7751  || \
13a27873cdSPaul Mundt		     CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
14a27873cdSPaul Mundt		     CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091  || \
15a27873cdSPaul Mundt		     CPU_SUBTYPE_SH7763  || CPU_SUBTYPE_SH7764  || \
163d6ad460SMagnus Damm		     CPU_SUBTYPE_SH7780  || CPU_SUBTYPE_SH7785  || \
173d6ad460SMagnus Damm		     CPU_SUBTYPE_SH7760
18988f831dSNobuhiro Iwamatsu
19*d8902adcSNobuhiro Iwamatsuconfig SH_DMA_API
20*d8902adcSNobuhiro Iwamatsu	depends on SH_DMA
21*d8902adcSNobuhiro Iwamatsu	bool "SuperH DMA API support"
22*d8902adcSNobuhiro Iwamatsu	default n
23*d8902adcSNobuhiro Iwamatsu	help
24*d8902adcSNobuhiro Iwamatsu	  SH_DMA_API always enabled DMA API of used SuperH.
25*d8902adcSNobuhiro Iwamatsu	  If you want to use DMA ENGINE, you must not enable this.
26*d8902adcSNobuhiro Iwamatsu	  Please enable DMA_ENGINE and SH_DMAE.
27*d8902adcSNobuhiro Iwamatsu
281da177e4SLinus Torvaldsconfig NR_ONCHIP_DMA_CHANNELS
29fc100202SPaul Mundt	int
301da177e4SLinus Torvalds	depends on SH_DMA
31a27873cdSPaul Mundt	default "4" if CPU_SUBTYPE_SH7750  || CPU_SUBTYPE_SH7751  || \
32a27873cdSPaul Mundt		       CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091
33a27873cdSPaul Mundt	default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
34a27873cdSPaul Mundt		       CPU_SUBTYPE_SH7760
35a27873cdSPaul Mundt	default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780  || \
36a27873cdSPaul Mundt			CPU_SUBTYPE_SH7785
3771b973a4SNobuhiro Iwamatsu	default "6"
381da177e4SLinus Torvalds	help
391da177e4SLinus Torvalds	  This allows you to specify the number of channels that the on-chip
40a27873cdSPaul Mundt	  DMAC supports. This will be 4 for SH7091/SH7750/SH7751 and 8 for the
411da177e4SLinus Torvalds	  SH7750R/SH7751R.
421da177e4SLinus Torvalds
431da177e4SLinus Torvaldsconfig NR_DMA_CHANNELS_BOOL
441da177e4SLinus Torvalds	depends on SH_DMA
451da177e4SLinus Torvalds	bool "Override default number of maximum DMA channels"
461da177e4SLinus Torvalds	help
471da177e4SLinus Torvalds	  This allows you to forcibly update the maximum number of supported
481da177e4SLinus Torvalds	  DMA channels for a given board. If this is unset, this will default
491da177e4SLinus Torvalds	  to the number of channels that the on-chip DMAC has.
501da177e4SLinus Torvalds
511da177e4SLinus Torvaldsconfig NR_DMA_CHANNELS
521da177e4SLinus Torvalds	int "Maximum number of DMA channels"
531da177e4SLinus Torvalds	depends on SH_DMA && NR_DMA_CHANNELS_BOOL
541da177e4SLinus Torvalds	default NR_ONCHIP_DMA_CHANNELS
551da177e4SLinus Torvalds	help
561da177e4SLinus Torvalds	  This allows you to specify the maximum number of DMA channels to
571da177e4SLinus Torvalds	  support. Setting this to a higher value allows for cascading DMACs
581da177e4SLinus Torvalds	  with additional channels.
591da177e4SLinus Torvalds
60fc467a26SManuel Laussconfig SH_DMABRG
61fc467a26SManuel Lauss	bool "SH7760 DMABRG support"
62fc467a26SManuel Lauss	depends on CPU_SUBTYPE_SH7760
63fc467a26SManuel Lauss	help
64fc467a26SManuel Lauss	  The DMABRG does data transfers from main memory to Audio/USB units
65fc467a26SManuel Lauss	  of the SH7760.
66fc467a26SManuel Lauss	  Say Y if you want to use Audio/USB DMA on your SH7760 board.
67fc467a26SManuel Lauss
68da62e71dSPaul Mundtconfig PVR2_DMA
69da62e71dSPaul Mundt	tristate "PowerVR 2 DMAC support"
70da62e71dSPaul Mundt	depends on SH_DREAMCAST && SH_DMA
71da62e71dSPaul Mundt	help
72da62e71dSPaul Mundt	  Selecting this will enable support for the PVR2 DMA controller.
73da62e71dSPaul Mundt	  As this chains off of the on-chip DMAC, that must also be
74da62e71dSPaul Mundt	  enabled by default.
75da62e71dSPaul Mundt
76da62e71dSPaul Mundt	  This is primarily used by the pvr2fb framebuffer driver for
77da62e71dSPaul Mundt	  certain optimizations, but is not necessary for functionality.
78da62e71dSPaul Mundt
79da62e71dSPaul Mundt	  If in doubt, say N.
80da62e71dSPaul Mundt
8140f49e7eSPaul Mundtconfig G2_DMA
8240f49e7eSPaul Mundt	tristate "G2 Bus DMA support"
8340f49e7eSPaul Mundt	depends on SH_DREAMCAST
8440f49e7eSPaul Mundt	select SH_DMA_API
8540f49e7eSPaul Mundt	help
8640f49e7eSPaul Mundt	  This enables support for the DMA controller for the Dreamcast's
8740f49e7eSPaul Mundt	  G2 bus. Drivers that want this will generally enable this on
8840f49e7eSPaul Mundt	  their own.
8940f49e7eSPaul Mundt
9040f49e7eSPaul Mundt	  If in doubt, say N.
9140f49e7eSPaul Mundt
921da177e4SLinus Torvaldsendmenu
93