asp.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * TI DaVinci Audio definitions
  4. */
  5. #ifndef __ASM_ARCH_DAVINCI_ASP_H
  6. #define __ASM_ARCH_DAVINCI_ASP_H
  7. /* Bases of dm644x and dm355 register banks */
  8. #define DAVINCI_ASP0_BASE 0x01E02000
  9. #define DAVINCI_ASP1_BASE 0x01E04000
  10. /* Bases of dm365 register banks */
  11. #define DAVINCI_DM365_ASP0_BASE 0x01D02000
  12. /* Bases of dm646x register banks */
  13. #define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000
  14. #define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800
  15. /* Bases of da850/da830 McASP0 register banks */
  16. #define DAVINCI_DA8XX_MCASP0_REG_BASE 0x01D00000
  17. /* Bases of da830 McASP1 register banks */
  18. #define DAVINCI_DA830_MCASP1_REG_BASE 0x01D04000
  19. /* Bases of da830 McASP2 register banks */
  20. #define DAVINCI_DA830_MCASP2_REG_BASE 0x01D08000
  21. /* EDMA channels of dm644x and dm355 */
  22. #define DAVINCI_DMA_ASP0_TX 2
  23. #define DAVINCI_DMA_ASP0_RX 3
  24. #define DAVINCI_DMA_ASP1_TX 8
  25. #define DAVINCI_DMA_ASP1_RX 9
  26. /* EDMA channels of dm646x */
  27. #define DAVINCI_DM646X_DMA_MCASP0_AXEVT0 6
  28. #define DAVINCI_DM646X_DMA_MCASP0_AREVT0 9
  29. #define DAVINCI_DM646X_DMA_MCASP1_AXEVT1 12
  30. /* EDMA channels of da850/da830 McASP0 */
  31. #define DAVINCI_DA8XX_DMA_MCASP0_AREVT 0
  32. #define DAVINCI_DA8XX_DMA_MCASP0_AXEVT 1
  33. /* EDMA channels of da830 McASP1 */
  34. #define DAVINCI_DA830_DMA_MCASP1_AREVT 2
  35. #define DAVINCI_DA830_DMA_MCASP1_AXEVT 3
  36. /* EDMA channels of da830 McASP2 */
  37. #define DAVINCI_DA830_DMA_MCASP2_AREVT 4
  38. #define DAVINCI_DA830_DMA_MCASP2_AXEVT 5
  39. /* Interrupts */
  40. #define DAVINCI_ASP0_RX_INT IRQ_MBRINT
  41. #define DAVINCI_ASP0_TX_INT IRQ_MBXINT
  42. #define DAVINCI_ASP1_RX_INT IRQ_MBRINT
  43. #define DAVINCI_ASP1_TX_INT IRQ_MBXINT
  44. #endif /* __ASM_ARCH_DAVINCI_ASP_H */