Kconfig 2.5 KB

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