Kconfig 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. menu "DMA support"
  2. config SH_DMA_API
  3. bool
  4. config SH_DMA
  5. bool "SuperH on-chip DMA controller (DMAC) support"
  6. depends on CPU_SH3 || CPU_SH4
  7. select SH_DMA_API
  8. default n
  9. config SH_DMA_IRQ_MULTI
  10. bool
  11. depends on SH_DMA
  12. default y if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \
  13. CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
  14. CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091 || \
  15. CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7764 || \
  16. CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
  17. config NR_ONCHIP_DMA_CHANNELS
  18. int
  19. depends on SH_DMA
  20. default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \
  21. CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091
  22. default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
  23. CPU_SUBTYPE_SH7760
  24. default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || \
  25. CPU_SUBTYPE_SH7785
  26. default "6"
  27. help
  28. This allows you to specify the number of channels that the on-chip
  29. DMAC supports. This will be 4 for SH7091/SH7750/SH7751 and 8 for the
  30. SH7750R/SH7751R.
  31. config NR_DMA_CHANNELS_BOOL
  32. depends on SH_DMA
  33. bool "Override default number of maximum DMA channels"
  34. help
  35. This allows you to forcibly update the maximum number of supported
  36. DMA channels for a given board. If this is unset, this will default
  37. to the number of channels that the on-chip DMAC has.
  38. config NR_DMA_CHANNELS
  39. int "Maximum number of DMA channels"
  40. depends on SH_DMA && NR_DMA_CHANNELS_BOOL
  41. default NR_ONCHIP_DMA_CHANNELS
  42. help
  43. This allows you to specify the maximum number of DMA channels to
  44. support. Setting this to a higher value allows for cascading DMACs
  45. with additional channels.
  46. config SH_DMABRG
  47. bool "SH7760 DMABRG support"
  48. depends on CPU_SUBTYPE_SH7760
  49. help
  50. The DMABRG does data transfers from main memory to Audio/USB units
  51. of the SH7760.
  52. Say Y if you want to use Audio/USB DMA on your SH7760 board.
  53. config PVR2_DMA
  54. tristate "PowerVR 2 DMAC support"
  55. depends on SH_DREAMCAST && SH_DMA
  56. help
  57. Selecting this will enable support for the PVR2 DMA controller.
  58. As this chains off of the on-chip DMAC, that must also be
  59. enabled by default.
  60. This is primarily used by the pvr2fb framebuffer driver for
  61. certain optimizations, but is not necessary for functionality.
  62. If in doubt, say N.
  63. config G2_DMA
  64. tristate "G2 Bus DMA support"
  65. depends on SH_DREAMCAST
  66. select SH_DMA_API
  67. help
  68. This enables support for the DMA controller for the Dreamcast's
  69. G2 bus. Drivers that want this will generally enable this on
  70. their own.
  71. If in doubt, say N.
  72. endmenu