18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * TI DaVinci Audio definitions 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_DAVINCI_ASP_H 68c2ecf20Sopenharmony_ci#define __ASM_ARCH_DAVINCI_ASP_H 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/* Bases of dm644x and dm355 register banks */ 98c2ecf20Sopenharmony_ci#define DAVINCI_ASP0_BASE 0x01E02000 108c2ecf20Sopenharmony_ci#define DAVINCI_ASP1_BASE 0x01E04000 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* Bases of dm365 register banks */ 138c2ecf20Sopenharmony_ci#define DAVINCI_DM365_ASP0_BASE 0x01D02000 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/* Bases of dm646x register banks */ 168c2ecf20Sopenharmony_ci#define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000 178c2ecf20Sopenharmony_ci#define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* Bases of da850/da830 McASP0 register banks */ 208c2ecf20Sopenharmony_ci#define DAVINCI_DA8XX_MCASP0_REG_BASE 0x01D00000 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci/* Bases of da830 McASP1 register banks */ 238c2ecf20Sopenharmony_ci#define DAVINCI_DA830_MCASP1_REG_BASE 0x01D04000 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* Bases of da830 McASP2 register banks */ 268c2ecf20Sopenharmony_ci#define DAVINCI_DA830_MCASP2_REG_BASE 0x01D08000 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci/* EDMA channels of dm644x and dm355 */ 298c2ecf20Sopenharmony_ci#define DAVINCI_DMA_ASP0_TX 2 308c2ecf20Sopenharmony_ci#define DAVINCI_DMA_ASP0_RX 3 318c2ecf20Sopenharmony_ci#define DAVINCI_DMA_ASP1_TX 8 328c2ecf20Sopenharmony_ci#define DAVINCI_DMA_ASP1_RX 9 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci/* EDMA channels of dm646x */ 358c2ecf20Sopenharmony_ci#define DAVINCI_DM646X_DMA_MCASP0_AXEVT0 6 368c2ecf20Sopenharmony_ci#define DAVINCI_DM646X_DMA_MCASP0_AREVT0 9 378c2ecf20Sopenharmony_ci#define DAVINCI_DM646X_DMA_MCASP1_AXEVT1 12 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci/* EDMA channels of da850/da830 McASP0 */ 408c2ecf20Sopenharmony_ci#define DAVINCI_DA8XX_DMA_MCASP0_AREVT 0 418c2ecf20Sopenharmony_ci#define DAVINCI_DA8XX_DMA_MCASP0_AXEVT 1 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci/* EDMA channels of da830 McASP1 */ 448c2ecf20Sopenharmony_ci#define DAVINCI_DA830_DMA_MCASP1_AREVT 2 458c2ecf20Sopenharmony_ci#define DAVINCI_DA830_DMA_MCASP1_AXEVT 3 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci/* EDMA channels of da830 McASP2 */ 488c2ecf20Sopenharmony_ci#define DAVINCI_DA830_DMA_MCASP2_AREVT 4 498c2ecf20Sopenharmony_ci#define DAVINCI_DA830_DMA_MCASP2_AXEVT 5 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci/* Interrupts */ 528c2ecf20Sopenharmony_ci#define DAVINCI_ASP0_RX_INT DAVINCI_INTC_IRQ(IRQ_MBRINT) 538c2ecf20Sopenharmony_ci#define DAVINCI_ASP0_TX_INT DAVINCI_INTC_IRQ(IRQ_MBXINT) 548c2ecf20Sopenharmony_ci#define DAVINCI_ASP1_RX_INT DAVINCI_INTC_IRQ(IRQ_MBRINT) 558c2ecf20Sopenharmony_ci#define DAVINCI_ASP1_TX_INT DAVINCI_INTC_IRQ(IRQ_MBXINT) 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci#endif /* __ASM_ARCH_DAVINCI_ASP_H */ 58