dma.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* mach/dma.h - arch-specific DMA defines
  2. *
  3. * Copyright 2004-2008 Analog Devices Inc.
  4. *
  5. * Licensed under the GPL-2 or later.
  6. */
  7. #ifndef _MACH_DMA_H_
  8. #define _MACH_DMA_H_
  9. #define CH_SPORT0_RX 0
  10. #define CH_SPORT0_TX 1
  11. #define CH_SPORT1_RX 2
  12. #define CH_SPORT1_TX 3
  13. #define CH_SPI0 4
  14. #define CH_SPI1 5
  15. #define CH_UART0_RX 6
  16. #define CH_UART0_TX 7
  17. #define CH_UART1_RX 8
  18. #define CH_UART1_TX 9
  19. #define CH_ATAPI_RX 10
  20. #define CH_ATAPI_TX 11
  21. #define CH_EPPI0 12
  22. #define CH_EPPI1 13
  23. #define CH_EPPI2 14
  24. #define CH_PIXC_IMAGE 15
  25. #define CH_PIXC_OVERLAY 16
  26. #define CH_PIXC_OUTPUT 17
  27. #define CH_SPORT2_RX 18
  28. #define CH_SPORT2_TX 19
  29. #define CH_SPORT3_RX 20
  30. #define CH_SPORT3_TX 21
  31. #define CH_SDH 22
  32. #define CH_NFC 22
  33. #define CH_SPI2 23
  34. #if defined(CONFIG_UART2_DMA_RX_ON_DMA13)
  35. #define CH_UART2_RX 13
  36. #define IRQ_UART2_RX BFIN_IRQ(37) /* UART2 RX USE EPP1 (DMA13) Interrupt */
  37. #define CH_UART2_TX 14
  38. #define IRQ_UART2_TX BFIN_IRQ(38) /* UART2 RX USE EPP1 (DMA14) Interrupt */
  39. #else /* Default USE SPORT2's DMA Channel */
  40. #define CH_UART2_RX 18
  41. #define IRQ_UART2_RX BFIN_IRQ(33) /* UART2 RX (DMA18) Interrupt */
  42. #define CH_UART2_TX 19
  43. #define IRQ_UART2_TX BFIN_IRQ(34) /* UART2 TX (DMA19) Interrupt */
  44. #endif
  45. #if defined(CONFIG_UART3_DMA_RX_ON_DMA15)
  46. #define CH_UART3_RX 15
  47. #define IRQ_UART3_RX BFIN_IRQ(64) /* UART3 RX USE PIXC IN0 (DMA15) Interrupt */
  48. #define CH_UART3_TX 16
  49. #define IRQ_UART3_TX BFIN_IRQ(65) /* UART3 TX USE PIXC IN1 (DMA16) Interrupt */
  50. #else /* Default USE SPORT3's DMA Channel */
  51. #define CH_UART3_RX 20
  52. #define IRQ_UART3_RX BFIN_IRQ(35) /* UART3 RX (DMA20) Interrupt */
  53. #define CH_UART3_TX 21
  54. #define IRQ_UART3_TX BFIN_IRQ(36) /* UART3 TX (DMA21) Interrupt */
  55. #endif
  56. #define CH_MEM_STREAM0_DEST 24
  57. #define CH_MEM_STREAM0_SRC 25
  58. #define CH_MEM_STREAM1_DEST 26
  59. #define CH_MEM_STREAM1_SRC 27
  60. #define CH_MEM_STREAM2_DEST 28
  61. #define CH_MEM_STREAM2_SRC 29
  62. #define CH_MEM_STREAM3_DEST 30
  63. #define CH_MEM_STREAM3_SRC 31
  64. #define MAX_DMA_CHANNELS 32
  65. #endif