xref: /linux/arch/sh/drivers/dma/Kconfig (revision 40f49e7ed77f1b753a7243c0137e4767a50ea8bd)
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 || \
16988f831dSNobuhiro Iwamatsu		CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
17988f831dSNobuhiro Iwamatsu		CPU_SUBTYPE_SH7091 || CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7764 || \
18988f831dSNobuhiro Iwamatsu		CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
19988f831dSNobuhiro Iwamatsu
201da177e4SLinus Torvaldsconfig NR_ONCHIP_DMA_CHANNELS
21fc100202SPaul Mundt	int
221da177e4SLinus Torvalds	depends on SH_DMA
2371b973a4SNobuhiro Iwamatsu	default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7750S
2471b973a4SNobuhiro Iwamatsu	default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7760
2571b973a4SNobuhiro Iwamatsu	default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
2671b973a4SNobuhiro Iwamatsu	default "6"
271da177e4SLinus Torvalds	help
281da177e4SLinus Torvalds	  This allows you to specify the number of channels that the on-chip
291da177e4SLinus Torvalds	  DMAC supports. This will be 4 for SH7750/SH7751 and 8 for the
301da177e4SLinus Torvalds	  SH7750R/SH7751R.
311da177e4SLinus Torvalds
321da177e4SLinus Torvaldsconfig NR_DMA_CHANNELS_BOOL
331da177e4SLinus Torvalds	depends on SH_DMA
341da177e4SLinus Torvalds	bool "Override default number of maximum DMA channels"
351da177e4SLinus Torvalds	help
361da177e4SLinus Torvalds	  This allows you to forcibly update the maximum number of supported
371da177e4SLinus Torvalds	  DMA channels for a given board. If this is unset, this will default
381da177e4SLinus Torvalds	  to the number of channels that the on-chip DMAC has.
391da177e4SLinus Torvalds
401da177e4SLinus Torvaldsconfig NR_DMA_CHANNELS
411da177e4SLinus Torvalds	int "Maximum number of DMA channels"
421da177e4SLinus Torvalds	depends on SH_DMA && NR_DMA_CHANNELS_BOOL
431da177e4SLinus Torvalds	default NR_ONCHIP_DMA_CHANNELS
441da177e4SLinus Torvalds	help
451da177e4SLinus Torvalds	  This allows you to specify the maximum number of DMA channels to
461da177e4SLinus Torvalds	  support. Setting this to a higher value allows for cascading DMACs
471da177e4SLinus Torvalds	  with additional channels.
481da177e4SLinus Torvalds
49fc467a26SManuel Laussconfig SH_DMABRG
50fc467a26SManuel Lauss	bool "SH7760 DMABRG support"
51fc467a26SManuel Lauss	depends on CPU_SUBTYPE_SH7760
52fc467a26SManuel Lauss	help
53fc467a26SManuel Lauss	  The DMABRG does data transfers from main memory to Audio/USB units
54fc467a26SManuel Lauss	  of the SH7760.
55fc467a26SManuel Lauss	  Say Y if you want to use Audio/USB DMA on your SH7760 board.
56fc467a26SManuel Lauss
57da62e71dSPaul Mundtconfig PVR2_DMA
58da62e71dSPaul Mundt	tristate "PowerVR 2 DMAC support"
59da62e71dSPaul Mundt	depends on SH_DREAMCAST && SH_DMA
60da62e71dSPaul Mundt	help
61da62e71dSPaul Mundt	  Selecting this will enable support for the PVR2 DMA controller.
62da62e71dSPaul Mundt	  As this chains off of the on-chip DMAC, that must also be
63da62e71dSPaul Mundt	  enabled by default.
64da62e71dSPaul Mundt
65da62e71dSPaul Mundt	  This is primarily used by the pvr2fb framebuffer driver for
66da62e71dSPaul Mundt	  certain optimizations, but is not necessary for functionality.
67da62e71dSPaul Mundt
68da62e71dSPaul Mundt	  If in doubt, say N.
69da62e71dSPaul Mundt
70*40f49e7eSPaul Mundtconfig G2_DMA
71*40f49e7eSPaul Mundt	tristate "G2 Bus DMA support"
72*40f49e7eSPaul Mundt	depends on SH_DREAMCAST
73*40f49e7eSPaul Mundt	select SH_DMA_API
74*40f49e7eSPaul Mundt	help
75*40f49e7eSPaul Mundt	  This enables support for the DMA controller for the Dreamcast's
76*40f49e7eSPaul Mundt	  G2 bus. Drivers that want this will generally enable this on
77*40f49e7eSPaul Mundt	  their own.
78*40f49e7eSPaul Mundt
79*40f49e7eSPaul Mundt	  If in doubt, say N.
80*40f49e7eSPaul Mundt
811da177e4SLinus Torvaldsendmenu
82