xref: /linux/arch/sh/drivers/dma/Kconfig (revision a27873cd234b4248dda342721d6262943e5fa235)
11da177e4SLinus Torvaldsmenu "DMA support"
21da177e4SLinus Torvalds
3fc467a26SManuel Laussconfig SH_DMA_API
4fc467a26SManuel Lauss	bool
51da177e4SLinus Torvalds
6fc467a26SManuel Laussconfig SH_DMA
7fc467a26SManuel Lauss	bool "SuperH on-chip DMA controller (DMAC) support"
83e767833SPaul Mundt	depends on CPU_SH3 || CPU_SH4
9fc467a26SManuel Lauss	select SH_DMA_API
10fc467a26SManuel Lauss	default n
111da177e4SLinus Torvalds
12988f831dSNobuhiro Iwamatsuconfig SH_DMA_IRQ_MULTI
13988f831dSNobuhiro Iwamatsu	bool
14988f831dSNobuhiro Iwamatsu	depends on SH_DMA
15988f831dSNobuhiro Iwamatsu	default y if CPU_SUBTYPE_SH7750  || CPU_SUBTYPE_SH7751  || \
16*a27873cdSPaul Mundt		     CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
17*a27873cdSPaul Mundt		     CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091  || \
18*a27873cdSPaul Mundt		     CPU_SUBTYPE_SH7763  || CPU_SUBTYPE_SH7764  || \
19988f831dSNobuhiro Iwamatsu		     CPU_SUBTYPE_SH7780  || CPU_SUBTYPE_SH7785
20988f831dSNobuhiro Iwamatsu
211da177e4SLinus Torvaldsconfig NR_ONCHIP_DMA_CHANNELS
22fc100202SPaul Mundt	int
231da177e4SLinus Torvalds	depends on SH_DMA
24*a27873cdSPaul Mundt	default "4" if CPU_SUBTYPE_SH7750  || CPU_SUBTYPE_SH7751  || \
25*a27873cdSPaul Mundt		       CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091
26*a27873cdSPaul Mundt	default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
27*a27873cdSPaul Mundt		       CPU_SUBTYPE_SH7760
28*a27873cdSPaul Mundt	default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780  || \
29*a27873cdSPaul Mundt			CPU_SUBTYPE_SH7785
3071b973a4SNobuhiro Iwamatsu	default "6"
311da177e4SLinus Torvalds	help
321da177e4SLinus Torvalds	  This allows you to specify the number of channels that the on-chip
33*a27873cdSPaul Mundt	  DMAC supports. This will be 4 for SH7091/SH7750/SH7751 and 8 for the
341da177e4SLinus Torvalds	  SH7750R/SH7751R.
351da177e4SLinus Torvalds
361da177e4SLinus Torvaldsconfig NR_DMA_CHANNELS_BOOL
371da177e4SLinus Torvalds	depends on SH_DMA
381da177e4SLinus Torvalds	bool "Override default number of maximum DMA channels"
391da177e4SLinus Torvalds	help
401da177e4SLinus Torvalds	  This allows you to forcibly update the maximum number of supported
411da177e4SLinus Torvalds	  DMA channels for a given board. If this is unset, this will default
421da177e4SLinus Torvalds	  to the number of channels that the on-chip DMAC has.
431da177e4SLinus Torvalds
441da177e4SLinus Torvaldsconfig NR_DMA_CHANNELS
451da177e4SLinus Torvalds	int "Maximum number of DMA channels"
461da177e4SLinus Torvalds	depends on SH_DMA && NR_DMA_CHANNELS_BOOL
471da177e4SLinus Torvalds	default NR_ONCHIP_DMA_CHANNELS
481da177e4SLinus Torvalds	help
491da177e4SLinus Torvalds	  This allows you to specify the maximum number of DMA channels to
501da177e4SLinus Torvalds	  support. Setting this to a higher value allows for cascading DMACs
511da177e4SLinus Torvalds	  with additional channels.
521da177e4SLinus Torvalds
53fc467a26SManuel Laussconfig SH_DMABRG
54fc467a26SManuel Lauss	bool "SH7760 DMABRG support"
55fc467a26SManuel Lauss	depends on CPU_SUBTYPE_SH7760
56fc467a26SManuel Lauss	help
57fc467a26SManuel Lauss	  The DMABRG does data transfers from main memory to Audio/USB units
58fc467a26SManuel Lauss	  of the SH7760.
59fc467a26SManuel Lauss	  Say Y if you want to use Audio/USB DMA on your SH7760 board.
60fc467a26SManuel Lauss
61da62e71dSPaul Mundtconfig PVR2_DMA
62da62e71dSPaul Mundt	tristate "PowerVR 2 DMAC support"
63da62e71dSPaul Mundt	depends on SH_DREAMCAST && SH_DMA
64da62e71dSPaul Mundt	help
65da62e71dSPaul Mundt	  Selecting this will enable support for the PVR2 DMA controller.
66da62e71dSPaul Mundt	  As this chains off of the on-chip DMAC, that must also be
67da62e71dSPaul Mundt	  enabled by default.
68da62e71dSPaul Mundt
69da62e71dSPaul Mundt	  This is primarily used by the pvr2fb framebuffer driver for
70da62e71dSPaul Mundt	  certain optimizations, but is not necessary for functionality.
71da62e71dSPaul Mundt
72da62e71dSPaul Mundt	  If in doubt, say N.
73da62e71dSPaul Mundt
7440f49e7eSPaul Mundtconfig G2_DMA
7540f49e7eSPaul Mundt	tristate "G2 Bus DMA support"
7640f49e7eSPaul Mundt	depends on SH_DREAMCAST
7740f49e7eSPaul Mundt	select SH_DMA_API
7840f49e7eSPaul Mundt	help
7940f49e7eSPaul Mundt	  This enables support for the DMA controller for the Dreamcast's
8040f49e7eSPaul Mundt	  G2 bus. Drivers that want this will generally enable this on
8140f49e7eSPaul Mundt	  their own.
8240f49e7eSPaul Mundt
8340f49e7eSPaul Mundt	  If in doubt, say N.
8440f49e7eSPaul Mundt
851da177e4SLinus Torvaldsendmenu
86