Kconfig 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 || CPU_SUBTYPE_SH7751R || \
  14. CPU_SUBTYPE_SH7091 || CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7764 || \
  15. CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
  16. config NR_ONCHIP_DMA_CHANNELS
  17. int
  18. depends on SH_DMA
  19. default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || CPU_SUBTYPE_SH7750S
  20. default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7760
  21. default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
  22. default "6"
  23. help
  24. This allows you to specify the number of channels that the on-chip
  25. DMAC supports. This will be 4 for SH7750/SH7751 and 8 for the
  26. SH7750R/SH7751R.
  27. config NR_DMA_CHANNELS_BOOL
  28. depends on SH_DMA
  29. bool "Override default number of maximum DMA channels"
  30. help
  31. This allows you to forcibly update the maximum number of supported
  32. DMA channels for a given board. If this is unset, this will default
  33. to the number of channels that the on-chip DMAC has.
  34. config NR_DMA_CHANNELS
  35. int "Maximum number of DMA channels"
  36. depends on SH_DMA && NR_DMA_CHANNELS_BOOL
  37. default NR_ONCHIP_DMA_CHANNELS
  38. help
  39. This allows you to specify the maximum number of DMA channels to
  40. support. Setting this to a higher value allows for cascading DMACs
  41. with additional channels.
  42. config SH_DMABRG
  43. bool "SH7760 DMABRG support"
  44. depends on CPU_SUBTYPE_SH7760
  45. help
  46. The DMABRG does data transfers from main memory to Audio/USB units
  47. of the SH7760.
  48. Say Y if you want to use Audio/USB DMA on your SH7760 board.
  49. endmenu