Kconfig 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # SPDX-License-Identifier: GPL-2.0
  2. menu "DMA support"
  3. config SH_DMA
  4. bool "SuperH on-chip DMA controller (DMAC) support"
  5. depends on CPU_SH3 || CPU_SH4
  6. default n
  7. config SH_DMA_IRQ_MULTI
  8. bool
  9. depends on SH_DMA
  10. default y if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \
  11. CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
  12. CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091 || \
  13. CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7780 || \
  14. CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7760
  15. config SH_DMA_API
  16. depends on SH_DMA
  17. bool "SuperH DMA API support"
  18. default n
  19. help
  20. SH_DMA_API always enabled DMA API of used SuperH.
  21. If you want to use DMA ENGINE, you must not enable this.
  22. Please enable DMA_ENGINE and SH_DMAE.
  23. config NR_ONCHIP_DMA_CHANNELS
  24. int
  25. depends on SH_DMA
  26. default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \
  27. CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091
  28. default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
  29. CPU_SUBTYPE_SH7760
  30. default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || \
  31. CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7724
  32. default "6"
  33. help
  34. This allows you to specify the number of channels that the on-chip
  35. DMAC supports. This will be 4 for SH7750/SH7751/Sh7750S/SH7091 and 8 for the
  36. SH7750R/SH7751R/SH7760, 12 for the SH7723/SH7780/SH7785/SH7724, default is 6.
  37. config SH_DMABRG
  38. bool "SH7760 DMABRG support"
  39. depends on CPU_SUBTYPE_SH7760
  40. help
  41. The DMABRG does data transfers from main memory to Audio/USB units
  42. of the SH7760.
  43. Say Y if you want to use Audio/USB DMA on your SH7760 board.
  44. config PVR2_DMA
  45. tristate "PowerVR 2 DMAC support"
  46. depends on SH_DREAMCAST && SH_DMA
  47. help
  48. Selecting this will enable support for the PVR2 DMA controller.
  49. As this chains off of the on-chip DMAC, that must also be
  50. enabled by default.
  51. This is primarily used by the pvr2fb framebuffer driver for
  52. certain optimizations, but is not necessary for functionality.
  53. If in doubt, say N.
  54. config G2_DMA
  55. tristate "G2 Bus DMA support"
  56. depends on SH_DREAMCAST && SH_DMA_API
  57. help
  58. This enables support for the DMA controller for the Dreamcast's
  59. G2 bus. Drivers that want this will generally enable this on
  60. their own.
  61. If in doubt, say N.
  62. endmenu