Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0
menu "DMA support"


config CONFIG_SH_DMA
	bool "SuperH on-chip DMA controller (DMAC) support"
	depends on CONFIG_CPU_SH3 || CONFIG_CPU_SH4
	default n

config CONFIG_SH_DMA_IRQ_MULTI
	bool
	depends on CONFIG_SH_DMA
	default y if CONFIG_CPU_SUBTYPE_SH7750  || CONFIG_CPU_SUBTYPE_SH7751  || \
		     CONFIG_CPU_SUBTYPE_SH7750S || CONFIG_CPU_SUBTYPE_SH7750R || \
		     CONFIG_CPU_SUBTYPE_SH7751R || CONFIG_CPU_SUBTYPE_SH7091  || \
		     CONFIG_CPU_SUBTYPE_SH7763  || CONFIG_CPU_SUBTYPE_SH7780  || \
		     CONFIG_CPU_SUBTYPE_SH7785  || CONFIG_CPU_SUBTYPE_SH7760

config CONFIG_SH_DMA_API
	depends on CONFIG_SH_DMA
	bool "SuperH DMA API support"
	default n
	help
	  CONFIG_SH_DMA_API always enabled DMA API of used SuperH.
	  If you want to use DMA ENGINE, you must not enable this.
	  Please enable CONFIG_DMA_ENGINE and CONFIG_SH_DMAE.

config CONFIG_NR_ONCHIP_DMA_CHANNELS
	int
	depends on CONFIG_SH_DMA
	default "4" if CONFIG_CPU_SUBTYPE_SH7750  || CONFIG_CPU_SUBTYPE_SH7751  || \
		       CONFIG_CPU_SUBTYPE_SH7750S || CONFIG_CPU_SUBTYPE_SH7091
	default "8" if CONFIG_CPU_SUBTYPE_SH7750R || CONFIG_CPU_SUBTYPE_SH7751R || \
		       CONFIG_CPU_SUBTYPE_SH7760
	default "12" if CONFIG_CPU_SUBTYPE_SH7723 || CONFIG_CPU_SUBTYPE_SH7780  || \
			CONFIG_CPU_SUBTYPE_SH7785 || CONFIG_CPU_SUBTYPE_SH7724
	default "6"
	help
	  This allows you to specify the number of channels that the on-chip
	  DMAC supports. This will be 4 for SH7750/SH7751/Sh7750S/SH7091 and 8 for the
	  SH7750R/SH7751R/SH7760, 12 for the SH7723/SH7780/SH7785/SH7724, default is 6.

config CONFIG_SH_DMABRG
	bool "SH7760 DMABRG support"
	depends on CONFIG_CPU_SUBTYPE_SH7760
	help
	  The DMABRG does data transfers from main memory to Audio/CONFIG_USB units
	  of the SH7760.
	  Say Y if you want to use Audio/CONFIG_USB DMA on your SH7760 board.

config CONFIG_PVR2_DMA
	tristate "PowerVR 2 DMAC support"
	depends on CONFIG_SH_DREAMCAST && CONFIG_SH_DMA
	help
	  Selecting this will enable support for the PVR2 DMA controller.
	  As this chains off of the on-chip DMAC, that must also be
	  enabled by default.

	  This is primarily used by the pvr2fb framebuffer driver for
	  certain optimizations, but is not necessary for functionality.

	  If in doubt, say N.

config CONFIG_G2_DMA
	tristate "G2 Bus DMA support"
	depends on CONFIG_SH_DREAMCAST
	select CONFIG_SH_DMA_API
	help
	  This enables support for the DMA controller for the Dreamcast's
	  G2 bus. Drivers that want this will generally enable this on
	  their own.

	  If in doubt, say N.

endmenu