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 31a27873cdSPaul Mundt default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \ 32a27873cdSPaul Mundt CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091 33a27873cdSPaul Mundt default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \ 34a27873cdSPaul Mundt CPU_SUBTYPE_SH7760 35a27873cdSPaul Mundt default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || \ 3624d76195SKuninori Morimoto CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7724 3771b973a4SNobuhiro Iwamatsu default "6" 381da177e4SLinus Torvalds help 391da177e4SLinus Torvalds This allows you to specify the number of channels that the on-chip 4024d76195SKuninori Morimoto DMAC supports. This will be 4 for SH7750/SH7751/Sh7750S/SH7091 and 8 for the 4124d76195SKuninori Morimoto SH7750R/SH7751R/SH7760, 12 for the SH7723/SH7780/SH7785/SH7724, default is 6. 421da177e4SLinus Torvalds 43fc467a26SManuel Laussconfig SH_DMABRG 44fc467a26SManuel Lauss bool "SH7760 DMABRG support" 45fc467a26SManuel Lauss depends on CPU_SUBTYPE_SH7760 46fc467a26SManuel Lauss help 47fc467a26SManuel Lauss The DMABRG does data transfers from main memory to Audio/USB units 48fc467a26SManuel Lauss of the SH7760. 49fc467a26SManuel Lauss Say Y if you want to use Audio/USB DMA on your SH7760 board. 50fc467a26SManuel Lauss 51da62e71dSPaul Mundtconfig PVR2_DMA 52da62e71dSPaul Mundt tristate "PowerVR 2 DMAC support" 53da62e71dSPaul Mundt depends on SH_DREAMCAST && SH_DMA 54da62e71dSPaul Mundt help 55da62e71dSPaul Mundt Selecting this will enable support for the PVR2 DMA controller. 56da62e71dSPaul Mundt As this chains off of the on-chip DMAC, that must also be 57da62e71dSPaul Mundt enabled by default. 58da62e71dSPaul Mundt 59da62e71dSPaul Mundt This is primarily used by the pvr2fb framebuffer driver for 60da62e71dSPaul Mundt certain optimizations, but is not necessary for functionality. 61da62e71dSPaul Mundt 62da62e71dSPaul Mundt If in doubt, say N. 63da62e71dSPaul Mundt 6440f49e7eSPaul Mundtconfig G2_DMA 6540f49e7eSPaul Mundt tristate "G2 Bus DMA support" 66*f477a538SNecip Fazil Yildiran depends on SH_DREAMCAST && SH_DMA_API 6740f49e7eSPaul Mundt help 6840f49e7eSPaul Mundt This enables support for the DMA controller for the Dreamcast's 6940f49e7eSPaul Mundt G2 bus. Drivers that want this will generally enable this on 7040f49e7eSPaul Mundt their own. 7140f49e7eSPaul Mundt 7240f49e7eSPaul Mundt If in doubt, say N. 7340f49e7eSPaul Mundt 741da177e4SLinus Torvaldsendmenu 75