Kconfig 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. menu "DMA support"
  2. config SH_DMA
  3. bool "DMA controller (DMAC) support"
  4. help
  5. Selecting this option will provide same API as PC's Direct Memory
  6. Access Controller(8237A) for SuperH DMAC.
  7. If unsure, say N.
  8. config NR_ONCHIP_DMA_CHANNELS
  9. depends on SH_DMA
  10. int "Number of on-chip DMAC channels"
  11. default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R
  12. default "12" if CPU_SUBTYPE_SH7780
  13. default "4"
  14. help
  15. This allows you to specify the number of channels that the on-chip
  16. DMAC supports. This will be 4 for SH7750/SH7751 and 8 for the
  17. SH7750R/SH7751R.
  18. config NR_DMA_CHANNELS_BOOL
  19. depends on SH_DMA
  20. bool "Override default number of maximum DMA channels"
  21. help
  22. This allows you to forcibly update the maximum number of supported
  23. DMA channels for a given board. If this is unset, this will default
  24. to the number of channels that the on-chip DMAC has.
  25. config NR_DMA_CHANNELS
  26. int "Maximum number of DMA channels"
  27. depends on SH_DMA && NR_DMA_CHANNELS_BOOL
  28. default NR_ONCHIP_DMA_CHANNELS
  29. help
  30. This allows you to specify the maximum number of DMA channels to
  31. support. Setting this to a higher value allows for cascading DMACs
  32. with additional channels.
  33. config DMA_PAGE_OPS
  34. bool "Use DMAC for page copy/clear"
  35. depends on SH_DMA && BROKEN
  36. help
  37. Selecting this option will use a dual-address mode configured channel
  38. in the SH DMAC for copy_page()/clear_page(). Primarily a performance
  39. hack.
  40. config DMA_PAGE_OPS_CHANNEL
  41. depends on DMA_PAGE_OPS
  42. int "DMA channel for sh memory-manager page copy/clear"
  43. default "3"
  44. help
  45. This allows the specification of the dual address dma channel,
  46. in case channel 3 is unavailable. On the SH4, channels 1,2, and 3
  47. are dual-address capable.
  48. endmenu