1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvaldsmenu "DMA support" 31da177e4SLinus Torvalds 41da177e4SLinus Torvalds 5fc467a26SManuel Laussconfig SH_DMA 6fc467a26SManuel Lauss bool "SuperH on-chip DMA controller (DMAC) support" 73e767833SPaul Mundt depends on CPU_SH3 || CPU_SH4 8fc467a26SManuel Lauss default n 91da177e4SLinus Torvalds 10988f831dSNobuhiro Iwamatsuconfig SH_DMA_IRQ_MULTI 11988f831dSNobuhiro Iwamatsu bool 12988f831dSNobuhiro Iwamatsu depends on SH_DMA 13988f831dSNobuhiro Iwamatsu default y if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \ 14a27873cdSPaul Mundt CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \ 15a27873cdSPaul Mundt CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091 || \ 16455f9726SRichard Weinberger CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7780 || \ 17455f9726SRichard Weinberger CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7760 18988f831dSNobuhiro Iwamatsu 19d8902adcSNobuhiro Iwamatsuconfig SH_DMA_API 20d8902adcSNobuhiro Iwamatsu depends on SH_DMA 21d8902adcSNobuhiro Iwamatsu bool "SuperH DMA API support" 22d8902adcSNobuhiro Iwamatsu default n 23d8902adcSNobuhiro Iwamatsu help 24d8902adcSNobuhiro Iwamatsu SH_DMA_API always enabled DMA API of used SuperH. 25d8902adcSNobuhiro Iwamatsu If you want to use DMA ENGINE, you must not enable this. 26d8902adcSNobuhiro Iwamatsu Please enable DMA_ENGINE and SH_DMAE. 27d8902adcSNobuhiro Iwamatsu 281da177e4SLinus Torvaldsconfig NR_ONCHIP_DMA_CHANNELS 29fc100202SPaul Mundt int 301da177e4SLinus Torvalds depends on SH_DMA 31*3ad4dcbcSArtur Rojek default "4" if CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7750 || \ 32*3ad4dcbcSArtur Rojek CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7751 || \ 33*3ad4dcbcSArtur Rojek CPU_SUBTYPE_SH7091 34a27873cdSPaul Mundt default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \ 35a27873cdSPaul Mundt CPU_SUBTYPE_SH7760 36*3ad4dcbcSArtur Rojek default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7724 || \ 37*3ad4dcbcSArtur Rojek CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 3871b973a4SNobuhiro Iwamatsu default "6" 391da177e4SLinus Torvalds help 401da177e4SLinus Torvalds This allows you to specify the number of channels that the on-chip 41*3ad4dcbcSArtur Rojek DMAC supports. This will be 4 for SH7709/SH7750/SH7750S/SH7751/SH7091, 42*3ad4dcbcSArtur Rojek 8 for SH7750R/SH7751R/SH7760, and 12 for SH7723/SH7724/SH7780/SH7785. 43*3ad4dcbcSArtur Rojek Default is 6. 441da177e4SLinus Torvalds 45fc467a26SManuel Laussconfig SH_DMABRG 46fc467a26SManuel Lauss bool "SH7760 DMABRG support" 47fc467a26SManuel Lauss depends on CPU_SUBTYPE_SH7760 48fc467a26SManuel Lauss help 49fc467a26SManuel Lauss The DMABRG does data transfers from main memory to Audio/USB units 50fc467a26SManuel Lauss of the SH7760. 51fc467a26SManuel Lauss Say Y if you want to use Audio/USB DMA on your SH7760 board. 52fc467a26SManuel Lauss 53da62e71dSPaul Mundtconfig PVR2_DMA 54da62e71dSPaul Mundt tristate "PowerVR 2 DMAC support" 55da62e71dSPaul Mundt depends on SH_DREAMCAST && SH_DMA 56da62e71dSPaul Mundt help 57da62e71dSPaul Mundt Selecting this will enable support for the PVR2 DMA controller. 58da62e71dSPaul Mundt As this chains off of the on-chip DMAC, that must also be 59da62e71dSPaul Mundt enabled by default. 60da62e71dSPaul Mundt 61da62e71dSPaul Mundt This is primarily used by the pvr2fb framebuffer driver for 62da62e71dSPaul Mundt certain optimizations, but is not necessary for functionality. 63da62e71dSPaul Mundt 64da62e71dSPaul Mundt If in doubt, say N. 65da62e71dSPaul Mundt 6640f49e7eSPaul Mundtconfig G2_DMA 6740f49e7eSPaul Mundt tristate "G2 Bus DMA support" 68f477a538SNecip Fazil Yildiran depends on SH_DREAMCAST && SH_DMA_API 6940f49e7eSPaul Mundt help 7040f49e7eSPaul Mundt This enables support for the DMA controller for the Dreamcast's 7140f49e7eSPaul Mundt G2 bus. Drivers that want this will generally enable this on 7240f49e7eSPaul Mundt their own. 7340f49e7eSPaul Mundt 7440f49e7eSPaul Mundt If in doubt, say N. 7540f49e7eSPaul Mundt 761da177e4SLinus Torvaldsendmenu 77