18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_cimenu "DMA support"
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciconfig SH_DMA
68c2ecf20Sopenharmony_ci	bool "SuperH on-chip DMA controller (DMAC) support"
78c2ecf20Sopenharmony_ci	depends on CPU_SH3 || CPU_SH4
88c2ecf20Sopenharmony_ci	default n
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciconfig SH_DMA_IRQ_MULTI
118c2ecf20Sopenharmony_ci	bool
128c2ecf20Sopenharmony_ci	depends on SH_DMA
138c2ecf20Sopenharmony_ci	default y if CPU_SUBTYPE_SH7750  || CPU_SUBTYPE_SH7751  || \
148c2ecf20Sopenharmony_ci		     CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
158c2ecf20Sopenharmony_ci		     CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091  || \
168c2ecf20Sopenharmony_ci		     CPU_SUBTYPE_SH7763  || CPU_SUBTYPE_SH7780  || \
178c2ecf20Sopenharmony_ci		     CPU_SUBTYPE_SH7785  || CPU_SUBTYPE_SH7760
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciconfig SH_DMA_API
208c2ecf20Sopenharmony_ci	depends on SH_DMA
218c2ecf20Sopenharmony_ci	bool "SuperH DMA API support"
228c2ecf20Sopenharmony_ci	default n
238c2ecf20Sopenharmony_ci	help
248c2ecf20Sopenharmony_ci	  SH_DMA_API always enabled DMA API of used SuperH.
258c2ecf20Sopenharmony_ci	  If you want to use DMA ENGINE, you must not enable this.
268c2ecf20Sopenharmony_ci	  Please enable DMA_ENGINE and SH_DMAE.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciconfig NR_ONCHIP_DMA_CHANNELS
298c2ecf20Sopenharmony_ci	int
308c2ecf20Sopenharmony_ci	depends on SH_DMA
318c2ecf20Sopenharmony_ci	default "4" if CPU_SUBTYPE_SH7750  || CPU_SUBTYPE_SH7751  || \
328c2ecf20Sopenharmony_ci		       CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091
338c2ecf20Sopenharmony_ci	default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
348c2ecf20Sopenharmony_ci		       CPU_SUBTYPE_SH7760
358c2ecf20Sopenharmony_ci	default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780  || \
368c2ecf20Sopenharmony_ci			CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7724
378c2ecf20Sopenharmony_ci	default "6"
388c2ecf20Sopenharmony_ci	help
398c2ecf20Sopenharmony_ci	  This allows you to specify the number of channels that the on-chip
408c2ecf20Sopenharmony_ci	  DMAC supports. This will be 4 for SH7750/SH7751/Sh7750S/SH7091 and 8 for the
418c2ecf20Sopenharmony_ci	  SH7750R/SH7751R/SH7760, 12 for the SH7723/SH7780/SH7785/SH7724, default is 6.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciconfig SH_DMABRG
448c2ecf20Sopenharmony_ci	bool "SH7760 DMABRG support"
458c2ecf20Sopenharmony_ci	depends on CPU_SUBTYPE_SH7760
468c2ecf20Sopenharmony_ci	help
478c2ecf20Sopenharmony_ci	  The DMABRG does data transfers from main memory to Audio/USB units
488c2ecf20Sopenharmony_ci	  of the SH7760.
498c2ecf20Sopenharmony_ci	  Say Y if you want to use Audio/USB DMA on your SH7760 board.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ciconfig PVR2_DMA
528c2ecf20Sopenharmony_ci	tristate "PowerVR 2 DMAC support"
538c2ecf20Sopenharmony_ci	depends on SH_DREAMCAST && SH_DMA
548c2ecf20Sopenharmony_ci	help
558c2ecf20Sopenharmony_ci	  Selecting this will enable support for the PVR2 DMA controller.
568c2ecf20Sopenharmony_ci	  As this chains off of the on-chip DMAC, that must also be
578c2ecf20Sopenharmony_ci	  enabled by default.
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci	  This is primarily used by the pvr2fb framebuffer driver for
608c2ecf20Sopenharmony_ci	  certain optimizations, but is not necessary for functionality.
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci	  If in doubt, say N.
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciconfig G2_DMA
658c2ecf20Sopenharmony_ci	tristate "G2 Bus DMA support"
668c2ecf20Sopenharmony_ci	depends on SH_DREAMCAST && SH_DMA_API
678c2ecf20Sopenharmony_ci	help
688c2ecf20Sopenharmony_ci	  This enables support for the DMA controller for the Dreamcast's
698c2ecf20Sopenharmony_ci	  G2 bus. Drivers that want this will generally enable this on
708c2ecf20Sopenharmony_ci	  their own.
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci	  If in doubt, say N.
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ciendmenu
75