162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_cimenu "DMA support"
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciconfig SH_DMA
662306a36Sopenharmony_ci	bool "SuperH on-chip DMA controller (DMAC) support"
762306a36Sopenharmony_ci	depends on CPU_SH3 || CPU_SH4
862306a36Sopenharmony_ci	default n
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciconfig SH_DMA_IRQ_MULTI
1162306a36Sopenharmony_ci	bool
1262306a36Sopenharmony_ci	depends on SH_DMA
1362306a36Sopenharmony_ci	default y if CPU_SUBTYPE_SH7750  || CPU_SUBTYPE_SH7751  || \
1462306a36Sopenharmony_ci		     CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
1562306a36Sopenharmony_ci		     CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091  || \
1662306a36Sopenharmony_ci		     CPU_SUBTYPE_SH7763  || CPU_SUBTYPE_SH7780  || \
1762306a36Sopenharmony_ci		     CPU_SUBTYPE_SH7785  || CPU_SUBTYPE_SH7760
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciconfig SH_DMA_API
2062306a36Sopenharmony_ci	depends on SH_DMA
2162306a36Sopenharmony_ci	bool "SuperH DMA API support"
2262306a36Sopenharmony_ci	default n
2362306a36Sopenharmony_ci	help
2462306a36Sopenharmony_ci	  SH_DMA_API always enabled DMA API of used SuperH.
2562306a36Sopenharmony_ci	  If you want to use DMA ENGINE, you must not enable this.
2662306a36Sopenharmony_ci	  Please enable DMA_ENGINE and SH_DMAE.
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciconfig NR_ONCHIP_DMA_CHANNELS
2962306a36Sopenharmony_ci	int
3062306a36Sopenharmony_ci	depends on SH_DMA
3162306a36Sopenharmony_ci	default "4" if CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7750  || \
3262306a36Sopenharmony_ci		       CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7751 || \
3362306a36Sopenharmony_ci		       CPU_SUBTYPE_SH7091
3462306a36Sopenharmony_ci	default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
3562306a36Sopenharmony_ci		       CPU_SUBTYPE_SH7760
3662306a36Sopenharmony_ci	default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7724  || \
3762306a36Sopenharmony_ci			CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
3862306a36Sopenharmony_ci	default "6"
3962306a36Sopenharmony_ci	help
4062306a36Sopenharmony_ci	  This allows you to specify the number of channels that the on-chip
4162306a36Sopenharmony_ci	  DMAC supports. This will be 4 for SH7709/SH7750/SH7750S/SH7751/SH7091,
4262306a36Sopenharmony_ci	  8 for SH7750R/SH7751R/SH7760, and 12 for SH7723/SH7724/SH7780/SH7785.
4362306a36Sopenharmony_ci	  Default is 6.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciconfig SH_DMABRG
4662306a36Sopenharmony_ci	bool "SH7760 DMABRG support"
4762306a36Sopenharmony_ci	depends on CPU_SUBTYPE_SH7760
4862306a36Sopenharmony_ci	help
4962306a36Sopenharmony_ci	  The DMABRG does data transfers from main memory to Audio/USB units
5062306a36Sopenharmony_ci	  of the SH7760.
5162306a36Sopenharmony_ci	  Say Y if you want to use Audio/USB DMA on your SH7760 board.
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ciconfig PVR2_DMA
5462306a36Sopenharmony_ci	tristate "PowerVR 2 DMAC support"
5562306a36Sopenharmony_ci	depends on SH_DREAMCAST && SH_DMA
5662306a36Sopenharmony_ci	help
5762306a36Sopenharmony_ci	  Selecting this will enable support for the PVR2 DMA controller.
5862306a36Sopenharmony_ci	  As this chains off of the on-chip DMAC, that must also be
5962306a36Sopenharmony_ci	  enabled by default.
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci	  This is primarily used by the pvr2fb framebuffer driver for
6262306a36Sopenharmony_ci	  certain optimizations, but is not necessary for functionality.
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci	  If in doubt, say N.
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ciconfig G2_DMA
6762306a36Sopenharmony_ci	tristate "G2 Bus DMA support"
6862306a36Sopenharmony_ci	depends on SH_DREAMCAST && SH_DMA_API
6962306a36Sopenharmony_ci	help
7062306a36Sopenharmony_ci	  This enables support for the DMA controller for the Dreamcast's
7162306a36Sopenharmony_ci	  G2 bus. Drivers that want this will generally enable this on
7262306a36Sopenharmony_ci	  their own.
7362306a36Sopenharmony_ci
7462306a36Sopenharmony_ci	  If in doubt, say N.
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ciendmenu
77